From 15d8d9dfb1957db7fb4c1c080f2c54376e7c7c19 Mon Sep 17 00:00:00 2001 From: Nikos Papailiou Date: Wed, 5 Feb 2025 14:22:21 +0200 Subject: [PATCH 1/7] Update API --- .openapi-generator/FILES | 676 +- build.gradle | 8 +- docs/ActivityEventType.md | 2 + docs/ArrayApi.md | 2430 ++++--- docs/ArrayConsolidationRequest.md | 1 + docs/ArrayInfo.md | 3 + docs/ArrayTask.md | 2 + docs/ArrayTasksApi.md | 67 +- docs/AssetBackingType.md | 13 + docs/AssetInfo.md | 23 + docs/AssetListResponse.md | 15 + docs/AssetOwnershipLevel.md | 13 + docs/AssetsApi.md | 266 + docs/ChangeAssetCredentialsRequest.md | 15 + docs/Datatype.md | 48 + docs/Enumeration.md | 20 + docs/FavoritesApi.md | 1310 ++-- docs/FilesApi.md | 211 +- docs/FilterType.md | 22 +- docs/GroupContentActivity.md | 15 + docs/GroupContentActivityAsset.md | 17 + docs/GroupContentActivityResponse.md | 15 + docs/GroupInfo.md | 3 + docs/GroupsApi.md | 1221 ++-- docs/InvitationApi.md | 702 +- docs/InvitationType.md | 2 + docs/LoadArraySchemaRequest.md | 14 + docs/LoadArraySchemaResponse.md | 15 + docs/LoadEnumerationsRequest.md | 15 + docs/LoadEnumerationsResponse.md | 14 + docs/MetadataStringified.md | 14 + docs/MetadataStringifiedEntry.md | 16 + docs/NotebookApi.md | 342 +- docs/NotebookStatus.md | 1 + docs/NotebooksApi.md | 138 +- docs/Organization.md | 1 + docs/OrganizationApi.md | 1314 ++-- docs/OrganizationRoles.md | 2 + docs/OrganizationUpdate.md | 19 + docs/OrganizationUser.md | 2 + docs/PodStatus.md | 15 + docs/QueryApi.md | 375 +- docs/RegisteredTaskGraphsApi.md | 400 +- docs/SSOProvider.md | 4 + docs/SharePaymentRequest.md | 13 + docs/SqlApi.md | 69 +- docs/StatsApi.md | 63 +- docs/TGUDFEnvironment.md | 1 + docs/TGUDFEnvironmentResources.md | 2 +- docs/TGUDFStorage.md | 16 + docs/TaskGraph.md | 4 +- docs/TaskGraphLog.md | 4 + docs/TaskGraphLogsApi.md | 626 +- docs/TaskGraphType.md | 2 + docs/TaskGraphsApi.md | 337 +- docs/TasksApi.md | 292 +- docs/UDFLanguage.md | 2 + docs/UdfApi.md | 757 +- docs/User.md | 1 + docs/UserApi.md | 1422 ++-- openapi-v1.yaml | 829 ++- .../io/tiledb/cloud/rest_api/ApiCallback.java | 3 +- .../io/tiledb/cloud/rest_api/ApiClient.java | 47 +- .../tiledb/cloud/rest_api/ApiException.java | 5 +- .../io/tiledb/cloud/rest_api/ApiResponse.java | 2 +- .../io/tiledb/cloud/rest_api/ArrayApi.java | 6247 +++++++++++++++++ .../tiledb/cloud/rest_api/ArrayTasksApi.java | 220 + .../io/tiledb/cloud/rest_api/AssetsApi.java | 681 ++ .../tiledb/cloud/rest_api/Configuration.java | 4 +- .../tiledb/cloud/rest_api/FavoritesApi.java | 3003 ++++++++ .../io/tiledb/cloud/rest_api/FilesApi.java | 618 ++ .../io/tiledb/cloud/rest_api/GroupsApi.java | 3237 +++++++++ .../rest_api/GzipRequestInterceptor.java | 2 +- .../tiledb/cloud/rest_api/InvitationApi.java | 1773 +++++ .../java/io/tiledb/cloud/rest_api/JSON.java | 426 +- .../io/tiledb/cloud/rest_api/NotebookApi.java | 948 +++ .../tiledb/cloud/rest_api/NotebooksApi.java | 401 ++ .../cloud/rest_api/OrganizationApi.java | 3066 ++++++++ .../java/io/tiledb/cloud/rest_api/Pair.java | 4 +- .../cloud/rest_api/ProgressRequestBody.java | 2 +- .../cloud/rest_api/ProgressResponseBody.java | 2 +- .../io/tiledb/cloud/rest_api/QueryApi.java | 1172 ++++ .../rest_api/RegisteredTaskGraphsApi.java | 1020 +++ .../java/io/tiledb/cloud/rest_api/SqlApi.java | 239 + .../io/tiledb/cloud/rest_api/StatsApi.java | 196 + .../io/tiledb/cloud/rest_api/StringUtil.java | 4 +- .../cloud/rest_api/TaskGraphLogsApi.java | 1570 +++++ .../tiledb/cloud/rest_api/TaskGraphsApi.java | 854 +++ .../io/tiledb/cloud/rest_api/TasksApi.java | 854 +++ .../java/io/tiledb/cloud/rest_api/UdfApi.java | 1955 ++++++ .../io/tiledb/cloud/rest_api/UserApi.java | 3239 +++++++++ .../cloud/rest_api/auth/ApiKeyAuth.java | 4 +- .../cloud/rest_api/auth/Authentication.java | 2 +- .../cloud/rest_api/auth/HttpBasicAuth.java | 3 +- .../cloud/rest_api/auth/HttpBearerAuth.java | 4 +- .../io/tiledb/cloud/rest_api/auth/OAuth.java | 4 +- .../tiledb/cloud/rest_api/auth/OAuthFlow.java | 4 +- .../rest_api/model/AWSAccessCredentials.java | 6 +- .../rest_api/model/AbstractOpenApiSchema.java | 4 +- .../rest_api/model/ActivityEventType.java | 7 +- .../io/tiledb/cloud/rest_api/model/Array.java | 5 +- .../cloud/rest_api/model/ArrayActions.java | 3 +- .../rest_api/model/ArrayActivityLog.java | 5 +- .../rest_api/model/ArrayBrowserData.java | 6 +- .../rest_api/model/ArrayBrowserSidebar.java | 5 +- .../model/ArrayConsolidationRequest.java | 53 +- .../rest_api/model/ArrayEndTimestampData.java | 5 +- .../cloud/rest_api/model/ArrayFavorite.java | 6 +- .../rest_api/model/ArrayFavoritesData.java | 5 +- .../cloud/rest_api/model/ArrayInfo.java | 127 +- .../cloud/rest_api/model/ArrayInfoUpdate.java | 10 +- .../cloud/rest_api/model/ArrayMetadata.java | 5 +- .../rest_api/model/ArrayMetadataEntry.java | 6 +- .../cloud/rest_api/model/ArraySample.java | 6 +- .../cloud/rest_api/model/ArraySchema.java | 6 +- .../cloud/rest_api/model/ArraySharing.java | 5 +- .../cloud/rest_api/model/ArrayTask.java | 78 +- .../model/ArrayTaskBrowserSidebar.java | 5 +- .../cloud/rest_api/model/ArrayTaskData.java | 5 +- .../cloud/rest_api/model/ArrayTaskLog.java | 5 +- .../cloud/rest_api/model/ArrayTaskStatus.java | 3 +- .../cloud/rest_api/model/ArrayTaskType.java | 3 +- .../cloud/rest_api/model/ArrayType.java | 3 +- .../rest_api/model/ArrayVacuumRequest.java | 5 +- .../rest_api/model/AssetBackingType.java | 70 + .../cloud/rest_api/model/AssetInfo.java | 550 ++ .../rest_api/model/AssetListResponse.java | 318 + .../cloud/rest_api/model/AssetLocations.java | 5 +- .../rest_api/model/AssetOwnershipLevel.java | 70 + .../cloud/rest_api/model/AssetType.java | 3 +- .../cloud/rest_api/model/Attribute.java | 5 +- .../rest_api/model/AttributeBufferHeader.java | 5 +- .../rest_api/model/AttributeBufferSize.java | 5 +- .../tiledb/cloud/rest_api/model/Backoff.java | 5 +- .../model/ChangeAssetCredentialsRequest.java | 314 + .../tiledb/cloud/rest_api/model/Datatype.java | 57 +- .../cloud/rest_api/model/Dimension.java | 5 +- .../rest_api/model/DimensionCoordinate.java | 5 +- .../rest_api/model/DimensionTileExtent.java | 6 +- .../tiledb/cloud/rest_api/model/Domain.java | 5 +- .../cloud/rest_api/model/DomainArray.java | 5 +- .../rest_api/model/DomainCheckResult.java | 5 +- .../rest_api/model/DomainCheckStatus.java | 3 +- .../model/DomainVerificationStatus.java | 3 +- .../cloud/rest_api/model/Enumeration.java | 476 ++ .../io/tiledb/cloud/rest_api/model/Error.java | 5 +- .../cloud/rest_api/model/FileCreate.java | 6 +- .../cloud/rest_api/model/FileCreated.java | 6 +- .../cloud/rest_api/model/FileExport.java | 5 +- .../cloud/rest_api/model/FileExported.java | 5 +- .../rest_api/model/FilePropertyName.java | 3 +- .../tiledb/cloud/rest_api/model/FileType.java | 3 +- .../cloud/rest_api/model/FileUploaded.java | 5 +- .../tiledb/cloud/rest_api/model/Filter.java | 5 +- .../cloud/rest_api/model/FilterData.java | 5 +- .../cloud/rest_api/model/FilterOption.java | 3 +- .../cloud/rest_api/model/FilterPipeline.java | 5 +- .../cloud/rest_api/model/FilterType.java | 3 +- .../cloud/rest_api/model/FragmentInfo.java | 7 +- .../rest_api/model/FragmentInfoRequest.java | 5 +- .../rest_api/model/FragmentMetadata.java | 5 +- .../cloud/rest_api/model/GenericUDF.java | 5 +- .../model/GetTiledbStats200Response.java | 6 +- .../cloud/rest_api/model/GroupActions.java | 3 +- .../cloud/rest_api/model/GroupActivity.java | 3 +- .../rest_api/model/GroupActivityAsset.java | 3 +- .../rest_api/model/GroupActivityResponse.java | 3 +- .../rest_api/model/GroupBrowserData.java | 6 +- .../model/GroupBrowserFilterData.java | 6 +- .../cloud/rest_api/model/GroupChanges.java | 6 +- .../rest_api/model/GroupContentActivity.java | 299 + .../model/GroupContentActivityAsset.java | 360 + .../model/GroupContentActivityResponse.java | 318 + .../cloud/rest_api/model/GroupContents.java | 5 +- .../model/GroupContentsFilterData.java | 5 +- .../cloud/rest_api/model/GroupCreate.java | 5 +- .../cloud/rest_api/model/GroupEntry.java | 6 +- .../cloud/rest_api/model/GroupInfo.java | 126 +- .../cloud/rest_api/model/GroupMember.java | 5 +- .../rest_api/model/GroupMemberAssetType.java | 3 +- .../cloud/rest_api/model/GroupMemberType.java | 3 +- .../cloud/rest_api/model/GroupRegister.java | 5 +- .../cloud/rest_api/model/GroupSharing.java | 5 +- .../rest_api/model/GroupSharingRequest.java | 5 +- .../cloud/rest_api/model/GroupType.java | 3 +- .../rest_api/model/GroupTypeMetadataKey.java | 3 +- .../cloud/rest_api/model/GroupUpdate.java | 5 +- .../cloud/rest_api/model/Invitation.java | 5 +- .../model/InvitationArrayShareEmail.java | 5 +- .../cloud/rest_api/model/InvitationData.java | 5 +- .../model/InvitationFailedRecipients.java | 5 +- .../model/InvitationGroupShareEmail.java | 5 +- .../InvitationOrganizationJoinEmail.java | 6 +- .../rest_api/model/InvitationStatus.java | 3 +- .../cloud/rest_api/model/InvitationType.java | 7 +- .../rest_api/model/LastAccessedArray.java | 5 +- .../tiledb/cloud/rest_api/model/Layout.java | 3 +- .../model/LoadArraySchemaRequest.java | 265 + .../model/LoadArraySchemaResponse.java | 305 + .../model/LoadEnumerationsRequest.java | 309 + .../model/LoadEnumerationsResponse.java | 284 + .../cloud/rest_api/model/MLModelFavorite.java | 5 +- .../rest_api/model/MLModelFavoritesData.java | 5 +- .../cloud/rest_api/model/MaxBufferSizes.java | 5 +- .../rest_api/model/MetadataStringified.java | 284 + .../model/MetadataStringifiedEntry.java | 330 + .../cloud/rest_api/model/MultiArrayUDF.java | 9 +- .../rest_api/model/NamespaceActions.java | 3 +- .../cloud/rest_api/model/NonEmptyDomain.java | 5 +- .../cloud/rest_api/model/NotebookCopied.java | 5 +- .../cloud/rest_api/model/NotebookCopy.java | 5 +- .../rest_api/model/NotebookFavorite.java | 5 +- .../rest_api/model/NotebookFavoritesData.java | 6 +- .../cloud/rest_api/model/NotebookStatus.java | 42 +- .../cloud/rest_api/model/Organization.java | 46 +- .../rest_api/model/OrganizationRoles.java | 5 +- .../rest_api/model/OrganizationUpdate.java | 443 ++ .../rest_api/model/OrganizationUser.java | 73 +- .../rest_api/model/PaginationMetadata.java | 5 +- .../cloud/rest_api/model/PodStatus.java | 72 + .../tiledb/cloud/rest_api/model/Pricing.java | 5 +- .../rest_api/model/PricingAggregateUsage.java | 3 +- .../cloud/rest_api/model/PricingCurrency.java | 3 +- .../cloud/rest_api/model/PricingInterval.java | 3 +- .../cloud/rest_api/model/PricingType.java | 3 +- .../rest_api/model/PricingUnitLabel.java | 3 +- .../rest_api/model/PublicShareFilter.java | 3 +- .../io/tiledb/cloud/rest_api/model/Query.java | 6 +- .../cloud/rest_api/model/QueryJson.java | 6 +- .../cloud/rest_api/model/QueryRanges.java | 6 +- .../cloud/rest_api/model/QueryReader.java | 6 +- .../cloud/rest_api/model/Querystatus.java | 3 +- .../cloud/rest_api/model/Querytype.java | 3 +- .../cloud/rest_api/model/ReadState.java | 6 +- .../rest_api/model/RegisteredTaskGraph.java | 9 +- .../model/ResetUserPasswordRequest.java | 6 +- .../cloud/rest_api/model/ResultFormat.java | 3 +- .../cloud/rest_api/model/RetryPolicy.java | 3 +- .../cloud/rest_api/model/RetryStrategy.java | 5 +- .../cloud/rest_api/model/SQLParameters.java | 6 +- .../cloud/rest_api/model/SSODomainConfig.java | 6 +- .../model/SSODomainConfigResponse.java | 6 +- .../cloud/rest_api/model/SSODomainSetup.java | 6 +- .../cloud/rest_api/model/SSOProvider.java | 9 +- .../rest_api/model/SharePaymentRequest.java | 273 + .../rest_api/model/SingleFragmentInfo.java | 6 +- .../cloud/rest_api/model/StorageLocation.java | 9 +- .../tiledb/cloud/rest_api/model/Subarray.java | 6 +- .../rest_api/model/SubarrayPartitioner.java | 6 +- .../model/SubarrayPartitionerCurrent.java | 6 +- .../model/SubarrayPartitionerState.java | 6 +- .../cloud/rest_api/model/SubarrayRanges.java | 6 +- .../cloud/rest_api/model/Subscription.java | 6 +- .../cloud/rest_api/model/TGArrayNodeData.java | 6 +- .../cloud/rest_api/model/TGInputNodeData.java | 5 +- .../cloud/rest_api/model/TGQueryRanges.java | 5 +- .../cloud/rest_api/model/TGSQLNodeData.java | 9 +- .../cloud/rest_api/model/TGUDFArgument.java | 9 +- .../rest_api/model/TGUDFEnvironment.java | 66 +- .../model/TGUDFEnvironmentResources.java | 10 +- .../cloud/rest_api/model/TGUDFNodeData.java | 9 +- .../cloud/rest_api/model/TGUDFStorage.java | 330 + .../cloud/rest_api/model/TaskGraph.java | 17 +- .../rest_api/model/TaskGraphActions.java | 3 +- .../model/TaskGraphClientNodeStatus.java | 6 +- .../cloud/rest_api/model/TaskGraphLog.java | 153 +- .../model/TaskGraphLogRunLocation.java | 3 +- .../rest_api/model/TaskGraphLogStatus.java | 3 +- .../rest_api/model/TaskGraphLogsData.java | 6 +- .../cloud/rest_api/model/TaskGraphNode.java | 9 +- .../rest_api/model/TaskGraphNodeMetadata.java | 6 +- .../rest_api/model/TaskGraphSharing.java | 6 +- .../cloud/rest_api/model/TaskGraphType.java | 7 +- .../cloud/rest_api/model/TaskGraphs.java | 6 +- .../cloud/rest_api/model/TileDBConfig.java | 6 +- .../model/TileDBConfigEntriesInner.java | 6 +- .../io/tiledb/cloud/rest_api/model/Token.java | 6 +- .../cloud/rest_api/model/TokenRequest.java | 6 +- .../cloud/rest_api/model/TokenScope.java | 3 +- .../cloud/rest_api/model/UDFActions.java | 3 +- .../cloud/rest_api/model/UDFArrayDetails.java | 9 +- .../cloud/rest_api/model/UDFCopied.java | 6 +- .../tiledb/cloud/rest_api/model/UDFCopy.java | 6 +- .../cloud/rest_api/model/UDFFavorite.java | 6 +- .../rest_api/model/UDFFavoritesData.java | 6 +- .../tiledb/cloud/rest_api/model/UDFImage.java | 6 +- .../cloud/rest_api/model/UDFImageVersion.java | 6 +- .../tiledb/cloud/rest_api/model/UDFInfo.java | 6 +- .../cloud/rest_api/model/UDFInfoUpdate.java | 6 +- .../cloud/rest_api/model/UDFLanguage.java | 7 +- .../cloud/rest_api/model/UDFSharing.java | 6 +- .../cloud/rest_api/model/UDFSubarray.java | 6 +- .../rest_api/model/UDFSubarrayRange.java | 6 +- .../tiledb/cloud/rest_api/model/UDFType.java | 3 +- .../io/tiledb/cloud/rest_api/model/User.java | 46 +- .../tiledb/cloud/rest_api/model/Writer.java | 6 +- .../cloud/rest_api/v2/ApiException.java | 1 - 297 files changed, 46169 insertions(+), 7336 deletions(-) create mode 100644 docs/AssetBackingType.md create mode 100644 docs/AssetInfo.md create mode 100644 docs/AssetListResponse.md create mode 100644 docs/AssetOwnershipLevel.md create mode 100644 docs/AssetsApi.md create mode 100644 docs/ChangeAssetCredentialsRequest.md create mode 100644 docs/Enumeration.md create mode 100644 docs/GroupContentActivity.md create mode 100644 docs/GroupContentActivityAsset.md create mode 100644 docs/GroupContentActivityResponse.md create mode 100644 docs/LoadArraySchemaRequest.md create mode 100644 docs/LoadArraySchemaResponse.md create mode 100644 docs/LoadEnumerationsRequest.md create mode 100644 docs/LoadEnumerationsResponse.md create mode 100644 docs/MetadataStringified.md create mode 100644 docs/MetadataStringifiedEntry.md create mode 100644 docs/OrganizationUpdate.md create mode 100644 docs/PodStatus.md create mode 100644 docs/SharePaymentRequest.md create mode 100644 docs/TGUDFStorage.md create mode 100644 src/main/java/io/tiledb/cloud/rest_api/ArrayApi.java create mode 100644 src/main/java/io/tiledb/cloud/rest_api/ArrayTasksApi.java create mode 100644 src/main/java/io/tiledb/cloud/rest_api/AssetsApi.java create mode 100644 src/main/java/io/tiledb/cloud/rest_api/FavoritesApi.java create mode 100644 src/main/java/io/tiledb/cloud/rest_api/FilesApi.java create mode 100644 src/main/java/io/tiledb/cloud/rest_api/GroupsApi.java create mode 100644 src/main/java/io/tiledb/cloud/rest_api/InvitationApi.java create mode 100644 src/main/java/io/tiledb/cloud/rest_api/NotebookApi.java create mode 100644 src/main/java/io/tiledb/cloud/rest_api/NotebooksApi.java create mode 100644 src/main/java/io/tiledb/cloud/rest_api/OrganizationApi.java create mode 100644 src/main/java/io/tiledb/cloud/rest_api/QueryApi.java create mode 100644 src/main/java/io/tiledb/cloud/rest_api/RegisteredTaskGraphsApi.java create mode 100644 src/main/java/io/tiledb/cloud/rest_api/SqlApi.java create mode 100644 src/main/java/io/tiledb/cloud/rest_api/StatsApi.java create mode 100644 src/main/java/io/tiledb/cloud/rest_api/TaskGraphLogsApi.java create mode 100644 src/main/java/io/tiledb/cloud/rest_api/TaskGraphsApi.java create mode 100644 src/main/java/io/tiledb/cloud/rest_api/TasksApi.java create mode 100644 src/main/java/io/tiledb/cloud/rest_api/UdfApi.java create mode 100644 src/main/java/io/tiledb/cloud/rest_api/UserApi.java create mode 100644 src/main/java/io/tiledb/cloud/rest_api/model/AssetBackingType.java create mode 100644 src/main/java/io/tiledb/cloud/rest_api/model/AssetInfo.java create mode 100644 src/main/java/io/tiledb/cloud/rest_api/model/AssetListResponse.java create mode 100644 src/main/java/io/tiledb/cloud/rest_api/model/AssetOwnershipLevel.java create mode 100644 src/main/java/io/tiledb/cloud/rest_api/model/ChangeAssetCredentialsRequest.java create mode 100644 src/main/java/io/tiledb/cloud/rest_api/model/Enumeration.java create mode 100644 src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivity.java create mode 100644 src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivityAsset.java create mode 100644 src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivityResponse.java create mode 100644 src/main/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaRequest.java create mode 100644 src/main/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaResponse.java create mode 100644 src/main/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsRequest.java create mode 100644 src/main/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsResponse.java create mode 100644 src/main/java/io/tiledb/cloud/rest_api/model/MetadataStringified.java create mode 100644 src/main/java/io/tiledb/cloud/rest_api/model/MetadataStringifiedEntry.java create mode 100644 src/main/java/io/tiledb/cloud/rest_api/model/OrganizationUpdate.java create mode 100644 src/main/java/io/tiledb/cloud/rest_api/model/PodStatus.java create mode 100644 src/main/java/io/tiledb/cloud/rest_api/model/SharePaymentRequest.java create mode 100644 src/main/java/io/tiledb/cloud/rest_api/model/TGUDFStorage.java diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 9d414f7..adc4cc9 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -1,3 +1,4 @@ +.github/workflows/maven.yml .gitignore .travis.yml api/openapi.yaml @@ -30,12 +31,18 @@ docs/ArrayTaskType.md docs/ArrayTasksApi.md docs/ArrayType.md docs/ArrayVacuumRequest.md +docs/AssetBackingType.md +docs/AssetInfo.md +docs/AssetListResponse.md docs/AssetLocations.md +docs/AssetOwnershipLevel.md docs/AssetType.md +docs/AssetsApi.md docs/Attribute.md docs/AttributeBufferHeader.md docs/AttributeBufferSize.md docs/Backoff.md +docs/ChangeAssetCredentialsRequest.md docs/Datatype.md docs/Dimension.md docs/DimensionCoordinate.md @@ -45,6 +52,7 @@ docs/DomainArray.md docs/DomainCheckResult.md docs/DomainCheckStatus.md docs/DomainVerificationStatus.md +docs/Enumeration.md docs/Error.md docs/FavoritesApi.md docs/FileCreate.md @@ -66,12 +74,12 @@ docs/FragmentMetadata.md docs/GenericUDF.md docs/GetTiledbStats200Response.md docs/GroupActions.md -docs/GroupActivity.md -docs/GroupActivityAsset.md -docs/GroupActivityResponse.md docs/GroupBrowserData.md docs/GroupBrowserFilterData.md docs/GroupChanges.md +docs/GroupContentActivity.md +docs/GroupContentActivityAsset.md +docs/GroupContentActivityResponse.md docs/GroupContents.md docs/GroupContentsFilterData.md docs/GroupCreate.md @@ -98,9 +106,15 @@ docs/InvitationStatus.md docs/InvitationType.md docs/LastAccessedArray.md docs/Layout.md +docs/LoadArraySchemaRequest.md +docs/LoadArraySchemaResponse.md +docs/LoadEnumerationsRequest.md +docs/LoadEnumerationsResponse.md docs/MLModelFavorite.md docs/MLModelFavoritesData.md docs/MaxBufferSizes.md +docs/MetadataStringified.md +docs/MetadataStringifiedEntry.md docs/MultiArrayUDF.md docs/NamespaceActions.md docs/NonEmptyDomain.md @@ -114,8 +128,10 @@ docs/NotebooksApi.md docs/Organization.md docs/OrganizationApi.md docs/OrganizationRoles.md +docs/OrganizationUpdate.md docs/OrganizationUser.md docs/PaginationMetadata.md +docs/PodStatus.md docs/Pricing.md docs/PricingAggregateUsage.md docs/PricingCurrency.md @@ -142,6 +158,7 @@ docs/SSODomainConfig.md docs/SSODomainConfigResponse.md docs/SSODomainSetup.md docs/SSOProvider.md +docs/SharePaymentRequest.md docs/SingleFragmentInfo.md docs/SqlApi.md docs/StatsApi.md @@ -160,6 +177,7 @@ docs/TGUDFArgument.md docs/TGUDFEnvironment.md docs/TGUDFEnvironmentResources.md docs/TGUDFNodeData.md +docs/TGUDFStorage.md docs/TaskGraph.md docs/TaskGraphActions.md docs/TaskGraphClientNodeStatus.md @@ -207,419 +225,239 @@ gradlew gradlew.bat pom.xml src/main/AndroidManifest.xml -src/main/java/org/openapitools/client/ApiCallback.java -src/main/java/org/openapitools/client/ApiClient.java -src/main/java/org/openapitools/client/ApiException.java -src/main/java/org/openapitools/client/ApiResponse.java -src/main/java/org/openapitools/client/Configuration.java -src/main/java/org/openapitools/client/GzipRequestInterceptor.java -src/main/java/org/openapitools/client/JSON.java -src/main/java/org/openapitools/client/Pair.java -src/main/java/org/openapitools/client/ProgressRequestBody.java -src/main/java/org/openapitools/client/ProgressResponseBody.java -src/main/java/org/openapitools/client/ServerConfiguration.java -src/main/java/org/openapitools/client/ServerVariable.java -src/main/java/org/openapitools/client/StringUtil.java -src/main/java/org/openapitools/client/api/ArrayApi.java -src/main/java/org/openapitools/client/api/ArrayTasksApi.java -src/main/java/org/openapitools/client/api/FavoritesApi.java -src/main/java/org/openapitools/client/api/FilesApi.java -src/main/java/org/openapitools/client/api/GroupsApi.java -src/main/java/org/openapitools/client/api/InvitationApi.java -src/main/java/org/openapitools/client/api/NotebookApi.java -src/main/java/org/openapitools/client/api/NotebooksApi.java -src/main/java/org/openapitools/client/api/OrganizationApi.java -src/main/java/org/openapitools/client/api/QueryApi.java -src/main/java/org/openapitools/client/api/RegisteredTaskGraphsApi.java -src/main/java/org/openapitools/client/api/SqlApi.java -src/main/java/org/openapitools/client/api/StatsApi.java -src/main/java/org/openapitools/client/api/TaskGraphLogsApi.java -src/main/java/org/openapitools/client/api/TaskGraphsApi.java -src/main/java/org/openapitools/client/api/TasksApi.java -src/main/java/org/openapitools/client/api/UdfApi.java -src/main/java/org/openapitools/client/api/UserApi.java -src/main/java/org/openapitools/client/auth/ApiKeyAuth.java -src/main/java/org/openapitools/client/auth/Authentication.java -src/main/java/org/openapitools/client/auth/HttpBasicAuth.java -src/main/java/org/openapitools/client/auth/HttpBearerAuth.java -src/main/java/org/openapitools/client/auth/OAuth.java -src/main/java/org/openapitools/client/auth/OAuthFlow.java -src/main/java/org/openapitools/client/auth/OAuthOkHttpClient.java -src/main/java/org/openapitools/client/auth/RetryingOAuth.java -src/main/java/org/openapitools/client/model/AWSAccessCredentials.java -src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java -src/main/java/org/openapitools/client/model/ActivityEventType.java -src/main/java/org/openapitools/client/model/Array.java -src/main/java/org/openapitools/client/model/ArrayActions.java -src/main/java/org/openapitools/client/model/ArrayActivityLog.java -src/main/java/org/openapitools/client/model/ArrayBrowserData.java -src/main/java/org/openapitools/client/model/ArrayBrowserSidebar.java -src/main/java/org/openapitools/client/model/ArrayConsolidationRequest.java -src/main/java/org/openapitools/client/model/ArrayEndTimestampData.java -src/main/java/org/openapitools/client/model/ArrayFavorite.java -src/main/java/org/openapitools/client/model/ArrayFavoritesData.java -src/main/java/org/openapitools/client/model/ArrayInfo.java -src/main/java/org/openapitools/client/model/ArrayInfoUpdate.java -src/main/java/org/openapitools/client/model/ArrayMetadata.java -src/main/java/org/openapitools/client/model/ArrayMetadataEntry.java -src/main/java/org/openapitools/client/model/ArraySample.java -src/main/java/org/openapitools/client/model/ArraySchema.java -src/main/java/org/openapitools/client/model/ArraySharing.java -src/main/java/org/openapitools/client/model/ArrayTask.java -src/main/java/org/openapitools/client/model/ArrayTaskBrowserSidebar.java -src/main/java/org/openapitools/client/model/ArrayTaskData.java -src/main/java/org/openapitools/client/model/ArrayTaskLog.java -src/main/java/org/openapitools/client/model/ArrayTaskStatus.java -src/main/java/org/openapitools/client/model/ArrayTaskType.java -src/main/java/org/openapitools/client/model/ArrayType.java -src/main/java/org/openapitools/client/model/ArrayVacuumRequest.java -src/main/java/org/openapitools/client/model/AssetLocations.java -src/main/java/org/openapitools/client/model/AssetType.java -src/main/java/org/openapitools/client/model/Attribute.java -src/main/java/org/openapitools/client/model/AttributeBufferHeader.java -src/main/java/org/openapitools/client/model/AttributeBufferSize.java -src/main/java/org/openapitools/client/model/Backoff.java -src/main/java/org/openapitools/client/model/Datatype.java -src/main/java/org/openapitools/client/model/Dimension.java -src/main/java/org/openapitools/client/model/DimensionCoordinate.java -src/main/java/org/openapitools/client/model/DimensionTileExtent.java -src/main/java/org/openapitools/client/model/Domain.java -src/main/java/org/openapitools/client/model/DomainArray.java -src/main/java/org/openapitools/client/model/DomainCheckResult.java -src/main/java/org/openapitools/client/model/DomainCheckStatus.java -src/main/java/org/openapitools/client/model/DomainVerificationStatus.java -src/main/java/org/openapitools/client/model/Error.java -src/main/java/org/openapitools/client/model/FileCreate.java -src/main/java/org/openapitools/client/model/FileCreated.java -src/main/java/org/openapitools/client/model/FileExport.java -src/main/java/org/openapitools/client/model/FileExported.java -src/main/java/org/openapitools/client/model/FilePropertyName.java -src/main/java/org/openapitools/client/model/FileType.java -src/main/java/org/openapitools/client/model/FileUploaded.java -src/main/java/org/openapitools/client/model/Filter.java -src/main/java/org/openapitools/client/model/FilterData.java -src/main/java/org/openapitools/client/model/FilterOption.java -src/main/java/org/openapitools/client/model/FilterPipeline.java -src/main/java/org/openapitools/client/model/FilterType.java -src/main/java/org/openapitools/client/model/FragmentInfo.java -src/main/java/org/openapitools/client/model/FragmentInfoRequest.java -src/main/java/org/openapitools/client/model/FragmentMetadata.java -src/main/java/org/openapitools/client/model/GenericUDF.java -src/main/java/org/openapitools/client/model/GetTiledbStats200Response.java -src/main/java/org/openapitools/client/model/GroupActions.java -src/main/java/org/openapitools/client/model/GroupActivity.java -src/main/java/org/openapitools/client/model/GroupActivityAsset.java -src/main/java/org/openapitools/client/model/GroupActivityResponse.java -src/main/java/org/openapitools/client/model/GroupBrowserData.java -src/main/java/org/openapitools/client/model/GroupBrowserFilterData.java -src/main/java/org/openapitools/client/model/GroupChanges.java -src/main/java/org/openapitools/client/model/GroupContents.java -src/main/java/org/openapitools/client/model/GroupContentsFilterData.java -src/main/java/org/openapitools/client/model/GroupCreate.java -src/main/java/org/openapitools/client/model/GroupEntry.java -src/main/java/org/openapitools/client/model/GroupInfo.java -src/main/java/org/openapitools/client/model/GroupMember.java -src/main/java/org/openapitools/client/model/GroupMemberAssetType.java -src/main/java/org/openapitools/client/model/GroupMemberType.java -src/main/java/org/openapitools/client/model/GroupRegister.java -src/main/java/org/openapitools/client/model/GroupSharing.java -src/main/java/org/openapitools/client/model/GroupSharingRequest.java -src/main/java/org/openapitools/client/model/GroupType.java -src/main/java/org/openapitools/client/model/GroupTypeMetadataKey.java -src/main/java/org/openapitools/client/model/GroupUpdate.java -src/main/java/org/openapitools/client/model/Invitation.java -src/main/java/org/openapitools/client/model/InvitationArrayShareEmail.java -src/main/java/org/openapitools/client/model/InvitationData.java -src/main/java/org/openapitools/client/model/InvitationFailedRecipients.java -src/main/java/org/openapitools/client/model/InvitationGroupShareEmail.java -src/main/java/org/openapitools/client/model/InvitationOrganizationJoinEmail.java -src/main/java/org/openapitools/client/model/InvitationStatus.java -src/main/java/org/openapitools/client/model/InvitationType.java -src/main/java/org/openapitools/client/model/LastAccessedArray.java -src/main/java/org/openapitools/client/model/Layout.java -src/main/java/org/openapitools/client/model/MLModelFavorite.java -src/main/java/org/openapitools/client/model/MLModelFavoritesData.java -src/main/java/org/openapitools/client/model/MaxBufferSizes.java -src/main/java/org/openapitools/client/model/MultiArrayUDF.java -src/main/java/org/openapitools/client/model/NamespaceActions.java -src/main/java/org/openapitools/client/model/NonEmptyDomain.java -src/main/java/org/openapitools/client/model/NotebookCopied.java -src/main/java/org/openapitools/client/model/NotebookCopy.java -src/main/java/org/openapitools/client/model/NotebookFavorite.java -src/main/java/org/openapitools/client/model/NotebookFavoritesData.java -src/main/java/org/openapitools/client/model/NotebookStatus.java -src/main/java/org/openapitools/client/model/Organization.java -src/main/java/org/openapitools/client/model/OrganizationRoles.java -src/main/java/org/openapitools/client/model/OrganizationUser.java -src/main/java/org/openapitools/client/model/PaginationMetadata.java -src/main/java/org/openapitools/client/model/Pricing.java -src/main/java/org/openapitools/client/model/PricingAggregateUsage.java -src/main/java/org/openapitools/client/model/PricingCurrency.java -src/main/java/org/openapitools/client/model/PricingInterval.java -src/main/java/org/openapitools/client/model/PricingType.java -src/main/java/org/openapitools/client/model/PricingUnitLabel.java -src/main/java/org/openapitools/client/model/PublicShareFilter.java -src/main/java/org/openapitools/client/model/Query.java -src/main/java/org/openapitools/client/model/QueryJson.java -src/main/java/org/openapitools/client/model/QueryRanges.java -src/main/java/org/openapitools/client/model/QueryReader.java -src/main/java/org/openapitools/client/model/Querystatus.java -src/main/java/org/openapitools/client/model/Querytype.java -src/main/java/org/openapitools/client/model/ReadState.java -src/main/java/org/openapitools/client/model/RegisteredTaskGraph.java -src/main/java/org/openapitools/client/model/ResetUserPasswordRequest.java -src/main/java/org/openapitools/client/model/ResultFormat.java -src/main/java/org/openapitools/client/model/RetryPolicy.java -src/main/java/org/openapitools/client/model/RetryStrategy.java -src/main/java/org/openapitools/client/model/SQLParameters.java -src/main/java/org/openapitools/client/model/SSODomainConfig.java -src/main/java/org/openapitools/client/model/SSODomainConfigResponse.java -src/main/java/org/openapitools/client/model/SSODomainSetup.java -src/main/java/org/openapitools/client/model/SSOProvider.java -src/main/java/org/openapitools/client/model/SingleFragmentInfo.java -src/main/java/org/openapitools/client/model/StorageLocation.java -src/main/java/org/openapitools/client/model/Subarray.java -src/main/java/org/openapitools/client/model/SubarrayPartitioner.java -src/main/java/org/openapitools/client/model/SubarrayPartitionerCurrent.java -src/main/java/org/openapitools/client/model/SubarrayPartitionerState.java -src/main/java/org/openapitools/client/model/SubarrayRanges.java -src/main/java/org/openapitools/client/model/Subscription.java -src/main/java/org/openapitools/client/model/TGArrayNodeData.java -src/main/java/org/openapitools/client/model/TGInputNodeData.java -src/main/java/org/openapitools/client/model/TGQueryRanges.java -src/main/java/org/openapitools/client/model/TGSQLNodeData.java -src/main/java/org/openapitools/client/model/TGUDFArgument.java -src/main/java/org/openapitools/client/model/TGUDFEnvironment.java -src/main/java/org/openapitools/client/model/TGUDFEnvironmentResources.java -src/main/java/org/openapitools/client/model/TGUDFNodeData.java -src/main/java/org/openapitools/client/model/TaskGraph.java -src/main/java/org/openapitools/client/model/TaskGraphActions.java -src/main/java/org/openapitools/client/model/TaskGraphClientNodeStatus.java -src/main/java/org/openapitools/client/model/TaskGraphLog.java -src/main/java/org/openapitools/client/model/TaskGraphLogRunLocation.java -src/main/java/org/openapitools/client/model/TaskGraphLogStatus.java -src/main/java/org/openapitools/client/model/TaskGraphLogsData.java -src/main/java/org/openapitools/client/model/TaskGraphNode.java -src/main/java/org/openapitools/client/model/TaskGraphNodeMetadata.java -src/main/java/org/openapitools/client/model/TaskGraphSharing.java -src/main/java/org/openapitools/client/model/TaskGraphType.java -src/main/java/org/openapitools/client/model/TaskGraphs.java -src/main/java/org/openapitools/client/model/TileDBConfig.java -src/main/java/org/openapitools/client/model/TileDBConfigEntriesInner.java -src/main/java/org/openapitools/client/model/Token.java -src/main/java/org/openapitools/client/model/TokenRequest.java -src/main/java/org/openapitools/client/model/TokenScope.java -src/main/java/org/openapitools/client/model/UDFActions.java -src/main/java/org/openapitools/client/model/UDFArrayDetails.java -src/main/java/org/openapitools/client/model/UDFCopied.java -src/main/java/org/openapitools/client/model/UDFCopy.java -src/main/java/org/openapitools/client/model/UDFFavorite.java -src/main/java/org/openapitools/client/model/UDFFavoritesData.java -src/main/java/org/openapitools/client/model/UDFImage.java -src/main/java/org/openapitools/client/model/UDFImageVersion.java -src/main/java/org/openapitools/client/model/UDFInfo.java -src/main/java/org/openapitools/client/model/UDFInfoUpdate.java -src/main/java/org/openapitools/client/model/UDFLanguage.java -src/main/java/org/openapitools/client/model/UDFSharing.java -src/main/java/org/openapitools/client/model/UDFSubarray.java -src/main/java/org/openapitools/client/model/UDFSubarrayRange.java -src/main/java/org/openapitools/client/model/UDFType.java -src/main/java/org/openapitools/client/model/User.java -src/main/java/org/openapitools/client/model/Writer.java -src/test/java/org/openapitools/client/api/ArrayApiTest.java -src/test/java/org/openapitools/client/api/ArrayTasksApiTest.java -src/test/java/org/openapitools/client/api/FavoritesApiTest.java -src/test/java/org/openapitools/client/api/FilesApiTest.java -src/test/java/org/openapitools/client/api/GroupsApiTest.java -src/test/java/org/openapitools/client/api/InvitationApiTest.java -src/test/java/org/openapitools/client/api/NotebookApiTest.java -src/test/java/org/openapitools/client/api/NotebooksApiTest.java -src/test/java/org/openapitools/client/api/OrganizationApiTest.java -src/test/java/org/openapitools/client/api/QueryApiTest.java -src/test/java/org/openapitools/client/api/RegisteredTaskGraphsApiTest.java -src/test/java/org/openapitools/client/api/SqlApiTest.java -src/test/java/org/openapitools/client/api/StatsApiTest.java -src/test/java/org/openapitools/client/api/TaskGraphLogsApiTest.java -src/test/java/org/openapitools/client/api/TaskGraphsApiTest.java -src/test/java/org/openapitools/client/api/TasksApiTest.java -src/test/java/org/openapitools/client/api/UdfApiTest.java -src/test/java/org/openapitools/client/api/UserApiTest.java -src/test/java/org/openapitools/client/model/AWSAccessCredentialsTest.java -src/test/java/org/openapitools/client/model/ActivityEventTypeTest.java -src/test/java/org/openapitools/client/model/ArrayActionsTest.java -src/test/java/org/openapitools/client/model/ArrayActivityLogTest.java -src/test/java/org/openapitools/client/model/ArrayBrowserDataTest.java -src/test/java/org/openapitools/client/model/ArrayBrowserSidebarTest.java -src/test/java/org/openapitools/client/model/ArrayConsolidationRequestTest.java -src/test/java/org/openapitools/client/model/ArrayEndTimestampDataTest.java -src/test/java/org/openapitools/client/model/ArrayFavoriteTest.java -src/test/java/org/openapitools/client/model/ArrayFavoritesDataTest.java -src/test/java/org/openapitools/client/model/ArrayInfoTest.java -src/test/java/org/openapitools/client/model/ArrayInfoUpdateTest.java -src/test/java/org/openapitools/client/model/ArrayMetadataEntryTest.java -src/test/java/org/openapitools/client/model/ArrayMetadataTest.java -src/test/java/org/openapitools/client/model/ArraySampleTest.java -src/test/java/org/openapitools/client/model/ArraySchemaTest.java -src/test/java/org/openapitools/client/model/ArraySharingTest.java -src/test/java/org/openapitools/client/model/ArrayTaskBrowserSidebarTest.java -src/test/java/org/openapitools/client/model/ArrayTaskDataTest.java -src/test/java/org/openapitools/client/model/ArrayTaskLogTest.java -src/test/java/org/openapitools/client/model/ArrayTaskStatusTest.java -src/test/java/org/openapitools/client/model/ArrayTaskTest.java -src/test/java/org/openapitools/client/model/ArrayTaskTypeTest.java -src/test/java/org/openapitools/client/model/ArrayTest.java -src/test/java/org/openapitools/client/model/ArrayTypeTest.java -src/test/java/org/openapitools/client/model/ArrayVacuumRequestTest.java -src/test/java/org/openapitools/client/model/AssetLocationsTest.java -src/test/java/org/openapitools/client/model/AssetTypeTest.java -src/test/java/org/openapitools/client/model/AttributeBufferHeaderTest.java -src/test/java/org/openapitools/client/model/AttributeBufferSizeTest.java -src/test/java/org/openapitools/client/model/AttributeTest.java -src/test/java/org/openapitools/client/model/BackoffTest.java -src/test/java/org/openapitools/client/model/DatatypeTest.java -src/test/java/org/openapitools/client/model/DimensionCoordinateTest.java -src/test/java/org/openapitools/client/model/DimensionTest.java -src/test/java/org/openapitools/client/model/DimensionTileExtentTest.java -src/test/java/org/openapitools/client/model/DomainArrayTest.java -src/test/java/org/openapitools/client/model/DomainCheckResultTest.java -src/test/java/org/openapitools/client/model/DomainCheckStatusTest.java -src/test/java/org/openapitools/client/model/DomainTest.java -src/test/java/org/openapitools/client/model/DomainVerificationStatusTest.java -src/test/java/org/openapitools/client/model/ErrorTest.java -src/test/java/org/openapitools/client/model/FileCreateTest.java -src/test/java/org/openapitools/client/model/FileCreatedTest.java -src/test/java/org/openapitools/client/model/FileExportTest.java -src/test/java/org/openapitools/client/model/FileExportedTest.java -src/test/java/org/openapitools/client/model/FilePropertyNameTest.java -src/test/java/org/openapitools/client/model/FileTypeTest.java -src/test/java/org/openapitools/client/model/FileUploadedTest.java -src/test/java/org/openapitools/client/model/FilterDataTest.java -src/test/java/org/openapitools/client/model/FilterOptionTest.java -src/test/java/org/openapitools/client/model/FilterPipelineTest.java -src/test/java/org/openapitools/client/model/FilterTest.java -src/test/java/org/openapitools/client/model/FilterTypeTest.java -src/test/java/org/openapitools/client/model/FragmentInfoRequestTest.java -src/test/java/org/openapitools/client/model/FragmentInfoTest.java -src/test/java/org/openapitools/client/model/FragmentMetadataTest.java -src/test/java/org/openapitools/client/model/GenericUDFTest.java -src/test/java/org/openapitools/client/model/GetTiledbStats200ResponseTest.java -src/test/java/org/openapitools/client/model/GroupActionsTest.java -src/test/java/org/openapitools/client/model/GroupActivityAssetTest.java -src/test/java/org/openapitools/client/model/GroupActivityResponseTest.java -src/test/java/org/openapitools/client/model/GroupActivityTest.java -src/test/java/org/openapitools/client/model/GroupBrowserDataTest.java -src/test/java/org/openapitools/client/model/GroupBrowserFilterDataTest.java -src/test/java/org/openapitools/client/model/GroupChangesTest.java -src/test/java/org/openapitools/client/model/GroupContentsFilterDataTest.java -src/test/java/org/openapitools/client/model/GroupContentsTest.java -src/test/java/org/openapitools/client/model/GroupCreateTest.java -src/test/java/org/openapitools/client/model/GroupEntryTest.java -src/test/java/org/openapitools/client/model/GroupInfoTest.java -src/test/java/org/openapitools/client/model/GroupMemberAssetTypeTest.java -src/test/java/org/openapitools/client/model/GroupMemberTest.java -src/test/java/org/openapitools/client/model/GroupMemberTypeTest.java -src/test/java/org/openapitools/client/model/GroupRegisterTest.java -src/test/java/org/openapitools/client/model/GroupSharingRequestTest.java -src/test/java/org/openapitools/client/model/GroupSharingTest.java -src/test/java/org/openapitools/client/model/GroupTypeMetadataKeyTest.java -src/test/java/org/openapitools/client/model/GroupTypeTest.java -src/test/java/org/openapitools/client/model/GroupUpdateTest.java -src/test/java/org/openapitools/client/model/InvitationArrayShareEmailTest.java -src/test/java/org/openapitools/client/model/InvitationDataTest.java -src/test/java/org/openapitools/client/model/InvitationFailedRecipientsTest.java -src/test/java/org/openapitools/client/model/InvitationGroupShareEmailTest.java -src/test/java/org/openapitools/client/model/InvitationOrganizationJoinEmailTest.java -src/test/java/org/openapitools/client/model/InvitationStatusTest.java -src/test/java/org/openapitools/client/model/InvitationTest.java -src/test/java/org/openapitools/client/model/InvitationTypeTest.java -src/test/java/org/openapitools/client/model/LastAccessedArrayTest.java -src/test/java/org/openapitools/client/model/LayoutTest.java -src/test/java/org/openapitools/client/model/MLModelFavoriteTest.java -src/test/java/org/openapitools/client/model/MLModelFavoritesDataTest.java -src/test/java/org/openapitools/client/model/MaxBufferSizesTest.java -src/test/java/org/openapitools/client/model/MultiArrayUDFTest.java -src/test/java/org/openapitools/client/model/NamespaceActionsTest.java -src/test/java/org/openapitools/client/model/NonEmptyDomainTest.java -src/test/java/org/openapitools/client/model/NotebookCopiedTest.java -src/test/java/org/openapitools/client/model/NotebookCopyTest.java -src/test/java/org/openapitools/client/model/NotebookFavoriteTest.java -src/test/java/org/openapitools/client/model/NotebookFavoritesDataTest.java -src/test/java/org/openapitools/client/model/NotebookStatusTest.java -src/test/java/org/openapitools/client/model/OrganizationRolesTest.java -src/test/java/org/openapitools/client/model/OrganizationTest.java -src/test/java/org/openapitools/client/model/OrganizationUserTest.java -src/test/java/org/openapitools/client/model/PaginationMetadataTest.java -src/test/java/org/openapitools/client/model/PricingAggregateUsageTest.java -src/test/java/org/openapitools/client/model/PricingCurrencyTest.java -src/test/java/org/openapitools/client/model/PricingIntervalTest.java -src/test/java/org/openapitools/client/model/PricingTest.java -src/test/java/org/openapitools/client/model/PricingTypeTest.java -src/test/java/org/openapitools/client/model/PricingUnitLabelTest.java -src/test/java/org/openapitools/client/model/PublicShareFilterTest.java -src/test/java/org/openapitools/client/model/QueryJsonTest.java -src/test/java/org/openapitools/client/model/QueryRangesTest.java -src/test/java/org/openapitools/client/model/QueryReaderTest.java -src/test/java/org/openapitools/client/model/QueryTest.java -src/test/java/org/openapitools/client/model/QuerystatusTest.java -src/test/java/org/openapitools/client/model/QuerytypeTest.java -src/test/java/org/openapitools/client/model/ReadStateTest.java -src/test/java/org/openapitools/client/model/RegisteredTaskGraphTest.java -src/test/java/org/openapitools/client/model/ResetUserPasswordRequestTest.java -src/test/java/org/openapitools/client/model/ResultFormatTest.java -src/test/java/org/openapitools/client/model/RetryPolicyTest.java -src/test/java/org/openapitools/client/model/RetryStrategyTest.java -src/test/java/org/openapitools/client/model/SQLParametersTest.java -src/test/java/org/openapitools/client/model/SSODomainConfigResponseTest.java -src/test/java/org/openapitools/client/model/SSODomainConfigTest.java -src/test/java/org/openapitools/client/model/SSODomainSetupTest.java -src/test/java/org/openapitools/client/model/SSOProviderTest.java -src/test/java/org/openapitools/client/model/SingleFragmentInfoTest.java -src/test/java/org/openapitools/client/model/StorageLocationTest.java -src/test/java/org/openapitools/client/model/SubarrayPartitionerCurrentTest.java -src/test/java/org/openapitools/client/model/SubarrayPartitionerStateTest.java -src/test/java/org/openapitools/client/model/SubarrayPartitionerTest.java -src/test/java/org/openapitools/client/model/SubarrayRangesTest.java -src/test/java/org/openapitools/client/model/SubarrayTest.java -src/test/java/org/openapitools/client/model/SubscriptionTest.java -src/test/java/org/openapitools/client/model/TGArrayNodeDataTest.java -src/test/java/org/openapitools/client/model/TGInputNodeDataTest.java -src/test/java/org/openapitools/client/model/TGQueryRangesTest.java -src/test/java/org/openapitools/client/model/TGSQLNodeDataTest.java -src/test/java/org/openapitools/client/model/TGUDFArgumentTest.java -src/test/java/org/openapitools/client/model/TGUDFEnvironmentResourcesTest.java -src/test/java/org/openapitools/client/model/TGUDFEnvironmentTest.java -src/test/java/org/openapitools/client/model/TGUDFNodeDataTest.java -src/test/java/org/openapitools/client/model/TaskGraphActionsTest.java -src/test/java/org/openapitools/client/model/TaskGraphClientNodeStatusTest.java -src/test/java/org/openapitools/client/model/TaskGraphLogRunLocationTest.java -src/test/java/org/openapitools/client/model/TaskGraphLogStatusTest.java -src/test/java/org/openapitools/client/model/TaskGraphLogTest.java -src/test/java/org/openapitools/client/model/TaskGraphLogsDataTest.java -src/test/java/org/openapitools/client/model/TaskGraphNodeMetadataTest.java -src/test/java/org/openapitools/client/model/TaskGraphNodeTest.java -src/test/java/org/openapitools/client/model/TaskGraphSharingTest.java -src/test/java/org/openapitools/client/model/TaskGraphTest.java -src/test/java/org/openapitools/client/model/TaskGraphTypeTest.java -src/test/java/org/openapitools/client/model/TaskGraphsTest.java -src/test/java/org/openapitools/client/model/TileDBConfigEntriesInnerTest.java -src/test/java/org/openapitools/client/model/TileDBConfigTest.java -src/test/java/org/openapitools/client/model/TokenRequestTest.java -src/test/java/org/openapitools/client/model/TokenScopeTest.java -src/test/java/org/openapitools/client/model/TokenTest.java -src/test/java/org/openapitools/client/model/UDFActionsTest.java -src/test/java/org/openapitools/client/model/UDFArrayDetailsTest.java -src/test/java/org/openapitools/client/model/UDFCopiedTest.java -src/test/java/org/openapitools/client/model/UDFCopyTest.java -src/test/java/org/openapitools/client/model/UDFFavoriteTest.java -src/test/java/org/openapitools/client/model/UDFFavoritesDataTest.java -src/test/java/org/openapitools/client/model/UDFImageTest.java -src/test/java/org/openapitools/client/model/UDFImageVersionTest.java -src/test/java/org/openapitools/client/model/UDFInfoTest.java -src/test/java/org/openapitools/client/model/UDFInfoUpdateTest.java -src/test/java/org/openapitools/client/model/UDFLanguageTest.java -src/test/java/org/openapitools/client/model/UDFSharingTest.java -src/test/java/org/openapitools/client/model/UDFSubarrayRangeTest.java -src/test/java/org/openapitools/client/model/UDFSubarrayTest.java -src/test/java/org/openapitools/client/model/UDFTypeTest.java -src/test/java/org/openapitools/client/model/UserTest.java -src/test/java/org/openapitools/client/model/WriterTest.java +src/main/java/io/tiledb/cloud/rest_api/ApiCallback.java +src/main/java/io/tiledb/cloud/rest_api/ApiClient.java +src/main/java/io/tiledb/cloud/rest_api/ApiException.java +src/main/java/io/tiledb/cloud/rest_api/ApiResponse.java +src/main/java/io/tiledb/cloud/rest_api/ArrayApi.java +src/main/java/io/tiledb/cloud/rest_api/ArrayTasksApi.java +src/main/java/io/tiledb/cloud/rest_api/AssetsApi.java +src/main/java/io/tiledb/cloud/rest_api/Configuration.java +src/main/java/io/tiledb/cloud/rest_api/FavoritesApi.java +src/main/java/io/tiledb/cloud/rest_api/FilesApi.java +src/main/java/io/tiledb/cloud/rest_api/GroupsApi.java +src/main/java/io/tiledb/cloud/rest_api/GzipRequestInterceptor.java +src/main/java/io/tiledb/cloud/rest_api/InvitationApi.java +src/main/java/io/tiledb/cloud/rest_api/JSON.java +src/main/java/io/tiledb/cloud/rest_api/NotebookApi.java +src/main/java/io/tiledb/cloud/rest_api/NotebooksApi.java +src/main/java/io/tiledb/cloud/rest_api/OrganizationApi.java +src/main/java/io/tiledb/cloud/rest_api/Pair.java +src/main/java/io/tiledb/cloud/rest_api/ProgressRequestBody.java +src/main/java/io/tiledb/cloud/rest_api/ProgressResponseBody.java +src/main/java/io/tiledb/cloud/rest_api/QueryApi.java +src/main/java/io/tiledb/cloud/rest_api/RegisteredTaskGraphsApi.java +src/main/java/io/tiledb/cloud/rest_api/ServerConfiguration.java +src/main/java/io/tiledb/cloud/rest_api/ServerVariable.java +src/main/java/io/tiledb/cloud/rest_api/SqlApi.java +src/main/java/io/tiledb/cloud/rest_api/StatsApi.java +src/main/java/io/tiledb/cloud/rest_api/StringUtil.java +src/main/java/io/tiledb/cloud/rest_api/TaskGraphLogsApi.java +src/main/java/io/tiledb/cloud/rest_api/TaskGraphsApi.java +src/main/java/io/tiledb/cloud/rest_api/TasksApi.java +src/main/java/io/tiledb/cloud/rest_api/UdfApi.java +src/main/java/io/tiledb/cloud/rest_api/UserApi.java +src/main/java/io/tiledb/cloud/rest_api/auth/ApiKeyAuth.java +src/main/java/io/tiledb/cloud/rest_api/auth/Authentication.java +src/main/java/io/tiledb/cloud/rest_api/auth/HttpBasicAuth.java +src/main/java/io/tiledb/cloud/rest_api/auth/HttpBearerAuth.java +src/main/java/io/tiledb/cloud/rest_api/auth/OAuth.java +src/main/java/io/tiledb/cloud/rest_api/auth/OAuthFlow.java +src/main/java/io/tiledb/cloud/rest_api/auth/OAuthOkHttpClient.java +src/main/java/io/tiledb/cloud/rest_api/auth/RetryingOAuth.java +src/main/java/io/tiledb/cloud/rest_api/model/AWSAccessCredentials.java +src/main/java/io/tiledb/cloud/rest_api/model/AbstractOpenApiSchema.java +src/main/java/io/tiledb/cloud/rest_api/model/ActivityEventType.java +src/main/java/io/tiledb/cloud/rest_api/model/Array.java +src/main/java/io/tiledb/cloud/rest_api/model/ArrayActions.java +src/main/java/io/tiledb/cloud/rest_api/model/ArrayActivityLog.java +src/main/java/io/tiledb/cloud/rest_api/model/ArrayBrowserData.java +src/main/java/io/tiledb/cloud/rest_api/model/ArrayBrowserSidebar.java +src/main/java/io/tiledb/cloud/rest_api/model/ArrayConsolidationRequest.java +src/main/java/io/tiledb/cloud/rest_api/model/ArrayEndTimestampData.java +src/main/java/io/tiledb/cloud/rest_api/model/ArrayFavorite.java +src/main/java/io/tiledb/cloud/rest_api/model/ArrayFavoritesData.java +src/main/java/io/tiledb/cloud/rest_api/model/ArrayInfo.java +src/main/java/io/tiledb/cloud/rest_api/model/ArrayInfoUpdate.java +src/main/java/io/tiledb/cloud/rest_api/model/ArrayMetadata.java +src/main/java/io/tiledb/cloud/rest_api/model/ArrayMetadataEntry.java +src/main/java/io/tiledb/cloud/rest_api/model/ArraySample.java +src/main/java/io/tiledb/cloud/rest_api/model/ArraySchema.java +src/main/java/io/tiledb/cloud/rest_api/model/ArraySharing.java +src/main/java/io/tiledb/cloud/rest_api/model/ArrayTask.java +src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskBrowserSidebar.java +src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskData.java +src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskLog.java +src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskStatus.java +src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskType.java +src/main/java/io/tiledb/cloud/rest_api/model/ArrayType.java +src/main/java/io/tiledb/cloud/rest_api/model/ArrayVacuumRequest.java +src/main/java/io/tiledb/cloud/rest_api/model/AssetBackingType.java +src/main/java/io/tiledb/cloud/rest_api/model/AssetInfo.java +src/main/java/io/tiledb/cloud/rest_api/model/AssetListResponse.java +src/main/java/io/tiledb/cloud/rest_api/model/AssetLocations.java +src/main/java/io/tiledb/cloud/rest_api/model/AssetOwnershipLevel.java +src/main/java/io/tiledb/cloud/rest_api/model/AssetType.java +src/main/java/io/tiledb/cloud/rest_api/model/Attribute.java +src/main/java/io/tiledb/cloud/rest_api/model/AttributeBufferHeader.java +src/main/java/io/tiledb/cloud/rest_api/model/AttributeBufferSize.java +src/main/java/io/tiledb/cloud/rest_api/model/Backoff.java +src/main/java/io/tiledb/cloud/rest_api/model/ChangeAssetCredentialsRequest.java +src/main/java/io/tiledb/cloud/rest_api/model/Datatype.java +src/main/java/io/tiledb/cloud/rest_api/model/Dimension.java +src/main/java/io/tiledb/cloud/rest_api/model/DimensionCoordinate.java +src/main/java/io/tiledb/cloud/rest_api/model/DimensionTileExtent.java +src/main/java/io/tiledb/cloud/rest_api/model/Domain.java +src/main/java/io/tiledb/cloud/rest_api/model/DomainArray.java +src/main/java/io/tiledb/cloud/rest_api/model/DomainCheckResult.java +src/main/java/io/tiledb/cloud/rest_api/model/DomainCheckStatus.java +src/main/java/io/tiledb/cloud/rest_api/model/DomainVerificationStatus.java +src/main/java/io/tiledb/cloud/rest_api/model/Enumeration.java +src/main/java/io/tiledb/cloud/rest_api/model/Error.java +src/main/java/io/tiledb/cloud/rest_api/model/FileCreate.java +src/main/java/io/tiledb/cloud/rest_api/model/FileCreated.java +src/main/java/io/tiledb/cloud/rest_api/model/FileExport.java +src/main/java/io/tiledb/cloud/rest_api/model/FileExported.java +src/main/java/io/tiledb/cloud/rest_api/model/FilePropertyName.java +src/main/java/io/tiledb/cloud/rest_api/model/FileType.java +src/main/java/io/tiledb/cloud/rest_api/model/FileUploaded.java +src/main/java/io/tiledb/cloud/rest_api/model/Filter.java +src/main/java/io/tiledb/cloud/rest_api/model/FilterData.java +src/main/java/io/tiledb/cloud/rest_api/model/FilterOption.java +src/main/java/io/tiledb/cloud/rest_api/model/FilterPipeline.java +src/main/java/io/tiledb/cloud/rest_api/model/FilterType.java +src/main/java/io/tiledb/cloud/rest_api/model/FragmentInfo.java +src/main/java/io/tiledb/cloud/rest_api/model/FragmentInfoRequest.java +src/main/java/io/tiledb/cloud/rest_api/model/FragmentMetadata.java +src/main/java/io/tiledb/cloud/rest_api/model/GenericUDF.java +src/main/java/io/tiledb/cloud/rest_api/model/GetTiledbStats200Response.java +src/main/java/io/tiledb/cloud/rest_api/model/GroupActions.java +src/main/java/io/tiledb/cloud/rest_api/model/GroupBrowserData.java +src/main/java/io/tiledb/cloud/rest_api/model/GroupBrowserFilterData.java +src/main/java/io/tiledb/cloud/rest_api/model/GroupChanges.java +src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivity.java +src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivityAsset.java +src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivityResponse.java +src/main/java/io/tiledb/cloud/rest_api/model/GroupContents.java +src/main/java/io/tiledb/cloud/rest_api/model/GroupContentsFilterData.java +src/main/java/io/tiledb/cloud/rest_api/model/GroupCreate.java +src/main/java/io/tiledb/cloud/rest_api/model/GroupEntry.java +src/main/java/io/tiledb/cloud/rest_api/model/GroupInfo.java +src/main/java/io/tiledb/cloud/rest_api/model/GroupMember.java +src/main/java/io/tiledb/cloud/rest_api/model/GroupMemberAssetType.java +src/main/java/io/tiledb/cloud/rest_api/model/GroupMemberType.java +src/main/java/io/tiledb/cloud/rest_api/model/GroupRegister.java +src/main/java/io/tiledb/cloud/rest_api/model/GroupSharing.java +src/main/java/io/tiledb/cloud/rest_api/model/GroupSharingRequest.java +src/main/java/io/tiledb/cloud/rest_api/model/GroupType.java +src/main/java/io/tiledb/cloud/rest_api/model/GroupTypeMetadataKey.java +src/main/java/io/tiledb/cloud/rest_api/model/GroupUpdate.java +src/main/java/io/tiledb/cloud/rest_api/model/Invitation.java +src/main/java/io/tiledb/cloud/rest_api/model/InvitationArrayShareEmail.java +src/main/java/io/tiledb/cloud/rest_api/model/InvitationData.java +src/main/java/io/tiledb/cloud/rest_api/model/InvitationFailedRecipients.java +src/main/java/io/tiledb/cloud/rest_api/model/InvitationGroupShareEmail.java +src/main/java/io/tiledb/cloud/rest_api/model/InvitationOrganizationJoinEmail.java +src/main/java/io/tiledb/cloud/rest_api/model/InvitationStatus.java +src/main/java/io/tiledb/cloud/rest_api/model/InvitationType.java +src/main/java/io/tiledb/cloud/rest_api/model/LastAccessedArray.java +src/main/java/io/tiledb/cloud/rest_api/model/Layout.java +src/main/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaRequest.java +src/main/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaResponse.java +src/main/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsRequest.java +src/main/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsResponse.java +src/main/java/io/tiledb/cloud/rest_api/model/MLModelFavorite.java +src/main/java/io/tiledb/cloud/rest_api/model/MLModelFavoritesData.java +src/main/java/io/tiledb/cloud/rest_api/model/MaxBufferSizes.java +src/main/java/io/tiledb/cloud/rest_api/model/MetadataStringified.java +src/main/java/io/tiledb/cloud/rest_api/model/MetadataStringifiedEntry.java +src/main/java/io/tiledb/cloud/rest_api/model/MultiArrayUDF.java +src/main/java/io/tiledb/cloud/rest_api/model/NamespaceActions.java +src/main/java/io/tiledb/cloud/rest_api/model/NonEmptyDomain.java +src/main/java/io/tiledb/cloud/rest_api/model/NotebookCopied.java +src/main/java/io/tiledb/cloud/rest_api/model/NotebookCopy.java +src/main/java/io/tiledb/cloud/rest_api/model/NotebookFavorite.java +src/main/java/io/tiledb/cloud/rest_api/model/NotebookFavoritesData.java +src/main/java/io/tiledb/cloud/rest_api/model/NotebookStatus.java +src/main/java/io/tiledb/cloud/rest_api/model/Organization.java +src/main/java/io/tiledb/cloud/rest_api/model/OrganizationRoles.java +src/main/java/io/tiledb/cloud/rest_api/model/OrganizationUpdate.java +src/main/java/io/tiledb/cloud/rest_api/model/OrganizationUser.java +src/main/java/io/tiledb/cloud/rest_api/model/PaginationMetadata.java +src/main/java/io/tiledb/cloud/rest_api/model/PodStatus.java +src/main/java/io/tiledb/cloud/rest_api/model/Pricing.java +src/main/java/io/tiledb/cloud/rest_api/model/PricingAggregateUsage.java +src/main/java/io/tiledb/cloud/rest_api/model/PricingCurrency.java +src/main/java/io/tiledb/cloud/rest_api/model/PricingInterval.java +src/main/java/io/tiledb/cloud/rest_api/model/PricingType.java +src/main/java/io/tiledb/cloud/rest_api/model/PricingUnitLabel.java +src/main/java/io/tiledb/cloud/rest_api/model/PublicShareFilter.java +src/main/java/io/tiledb/cloud/rest_api/model/Query.java +src/main/java/io/tiledb/cloud/rest_api/model/QueryJson.java +src/main/java/io/tiledb/cloud/rest_api/model/QueryRanges.java +src/main/java/io/tiledb/cloud/rest_api/model/QueryReader.java +src/main/java/io/tiledb/cloud/rest_api/model/Querystatus.java +src/main/java/io/tiledb/cloud/rest_api/model/Querytype.java +src/main/java/io/tiledb/cloud/rest_api/model/ReadState.java +src/main/java/io/tiledb/cloud/rest_api/model/RegisteredTaskGraph.java +src/main/java/io/tiledb/cloud/rest_api/model/ResetUserPasswordRequest.java +src/main/java/io/tiledb/cloud/rest_api/model/ResultFormat.java +src/main/java/io/tiledb/cloud/rest_api/model/RetryPolicy.java +src/main/java/io/tiledb/cloud/rest_api/model/RetryStrategy.java +src/main/java/io/tiledb/cloud/rest_api/model/SQLParameters.java +src/main/java/io/tiledb/cloud/rest_api/model/SSODomainConfig.java +src/main/java/io/tiledb/cloud/rest_api/model/SSODomainConfigResponse.java +src/main/java/io/tiledb/cloud/rest_api/model/SSODomainSetup.java +src/main/java/io/tiledb/cloud/rest_api/model/SSOProvider.java +src/main/java/io/tiledb/cloud/rest_api/model/SharePaymentRequest.java +src/main/java/io/tiledb/cloud/rest_api/model/SingleFragmentInfo.java +src/main/java/io/tiledb/cloud/rest_api/model/StorageLocation.java +src/main/java/io/tiledb/cloud/rest_api/model/Subarray.java +src/main/java/io/tiledb/cloud/rest_api/model/SubarrayPartitioner.java +src/main/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerCurrent.java +src/main/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerState.java +src/main/java/io/tiledb/cloud/rest_api/model/SubarrayRanges.java +src/main/java/io/tiledb/cloud/rest_api/model/Subscription.java +src/main/java/io/tiledb/cloud/rest_api/model/TGArrayNodeData.java +src/main/java/io/tiledb/cloud/rest_api/model/TGInputNodeData.java +src/main/java/io/tiledb/cloud/rest_api/model/TGQueryRanges.java +src/main/java/io/tiledb/cloud/rest_api/model/TGSQLNodeData.java +src/main/java/io/tiledb/cloud/rest_api/model/TGUDFArgument.java +src/main/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironment.java +src/main/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironmentResources.java +src/main/java/io/tiledb/cloud/rest_api/model/TGUDFNodeData.java +src/main/java/io/tiledb/cloud/rest_api/model/TGUDFStorage.java +src/main/java/io/tiledb/cloud/rest_api/model/TaskGraph.java +src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphActions.java +src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphClientNodeStatus.java +src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLog.java +src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLogRunLocation.java +src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLogStatus.java +src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLogsData.java +src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphNode.java +src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphNodeMetadata.java +src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphSharing.java +src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphType.java +src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphs.java +src/main/java/io/tiledb/cloud/rest_api/model/TileDBConfig.java +src/main/java/io/tiledb/cloud/rest_api/model/TileDBConfigEntriesInner.java +src/main/java/io/tiledb/cloud/rest_api/model/Token.java +src/main/java/io/tiledb/cloud/rest_api/model/TokenRequest.java +src/main/java/io/tiledb/cloud/rest_api/model/TokenScope.java +src/main/java/io/tiledb/cloud/rest_api/model/UDFActions.java +src/main/java/io/tiledb/cloud/rest_api/model/UDFArrayDetails.java +src/main/java/io/tiledb/cloud/rest_api/model/UDFCopied.java +src/main/java/io/tiledb/cloud/rest_api/model/UDFCopy.java +src/main/java/io/tiledb/cloud/rest_api/model/UDFFavorite.java +src/main/java/io/tiledb/cloud/rest_api/model/UDFFavoritesData.java +src/main/java/io/tiledb/cloud/rest_api/model/UDFImage.java +src/main/java/io/tiledb/cloud/rest_api/model/UDFImageVersion.java +src/main/java/io/tiledb/cloud/rest_api/model/UDFInfo.java +src/main/java/io/tiledb/cloud/rest_api/model/UDFInfoUpdate.java +src/main/java/io/tiledb/cloud/rest_api/model/UDFLanguage.java +src/main/java/io/tiledb/cloud/rest_api/model/UDFSharing.java +src/main/java/io/tiledb/cloud/rest_api/model/UDFSubarray.java +src/main/java/io/tiledb/cloud/rest_api/model/UDFSubarrayRange.java +src/main/java/io/tiledb/cloud/rest_api/model/UDFType.java +src/main/java/io/tiledb/cloud/rest_api/model/User.java +src/main/java/io/tiledb/cloud/rest_api/model/Writer.java diff --git a/build.gradle b/build.gradle index e287877..4480f5a 100644 --- a/build.gradle +++ b/build.gradle @@ -27,7 +27,7 @@ apply plugin: 'java' apply plugin: 'com.diffplug.spotless' group 'io.tiledb' -version = '0.4.3-SNAPSHOT' +version = '0.5.0-SNAPSHOT' repositories { mavenCentral() @@ -248,3 +248,9 @@ signing { sign publishing.publications.mavenJava sign configurations.archives } + +spotless { + java { + removeUnusedImports() + } +} \ No newline at end of file diff --git a/docs/ActivityEventType.md b/docs/ActivityEventType.md index c3a136d..d8562a3 100644 --- a/docs/ActivityEventType.md +++ b/docs/ActivityEventType.md @@ -35,5 +35,7 @@ * `READ_FRAGMENT_INFO` (value: `"read_fragment_info"`) +* `READ_ENUMERATIONS` (value: `"read_enumerations"`) + diff --git a/docs/ArrayApi.md b/docs/ArrayApi.md index 5e71ac2..d2ca067 100644 --- a/docs/ArrayApi.md +++ b/docs/ArrayApi.md @@ -31,6 +31,8 @@ All URIs are relative to */v1* | [**getArraysInNamespace**](ArrayApi.md#getArraysInNamespace) | **GET** /arrays/{namespace} | | | [**getFragmentEndTimestamp**](ArrayApi.md#getFragmentEndTimestamp) | **GET** /arrays/{namespace}/{array}/fragment_end_timestamp | | | [**getLastAccessedArrays**](ArrayApi.md#getLastAccessedArrays) | **GET** /arrays/last_accessed | | +| [**loadArraySchema**](ArrayApi.md#loadArraySchema) | **POST** /arrays/{namespace}/{array}/schema | | +| [**loadEnumerations**](ArrayApi.md#loadEnumerations) | **POST** /arrays/{namespace}/{array}/enumerations | | | [**registerArray**](ArrayApi.md#registerArray) | **POST** /arrays/{namespace}/{array}/register | | | [**shareArray**](ArrayApi.md#shareArray) | **PATCH** /arrays/{namespace}/{array}/share | | | [**updateArrayMetadata**](ArrayApi.md#updateArrayMetadata) | **PATCH** /arrays/{namespace}/{array}/metadata | | @@ -47,51 +49,50 @@ All URIs are relative to */v1* get array activity logs ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import ArrayApi; +import io.tiledb.cloud.rest_api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - Integer start = 56; // Integer | Start time of window of fetch logs, unix epoch in seconds (default: seven days ago) - Integer end = 56; // Integer | End time of window of fetch logs, unix epoch in seconds (default: current utc timestamp) - String eventTypes = "eventTypes_example"; // String | Refer to ActivityEventType for possible values - String taskId = "taskId_example"; // String | Array task ID To filter activity to - Boolean hasTaskId = true; // Boolean | Excludes activity log results that do not contain an array task UUID - try { - List result = apiInstance.arrayActivityLog(namespace, array, start, end, eventTypes, taskId, hasTaskId); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#arrayActivityLog"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String array = "array_example"; // String | name/uri of array that is url-encoded + Integer start = 56; // Integer | Start time of window of fetch logs, unix epoch in seconds (default: seven days ago) + Integer end = 56; // Integer | End time of window of fetch logs, unix epoch in seconds (default: current utc timestamp) + String eventTypes = "eventTypes_example"; // String | Refer to ActivityEventType for possible values + String taskId = "taskId_example"; // String | Array task ID To filter activity to + Boolean hasTaskId = true; // Boolean | Excludes activity log results that do not contain an array task UUID + try { + List result = apiInstance.arrayActivityLog(namespace, array, start, end, eventTypes, taskId, hasTaskId); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#arrayActivityLog"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -129,62 +130,62 @@ public class Example { # **arraysBrowserOwnedGet** -> ArrayBrowserData arraysBrowserOwnedGet(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty) +> ArrayBrowserData arraysBrowserOwnedGet(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, withMetadata) Fetch a list of all arrays that are owned directly by user or user's organizations ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import ArrayApi; +import io.tiledb.cloud.rest_api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - Integer page = 56; // Integer | pagination offset - Integer perPage = 56; // Integer | pagination limit - String search = "search_example"; // String | search string that will look at name, namespace or description fields - String namespace = "namespace_example"; // String | namespace - String orderby = "orderby_example"; // String | sort by which field valid values include last_accessed, size, name - String permissions = "permissions_example"; // String | permissions valid values include read, read_write, write, admin - List tag = Arrays.asList(); // List | tag to search for, more than one can be included - List excludeTag = Arrays.asList(); // List | tags to exclude matching array in results, more than one can be included - List fileType = Arrays.asList(); // List | file_type to search for, more than one can be included - List excludeFileType = Arrays.asList(); // List | file_type to exclude matching array in results, more than one can be included - List fileProperty = Arrays.asList(); // List | file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included - try { - ArrayBrowserData result = apiInstance.arraysBrowserOwnedGet(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#arraysBrowserOwnedGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + Integer page = 56; // Integer | pagination offset + Integer perPage = 56; // Integer | pagination limit + String search = "search_example"; // String | search string that will look at name, namespace or description fields + String namespace = "namespace_example"; // String | namespace + String orderby = "orderby_example"; // String | sort by which field valid values include size, name + String permissions = "permissions_example"; // String | permissions valid values include read, read_write, write, admin + List tag = Arrays.asList(); // List | tag to search for, more than one can be included + List excludeTag = Arrays.asList(); // List | tags to exclude matching array in results, more than one can be included + List fileType = Arrays.asList(); // List | file_type to search for, more than one can be included + List excludeFileType = Arrays.asList(); // List | file_type to exclude matching array in results, more than one can be included + List fileProperty = Arrays.asList(); // List | file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included + Boolean withMetadata = true; // Boolean | include the metadata of the array + try { + ArrayBrowserData result = apiInstance.arraysBrowserOwnedGet(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, withMetadata); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#arraysBrowserOwnedGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -196,13 +197,14 @@ public class Example { | **perPage** | **Integer**| pagination limit | [optional] | | **search** | **String**| search string that will look at name, namespace or description fields | [optional] | | **namespace** | **String**| namespace | [optional] | -| **orderby** | **String**| sort by which field valid values include last_accessed, size, name | [optional] | +| **orderby** | **String**| sort by which field valid values include size, name | [optional] | | **permissions** | **String**| permissions valid values include read, read_write, write, admin | [optional] | | **tag** | [**List<String>**](String.md)| tag to search for, more than one can be included | [optional] | | **excludeTag** | [**List<String>**](String.md)| tags to exclude matching array in results, more than one can be included | [optional] | | **fileType** | [**List<String>**](String.md)| file_type to search for, more than one can be included | [optional] | | **excludeFileType** | [**List<String>**](String.md)| file_type to exclude matching array in results, more than one can be included | [optional] | | **fileProperty** | [**List<String>**](String.md)| file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included | [optional] | +| **withMetadata** | **Boolean**| include the metadata of the array | [optional] | ### Return type @@ -233,47 +235,46 @@ public class Example { Fetch a sidebar for arrays that are owned directly by user or user's organizations ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import ArrayApi; +import io.tiledb.cloud.rest_api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - List fileType = Arrays.asList(); // List | file_type to search for, more than one can be included - List excludeFileType = Arrays.asList(); // List | file_type to exclude matching array in results, more than one can be included - List fileProperty = Arrays.asList(); // List | file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included - try { - ArrayBrowserSidebar result = apiInstance.arraysBrowserOwnedSidebarGet(fileType, excludeFileType, fileProperty); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#arraysBrowserOwnedSidebarGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + List fileType = Arrays.asList(); // List | file_type to search for, more than one can be included + List excludeFileType = Arrays.asList(); // List | file_type to exclude matching array in results, more than one can be included + List fileProperty = Arrays.asList(); // List | file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included + try { + ArrayBrowserSidebar result = apiInstance.arraysBrowserOwnedSidebarGet(fileType, excludeFileType, fileProperty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#arraysBrowserOwnedSidebarGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -307,62 +308,62 @@ public class Example { # **arraysBrowserPublicGet** -> ArrayBrowserData arraysBrowserPublicGet(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty) +> ArrayBrowserData arraysBrowserPublicGet(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, withMetadata) Fetch a list of all arrays that have been shared publically ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import ArrayApi; +import io.tiledb.cloud.rest_api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - Integer page = 56; // Integer | pagination offset - Integer perPage = 56; // Integer | pagination limit - String search = "search_example"; // String | search string that will look at name, namespace or description fields - String namespace = "namespace_example"; // String | namespace - String orderby = "orderby_example"; // String | sort by which field valid values include last_accessed, size, name - String permissions = "permissions_example"; // String | permissions valid values include read, read_write, write, admin - List tag = Arrays.asList(); // List | tag to search for, more than one can be included - List excludeTag = Arrays.asList(); // List | tags to exclude matching array in results, more than one can be included - List fileType = Arrays.asList(); // List | file_type to search for, more than one can be included - List excludeFileType = Arrays.asList(); // List | file_type to exclude matching array in results, more than one can be included - List fileProperty = Arrays.asList(); // List | file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included - try { - ArrayBrowserData result = apiInstance.arraysBrowserPublicGet(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#arraysBrowserPublicGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + Integer page = 56; // Integer | pagination offset + Integer perPage = 56; // Integer | pagination limit + String search = "search_example"; // String | search string that will look at name, namespace or description fields + String namespace = "namespace_example"; // String | namespace + String orderby = "orderby_example"; // String | sort by which field valid values include size, name + String permissions = "permissions_example"; // String | permissions valid values include read, read_write, write, admin + List tag = Arrays.asList(); // List | tag to search for, more than one can be included + List excludeTag = Arrays.asList(); // List | tags to exclude matching array in results, more than one can be included + List fileType = Arrays.asList(); // List | file_type to search for, more than one can be included + List excludeFileType = Arrays.asList(); // List | file_type to exclude matching array in results, more than one can be included + List fileProperty = Arrays.asList(); // List | file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included + Boolean withMetadata = true; // Boolean | include the metadata of the array + try { + ArrayBrowserData result = apiInstance.arraysBrowserPublicGet(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, withMetadata); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#arraysBrowserPublicGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -374,13 +375,14 @@ public class Example { | **perPage** | **Integer**| pagination limit | [optional] | | **search** | **String**| search string that will look at name, namespace or description fields | [optional] | | **namespace** | **String**| namespace | [optional] | -| **orderby** | **String**| sort by which field valid values include last_accessed, size, name | [optional] | +| **orderby** | **String**| sort by which field valid values include size, name | [optional] | | **permissions** | **String**| permissions valid values include read, read_write, write, admin | [optional] | | **tag** | [**List<String>**](String.md)| tag to search for, more than one can be included | [optional] | | **excludeTag** | [**List<String>**](String.md)| tags to exclude matching array in results, more than one can be included | [optional] | | **fileType** | [**List<String>**](String.md)| file_type to search for, more than one can be included | [optional] | | **excludeFileType** | [**List<String>**](String.md)| file_type to exclude matching array in results, more than one can be included | [optional] | | **fileProperty** | [**List<String>**](String.md)| file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included | [optional] | +| **withMetadata** | **Boolean**| include the metadata of the array | [optional] | ### Return type @@ -411,47 +413,46 @@ public class Example { Fetch a sidebar of all arrays that have been shared publically ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import ArrayApi; +import io.tiledb.cloud.rest_api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - List fileType = Arrays.asList(); // List | file_type to search for, more than one can be included - List excludeFileType = Arrays.asList(); // List | file_type to exclude matching array in results, more than one can be included - List fileProperty = Arrays.asList(); // List | file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included - try { - ArrayBrowserSidebar result = apiInstance.arraysBrowserPublicSidebarGet(fileType, excludeFileType, fileProperty); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#arraysBrowserPublicSidebarGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + List fileType = Arrays.asList(); // List | file_type to search for, more than one can be included + List excludeFileType = Arrays.asList(); // List | file_type to exclude matching array in results, more than one can be included + List fileProperty = Arrays.asList(); // List | file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included + try { + ArrayBrowserSidebar result = apiInstance.arraysBrowserPublicSidebarGet(fileType, excludeFileType, fileProperty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#arraysBrowserPublicSidebarGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -485,63 +486,63 @@ public class Example { # **arraysBrowserSharedGet** -> ArrayBrowserData arraysBrowserSharedGet(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, sharedTo) +> ArrayBrowserData arraysBrowserSharedGet(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, sharedTo, withMetadata) Fetch a list of all arrays that have been shared with the user ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import ArrayApi; +import io.tiledb.cloud.rest_api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - Integer page = 56; // Integer | pagination offset - Integer perPage = 56; // Integer | pagination limit - String search = "search_example"; // String | search string that will look at name, namespace or description fields - String namespace = "namespace_example"; // String | namespace - String orderby = "orderby_example"; // String | sort by which field valid values include last_accessed, size, name - String permissions = "permissions_example"; // String | permissions valid values include read, read_write, write, admin - List tag = Arrays.asList(); // List | tag to search for, more than one can be included - List excludeTag = Arrays.asList(); // List | tags to exclude matching array in results, more than one can be included - List fileType = Arrays.asList(); // List | file_type to search for, more than one can be included - List excludeFileType = Arrays.asList(); // List | file_type to exclude matching array in results, more than one can be included - List fileProperty = Arrays.asList(); // List | file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included - List sharedTo = Arrays.asList(); // List | namespaces to filter results of where there arrays were shared to - try { - ArrayBrowserData result = apiInstance.arraysBrowserSharedGet(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, sharedTo); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#arraysBrowserSharedGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + Integer page = 56; // Integer | pagination offset + Integer perPage = 56; // Integer | pagination limit + String search = "search_example"; // String | search string that will look at name, namespace or description fields + String namespace = "namespace_example"; // String | namespace + String orderby = "orderby_example"; // String | sort by which field valid values include size, name + String permissions = "permissions_example"; // String | permissions valid values include read, read_write, write, admin + List tag = Arrays.asList(); // List | tag to search for, more than one can be included + List excludeTag = Arrays.asList(); // List | tags to exclude matching array in results, more than one can be included + List fileType = Arrays.asList(); // List | file_type to search for, more than one can be included + List excludeFileType = Arrays.asList(); // List | file_type to exclude matching array in results, more than one can be included + List fileProperty = Arrays.asList(); // List | file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included + List sharedTo = Arrays.asList(); // List | namespaces to filter results of where there arrays were shared to + Boolean withMetadata = true; // Boolean | include the metadata of the array + try { + ArrayBrowserData result = apiInstance.arraysBrowserSharedGet(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, sharedTo, withMetadata); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#arraysBrowserSharedGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -553,7 +554,7 @@ public class Example { | **perPage** | **Integer**| pagination limit | [optional] | | **search** | **String**| search string that will look at name, namespace or description fields | [optional] | | **namespace** | **String**| namespace | [optional] | -| **orderby** | **String**| sort by which field valid values include last_accessed, size, name | [optional] | +| **orderby** | **String**| sort by which field valid values include size, name | [optional] | | **permissions** | **String**| permissions valid values include read, read_write, write, admin | [optional] | | **tag** | [**List<String>**](String.md)| tag to search for, more than one can be included | [optional] | | **excludeTag** | [**List<String>**](String.md)| tags to exclude matching array in results, more than one can be included | [optional] | @@ -561,6 +562,7 @@ public class Example { | **excludeFileType** | [**List<String>**](String.md)| file_type to exclude matching array in results, more than one can be included | [optional] | | **fileProperty** | [**List<String>**](String.md)| file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included | [optional] | | **sharedTo** | [**List<String>**](String.md)| namespaces to filter results of where there arrays were shared to | [optional] | +| **withMetadata** | **Boolean**| include the metadata of the array | [optional] | ### Return type @@ -591,48 +593,47 @@ public class Example { Fetch a list of all arrays that have been shared with the user ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import ArrayApi; +import io.tiledb.cloud.rest_api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - List fileType = Arrays.asList(); // List | file_type to search for, more than one can be included - List excludeFileType = Arrays.asList(); // List | file_type to exclude matching array in results, more than one can be included - List fileProperty = Arrays.asList(); // List | file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included - List sharedTo = Arrays.asList(); // List | namespaces to filter results of where there groups were shared to - try { - ArrayBrowserSidebar result = apiInstance.arraysBrowserSharedSidebarGet(fileType, excludeFileType, fileProperty, sharedTo); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#arraysBrowserSharedSidebarGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + List fileType = Arrays.asList(); // List | file_type to search for, more than one can be included + List excludeFileType = Arrays.asList(); // List | file_type to exclude matching array in results, more than one can be included + List fileProperty = Arrays.asList(); // List | file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included + List sharedTo = Arrays.asList(); // List | namespaces to filter results of where there groups were shared to + try { + ArrayBrowserSidebar result = apiInstance.arraysBrowserSharedSidebarGet(fileType, excludeFileType, fileProperty, sharedTo); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#arraysBrowserSharedSidebarGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -674,48 +675,47 @@ public class Example { retrieve a list of timestamps from the array fragment info listing in milliseconds, paginated ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import ArrayApi; +import io.tiledb.cloud.rest_api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - Integer page = 56; // Integer | pagination offset - Integer perPage = 56; // Integer | pagination limit - try { - ArrayEndTimestampData result = apiInstance.arraysNamespaceArrayEndTimestampsGet(namespace, array, page, perPage); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#arraysNamespaceArrayEndTimestampsGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String array = "array_example"; // String | name/uri of array that is url-encoded + Integer page = 56; // Integer | pagination offset + Integer perPage = 56; // Integer | pagination limit + try { + ArrayEndTimestampData result = apiInstance.arraysNamespaceArrayEndTimestampsGet(namespace, array, page, perPage); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#arraysNamespaceArrayEndTimestampsGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -757,46 +757,45 @@ public class Example { consolidate an array at a specified URI ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import ArrayApi; +import io.tiledb.cloud.rest_api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - ArrayConsolidationRequest consolidateRequest = new ArrayConsolidationRequest(); // ArrayConsolidationRequest | Consolidate Request - try { - apiInstance.consolidateArray(namespace, array, consolidateRequest); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#consolidateArray"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String array = "array_example"; // String | name/uri of array that is url-encoded + ArrayConsolidationRequest consolidateRequest = new ArrayConsolidationRequest(); // ArrayConsolidationRequest | Consolidate Request + try { + apiInstance.consolidateArray(namespace, array, consolidateRequest); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#consolidateArray"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -837,48 +836,47 @@ null (empty response body) create a array schema at a specified URI registered to a group/project ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import ArrayApi; +import io.tiledb.cloud.rest_api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - String contentType = "application/json"; // String | Content Type of input and return mime - ArraySchema arraySchema = new ArraySchema(); // ArraySchema | ArraySchema being created - String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME = "X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME_example"; // String | Optional registered access credentials to use for creation - try { - apiInstance.createArray(namespace, array, contentType, arraySchema, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#createArray"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String array = "array_example"; // String | name/uri of array that is url-encoded + String contentType = "application/json"; // String | Content Type of input and return mime + ArraySchema arraySchema = new ArraySchema(); // ArraySchema | ArraySchema being created + String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME = "X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME_example"; // String | Optional registered access credentials to use for creation + try { + apiInstance.createArray(namespace, array, contentType, arraySchema, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#createArray"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -921,46 +919,45 @@ null (empty response body) delete a array ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import ArrayApi; +import io.tiledb.cloud.rest_api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - String contentType = "application/json"; // String | Content Type of input and return mime - try { - apiInstance.deleteArray(namespace, array, contentType); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#deleteArray"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String array = "array_example"; // String | name/uri of array that is url-encoded + String contentType = "application/json"; // String | Content Type of input and return mime + try { + apiInstance.deleteArray(namespace, array, contentType); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#deleteArray"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1001,45 +998,44 @@ null (empty response body) deregister a array ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import ArrayApi; +import io.tiledb.cloud.rest_api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - try { - apiInstance.deregisterArray(namespace, array); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#deregisterArray"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String array = "array_example"; // String | name/uri of array that is url-encoded + try { + apiInstance.deregisterArray(namespace, array); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#deregisterArray"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1079,48 +1075,47 @@ null (empty response body) fetch an array's fragment info ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import ArrayApi; +import io.tiledb.cloud.rest_api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - String contentType = "application/json"; // String | Content Type of input and return mime - FragmentInfoRequest fragmentInfoRequest = new FragmentInfoRequest(); // FragmentInfoRequest | ArraySchema being created - try { - FragmentInfo result = apiInstance.fragmentInfo(namespace, array, contentType, fragmentInfoRequest); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#fragmentInfo"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String array = "array_example"; // String | name/uri of array that is url-encoded + String contentType = "application/json"; // String | Content Type of input and return mime + FragmentInfoRequest fragmentInfoRequest = new FragmentInfoRequest(); // FragmentInfoRequest | ArraySchema being created + try { + FragmentInfo result = apiInstance.fragmentInfo(namespace, array, contentType, fragmentInfoRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#fragmentInfo"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1161,47 +1156,46 @@ public class Example { get activity log by ID ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import ArrayApi; +import io.tiledb.cloud.rest_api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - String id = "id_example"; // String | ID of the activity - try { - ArrayActivityLog result = apiInstance.getActivityLogById(namespace, array, id); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#getActivityLogById"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String array = "array_example"; // String | name/uri of array that is url-encoded + String id = "id_example"; // String | ID of the activity + try { + ArrayActivityLog result = apiInstance.getActivityLogById(namespace, array, id); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#getActivityLogById"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1242,45 +1236,44 @@ public class Example { get all array metadata user has access to ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import ArrayApi; +import io.tiledb.cloud.rest_api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String publicShare = "publicShare_example"; // String | Public share values can be one of exclude, only - try { - List result = apiInstance.getAllArrayMetadata(publicShare); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#getAllArrayMetadata"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String publicShare = "publicShare_example"; // String | Public share values can be one of exclude, only + try { + List result = apiInstance.getAllArrayMetadata(publicShare); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#getAllArrayMetadata"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1319,47 +1312,46 @@ public class Example { get an ArraySchema using a url encoded uri ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import ArrayApi; +import io.tiledb.cloud.rest_api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - String contentType = "application/json"; // String | Content Type of input and return mime - try { - ArraySchema result = apiInstance.getArray(namespace, array, contentType); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#getArray"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String array = "array_example"; // String | name/uri of array that is url-encoded + String contentType = "application/json"; // String | Content Type of input and return mime + try { + ArraySchema result = apiInstance.getArray(namespace, array, contentType); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#getArray"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1400,49 +1392,48 @@ public class Example { get the max buffer sizes of an array for a subarray ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import ArrayApi; +import io.tiledb.cloud.rest_api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - String subarray = "subarray_example"; // String | CSV string of subarray to get max buffer sizes for - String contentType = "application/json"; // String | Content Type of input and return mime - String xPayer = "xPayer_example"; // String | Name of organization or user who should be charged for this request - try { - MaxBufferSizes result = apiInstance.getArrayMaxBufferSizes(namespace, array, subarray, contentType, xPayer); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#getArrayMaxBufferSizes"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String array = "array_example"; // String | name/uri of array that is url-encoded + String subarray = "subarray_example"; // String | CSV string of subarray to get max buffer sizes for + String contentType = "application/json"; // String | Content Type of input and return mime + String xPayer = "xPayer_example"; // String | Name of organization or user who should be charged for this request + try { + MaxBufferSizes result = apiInstance.getArrayMaxBufferSizes(namespace, array, subarray, contentType, xPayer); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#getArrayMaxBufferSizes"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1485,48 +1476,47 @@ public class Example { get metadata from the array in JSON format ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import ArrayApi; +import io.tiledb.cloud.rest_api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - Integer length = 56; // Integer | (optional) limit character length of returned values - Integer endTimestamp = 56; // Integer | Milliseconds since Unix epoch, metadata will use open_at functionality to open array at the specific timestamp - try { - Object result = apiInstance.getArrayMetaDataJson(namespace, array, length, endTimestamp); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#getArrayMetaDataJson"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String array = "array_example"; // String | name/uri of array that is url-encoded + Integer length = 56; // Integer | (optional) limit character length of returned values + Integer endTimestamp = 56; // Integer | Milliseconds since Unix epoch, metadata will use open_at functionality to open array at the specific timestamp + try { + Object result = apiInstance.getArrayMetaDataJson(namespace, array, length, endTimestamp); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#getArrayMetaDataJson"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1568,46 +1558,45 @@ public class Example { get metadata on an array ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import ArrayApi; +import io.tiledb.cloud.rest_api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - try { - ArrayInfo result = apiInstance.getArrayMetadata(namespace, array); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#getArrayMetadata"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String array = "array_example"; // String | name/uri of array that is url-encoded + try { + ArrayInfo result = apiInstance.getArrayMetadata(namespace, array); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#getArrayMetadata"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1647,46 +1636,45 @@ public class Example { get metadata on an array ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import ArrayApi; +import io.tiledb.cloud.rest_api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - try { - ArrayMetadata result = apiInstance.getArrayMetadataCapnp(namespace, array); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#getArrayMetadataCapnp"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String array = "array_example"; // String | name/uri of array that is url-encoded + try { + ArrayMetadata result = apiInstance.getArrayMetadataCapnp(namespace, array); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#getArrayMetadataCapnp"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1726,48 +1714,47 @@ public class Example { get the non empty domain of an array ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import ArrayApi; +import io.tiledb.cloud.rest_api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - String contentType = "application/json"; // String | Content Type of input and return mime - String xPayer = "xPayer_example"; // String | Name of organization or user who should be charged for this request - try { - NonEmptyDomain result = apiInstance.getArrayNonEmptyDomain(namespace, array, contentType, xPayer); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#getArrayNonEmptyDomain"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String array = "array_example"; // String | name/uri of array that is url-encoded + String contentType = "application/json"; // String | Content Type of input and return mime + String xPayer = "xPayer_example"; // String | Name of organization or user who should be charged for this request + try { + NonEmptyDomain result = apiInstance.getArrayNonEmptyDomain(namespace, array, contentType, xPayer); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#getArrayNonEmptyDomain"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1809,46 +1796,45 @@ public class Example { get non-empty domain from the array in json format ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import ArrayApi; +import io.tiledb.cloud.rest_api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - try { - Object result = apiInstance.getArrayNonEmptyDomainJson(namespace, array); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#getArrayNonEmptyDomainJson"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String array = "array_example"; // String | name/uri of array that is url-encoded + try { + Object result = apiInstance.getArrayNonEmptyDomainJson(namespace, array); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#getArrayNonEmptyDomainJson"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1888,47 +1874,46 @@ public class Example { get an sample set of data from the array ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import ArrayApi; +import io.tiledb.cloud.rest_api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - BigDecimal samples = new BigDecimal("5.0"); // BigDecimal | Number of sample results to return - try { - ArraySample result = apiInstance.getArraySampleData(namespace, array, samples); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#getArraySampleData"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String array = "array_example"; // String | name/uri of array that is url-encoded + BigDecimal samples = new BigDecimal("5.0"); // BigDecimal | Number of sample results to return + try { + ArraySample result = apiInstance.getArraySampleData(namespace, array, samples); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#getArraySampleData"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1969,46 +1954,45 @@ public class Example { Get all sharing details of the array ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import ArrayApi; +import io.tiledb.cloud.rest_api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - try { - List result = apiInstance.getArraySharingPolicies(namespace, array); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#getArraySharingPolicies"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String array = "array_example"; // String | name/uri of array that is url-encoded + try { + List result = apiInstance.getArraySharingPolicies(namespace, array); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#getArraySharingPolicies"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -2042,52 +2026,52 @@ public class Example { # **getArraysInNamespace** -> List<ArrayInfo> getArraysInNamespace(namespace) +> List<ArrayInfo> getArraysInNamespace(namespace, withMetadata) get metadata on all arrays in a namespace ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import ArrayApi; +import io.tiledb.cloud.rest_api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - try { - List result = apiInstance.getArraysInNamespace(namespace); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#getArraysInNamespace"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + Boolean withMetadata = true; // Boolean | include the metadata of the arrays + try { + List result = apiInstance.getArraysInNamespace(namespace, withMetadata); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#getArraysInNamespace"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -2096,6 +2080,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **withMetadata** | **Boolean**| include the metadata of the arrays | [optional] | ### Return type @@ -2126,47 +2111,46 @@ public class Example { Get fragment end_timestamp on an array, will search for the closest end_timestamp to the timestamp asked ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import ArrayApi; +import io.tiledb.cloud.rest_api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - Integer endTimestamp = 56; // Integer | Milliseconds since Unix epoch - try { - Integer result = apiInstance.getFragmentEndTimestamp(namespace, array, endTimestamp); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#getFragmentEndTimestamp"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String array = "array_example"; // String | name/uri of array that is url-encoded + Integer endTimestamp = 56; // Integer | Milliseconds since Unix epoch + try { + Integer result = apiInstance.getFragmentEndTimestamp(namespace, array, endTimestamp); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#getFragmentEndTimestamp"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -2205,44 +2189,43 @@ public class Example { ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import ArrayApi; +import io.tiledb.cloud.rest_api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - try { - List result = apiInstance.getLastAccessedArrays(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#getLastAccessedArrays"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + try { + List result = apiInstance.getLastAccessedArrays(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#getLastAccessedArrays"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -2269,6 +2252,168 @@ This endpoint does not need any parameter. | **502** | Bad Gateway | - | | **0** | error response | - | + +# **loadArraySchema** +> LoadArraySchemaResponse loadArraySchema(namespace, array, loadArraySchemaRequest) + + + +request to get the array schema + +### Example +```java +// Import classes: +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; +import io.tiledb.cloud.rest_api.ArrayApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String array = "array_example"; // String | name/uri of array that is url-encoded + LoadArraySchemaRequest loadArraySchemaRequest = new LoadArraySchemaRequest(); // LoadArraySchemaRequest | Load Array Schema Request + try { + LoadArraySchemaResponse result = apiInstance.loadArraySchema(namespace, array, loadArraySchemaRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#loadArraySchema"); + 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 | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **array** | **String**| name/uri of array that is url-encoded | | +| **loadArraySchemaRequest** | [**LoadArraySchemaRequest**](LoadArraySchemaRequest.md)| Load Array Schema Request | | + +### Return type + +[**LoadArraySchemaResponse**](LoadArraySchemaResponse.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | array schemas returned successfully | - | +| **404** | Array does not exist or user does not have permissions to access it | - | +| **502** | Bad Gateway | - | +| **0** | error response | - | + + +# **loadEnumerations** +> LoadEnumerationsResponse loadEnumerations(namespace, array, loadEnumerationsRequest) + + + +request to get the enumerations of the arrays' attributes + +### Example +```java +// Import classes: +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; +import io.tiledb.cloud.rest_api.ArrayApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String array = "array_example"; // String | name/uri of array that is url-encoded + LoadEnumerationsRequest loadEnumerationsRequest = new LoadEnumerationsRequest(); // LoadEnumerationsRequest | Load Enumerations Request + try { + LoadEnumerationsResponse result = apiInstance.loadEnumerations(namespace, array, loadEnumerationsRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#loadEnumerations"); + 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 | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **array** | **String**| name/uri of array that is url-encoded | | +| **loadEnumerationsRequest** | [**LoadEnumerationsRequest**](LoadEnumerationsRequest.md)| Load Enumerations Request | | + +### Return type + +[**LoadEnumerationsResponse**](LoadEnumerationsResponse.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | enumerations returned successfully | - | +| **404** | Array does not exist or user does not have permissions to access it | - | +| **502** | Bad Gateway | - | +| **0** | error response | - | + # **registerArray** > ArrayInfo registerArray(namespace, array, arrayMetadata) @@ -2278,47 +2423,46 @@ This endpoint does not need any parameter. register an array at a specified URI registered to the given namespace ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import ArrayApi; +import io.tiledb.cloud.rest_api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - ArrayInfoUpdate arrayMetadata = new ArrayInfoUpdate(); // ArrayInfoUpdate | metadata associated with array - try { - ArrayInfo result = apiInstance.registerArray(namespace, array, arrayMetadata); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#registerArray"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String array = "array_example"; // String | name/uri of array that is url-encoded + ArrayInfoUpdate arrayMetadata = new ArrayInfoUpdate(); // ArrayInfoUpdate | metadata associated with array + try { + ArrayInfo result = apiInstance.registerArray(namespace, array, arrayMetadata); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#registerArray"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -2359,46 +2503,45 @@ public class Example { Share an array with a user ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import ArrayApi; +import io.tiledb.cloud.rest_api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - ArraySharing arraySharing = new ArraySharing(); // ArraySharing | Namespace and list of permissions to share with. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the array will not be shared with the namespace at all. - try { - apiInstance.shareArray(namespace, array, arraySharing); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#shareArray"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String array = "array_example"; // String | name/uri of array that is url-encoded + ArraySharing arraySharing = new ArraySharing(); // ArraySharing | Namespace and list of permissions to share with. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the array will not be shared with the namespace at all. + try { + apiInstance.shareArray(namespace, array, arraySharing); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#shareArray"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -2440,46 +2583,45 @@ null (empty response body) update metadata on an array ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import ArrayApi; +import io.tiledb.cloud.rest_api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - ArrayInfoUpdate arrayMetadata = new ArrayInfoUpdate(); // ArrayInfoUpdate | array metadata to update - try { - apiInstance.updateArrayMetadata(namespace, array, arrayMetadata); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#updateArrayMetadata"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String array = "array_example"; // String | name/uri of array that is url-encoded + ArrayInfoUpdate arrayMetadata = new ArrayInfoUpdate(); // ArrayInfoUpdate | array metadata to update + try { + apiInstance.updateArrayMetadata(namespace, array, arrayMetadata); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#updateArrayMetadata"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -2520,46 +2662,45 @@ null (empty response body) update metadata on an array ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import ArrayApi; +import io.tiledb.cloud.rest_api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - ArrayMetadata arrayMetadataEntries = new ArrayMetadata(); // ArrayMetadata | List of metadata entries - try { - apiInstance.updateArrayMetadataCapnp(namespace, array, arrayMetadataEntries); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#updateArrayMetadataCapnp"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String array = "array_example"; // String | name/uri of array that is url-encoded + ArrayMetadata arrayMetadataEntries = new ArrayMetadata(); // ArrayMetadata | List of metadata entries + try { + apiInstance.updateArrayMetadataCapnp(namespace, array, arrayMetadataEntries); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#updateArrayMetadataCapnp"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -2600,46 +2741,45 @@ null (empty response body) vacuum an array at a specified URI ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import ArrayApi; +import io.tiledb.cloud.rest_api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - ArrayVacuumRequest vaccumRequest = new ArrayVacuumRequest(); // ArrayVacuumRequest | Vaccum Request - try { - apiInstance.vacuumArray(namespace, array, vaccumRequest); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#vacuumArray"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String array = "array_example"; // String | name/uri of array that is url-encoded + ArrayVacuumRequest vaccumRequest = new ArrayVacuumRequest(); // ArrayVacuumRequest | Vaccum Request + try { + apiInstance.vacuumArray(namespace, array, vaccumRequest); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#vacuumArray"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` diff --git a/docs/ArrayConsolidationRequest.md b/docs/ArrayConsolidationRequest.md index 2bff2fb..b8decba 100644 --- a/docs/ArrayConsolidationRequest.md +++ b/docs/ArrayConsolidationRequest.md @@ -9,6 +9,7 @@ Request to consolidate an array | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**config** | [**TileDBConfig**](TileDBConfig.md) | | [optional] | +|**fragments** | **List<String>** | list of fragments in the array to consolidate | [optional] | diff --git a/docs/ArrayInfo.md b/docs/ArrayInfo.md index a0ccf8d..9fae9b7 100644 --- a/docs/ArrayInfo.md +++ b/docs/ArrayInfo.md @@ -32,6 +32,9 @@ metadata of an array |**licenseText** | **String** | License text | [optional] | |**readOnly** | **Boolean** | Suggests if the array is in read_only mode | [optional] | |**isFavorite** | **Boolean** | Indicates whether the array is in user favorites | [optional] | +|**createdAt** | **OffsetDateTime** | Datetime array was registered with tiledb | [optional] | +|**createdBy** | **String** | The user who created the array, if known. | [optional] | +|**metadata** | [**List<MetadataStringifiedEntry>**](MetadataStringifiedEntry.md) | Contains the metadata of the array. **Note:** This property is included in the response only if the `with_metadata` query parameter is set to `true`. | [optional] | diff --git a/docs/ArrayTask.md b/docs/ArrayTask.md index 05700c4..3aca31c 100644 --- a/docs/ArrayTask.md +++ b/docs/ArrayTask.md @@ -37,6 +37,8 @@ Synchronous Task to Run |**resultFormat** | **ResultFormat** | | [optional] | |**taskGraphUuid** | **String** | If set, the ID of the log for the task graph that this was part of. | [optional] | |**clientNodeUuid** | **String** | If set, the client-defined ID of the node within this task's graph. | [optional] | +|**cloudProvider** | **String** | The name of the cloud provider where this task executed. | [optional] | +|**cloudRegion** | **String** | The region of the cloud provider where this task executed. | [optional] | diff --git a/docs/ArrayTasksApi.md b/docs/ArrayTasksApi.md index d9699f9..c9f76d4 100644 --- a/docs/ArrayTasksApi.md +++ b/docs/ArrayTasksApi.md @@ -14,46 +14,45 @@ All URIs are relative to */v1* ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import ArrayTasksApi; +import io.tiledb.cloud.rest_api.ArrayTasksApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayTasksApi apiInstance = new ArrayTasksApi(defaultClient); - Integer start = 56; // Integer | Fetch tasks created after this time, unix epoch in seconds, default 7 days ago - Integer end = 56; // Integer | Fetch tasks created before this time, unix epoch in seconds, default now - try { - ArrayTaskBrowserSidebar result = apiInstance.getArrayTasksSidebar(start, end); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayTasksApi#getArrayTasksSidebar"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + ArrayTasksApi apiInstance = new ArrayTasksApi(defaultClient); + Integer start = 56; // Integer | Fetch tasks created after this time, unix epoch in seconds, default 7 days ago + Integer end = 56; // Integer | Fetch tasks created before this time, unix epoch in seconds, default now + try { + ArrayTaskBrowserSidebar result = apiInstance.getArrayTasksSidebar(start, end); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayTasksApi#getArrayTasksSidebar"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` diff --git a/docs/AssetBackingType.md b/docs/AssetBackingType.md new file mode 100644 index 0000000..4b6ee3f --- /dev/null +++ b/docs/AssetBackingType.md @@ -0,0 +1,13 @@ + + +# AssetBackingType + +## Enum + + +* `ARRAY` (value: `"array"`) + +* `GROUP` (value: `"group"`) + + + diff --git a/docs/AssetInfo.md b/docs/AssetInfo.md new file mode 100644 index 0000000..d2522cc --- /dev/null +++ b/docs/AssetInfo.md @@ -0,0 +1,23 @@ + + +# AssetInfo + +metadata of an asset + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**uuid** | **String** | unique ID of a registered asset | [optional] | +|**assetType** | **AssetType** | | [optional] | +|**assetBackingType** | **AssetBackingType** | | [optional] | +|**assetOwnershipLevel** | **AssetOwnershipLevel** | | [optional] | +|**namespaceName** | **String** | namespace_name that the asset is registered to | [optional] | +|**namespaceUuid** | **String** | namespace_uuid that the asset is registered to | [optional] | +|**name** | **String** | name of asset | [optional] | +|**mimeType** | **String** | mime type of the asset | [optional] | +|**createdAt** | **OffsetDateTime** | Time when the asset was created (rfc3339) | [optional] [readonly] | +|**metadata** | [**MetadataStringified**](MetadataStringified.md) | | [optional] | + + + diff --git a/docs/AssetListResponse.md b/docs/AssetListResponse.md new file mode 100644 index 0000000..3c38bcb --- /dev/null +++ b/docs/AssetListResponse.md @@ -0,0 +1,15 @@ + + +# AssetListResponse + +Asset associated with a TileDB Cloud account + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<AssetInfo>**](AssetInfo.md) | asset information for each asset | [optional] | +|**paginationMetadata** | [**PaginationMetadata**](PaginationMetadata.md) | | [optional] | + + + diff --git a/docs/AssetOwnershipLevel.md b/docs/AssetOwnershipLevel.md new file mode 100644 index 0000000..424f9cb --- /dev/null +++ b/docs/AssetOwnershipLevel.md @@ -0,0 +1,13 @@ + + +# AssetOwnershipLevel + +## Enum + + +* `OWNED` (value: `"owned"`) + +* `SHARED` (value: `"shared"`) + + + diff --git a/docs/AssetsApi.md b/docs/AssetsApi.md new file mode 100644 index 0000000..383199f --- /dev/null +++ b/docs/AssetsApi.md @@ -0,0 +1,266 @@ +# AssetsApi + +All URIs are relative to */v1* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**changeAssetCredentials**](AssetsApi.md#changeAssetCredentials) | **POST** /assets/{namespace}/change_credentials | | +| [**listAssets**](AssetsApi.md#listAssets) | **GET** /assets/{namespace} | | +| [**listPublicAssets**](AssetsApi.md#listPublicAssets) | **GET** /public_assets | | + + + +# **changeAssetCredentials** +> changeAssetCredentials(namespace, changeCredentialsRequest) + + + +Changes the access credentials to the given assets + +### Example +```java +// Import classes: +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; +import io.tiledb.cloud.rest_api.AssetsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + AssetsApi apiInstance = new AssetsApi(defaultClient); + String namespace = "namespace_example"; // String | The namespace to send the request on behalf of. + ChangeAssetCredentialsRequest changeCredentialsRequest = new ChangeAssetCredentialsRequest(); // ChangeAssetCredentialsRequest | aws access credentials to store for a namespace + try { + apiInstance.changeAssetCredentials(namespace, changeCredentialsRequest); + } catch (ApiException e) { + System.err.println("Exception when calling AssetsApi#changeAssetCredentials"); + 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 | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| The namespace to send the request on behalf of. | | +| **changeCredentialsRequest** | [**ChangeAssetCredentialsRequest**](ChangeAssetCredentialsRequest.md)| aws access credentials to store for a namespace | | + +### Return type + +null (empty response body) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | Credentials changed successfully | - | +| **502** | Bad Gateway | - | +| **0** | error response | - | + + +# **listAssets** +> AssetListResponse listAssets(namespace, assetType, ownershipLevel, depth, search, page, perPage, orderBy, expand) + + + +List assets in a namespace + +### Example +```java +// Import classes: +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; +import io.tiledb.cloud.rest_api.AssetsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + AssetsApi apiInstance = new AssetsApi(defaultClient); + String namespace = "namespace_example"; // String | namespace + String assetType = "assetType_example"; // String | asset_type to filter to + String ownershipLevel = "ownershipLevel_example"; // String | ownership_level to filter to (owned, shared) + String depth = "depth_example"; // String | depth of assets to be returned + String search = "search_example"; // String | search string + Integer page = 56; // Integer | pagination offset + Integer perPage = 56; // Integer | pagination limit + String orderBy = "orderBy_example"; // String | order by a specific property, defaults to `created_at desc` supported values are created_at, name, asset_type can also include the order type (asc or desc) separated by space i.e. `name asc` `name desc` etc. + String expand = "expand_example"; // String | expansion option for the AssetInfo object to be added to the response + try { + AssetListResponse result = apiInstance.listAssets(namespace, assetType, ownershipLevel, depth, search, page, perPage, orderBy, expand); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AssetsApi#listAssets"); + 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 | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| namespace | | +| **assetType** | **String**| asset_type to filter to | [optional] | +| **ownershipLevel** | **String**| ownership_level to filter to (owned, shared) | [optional] | +| **depth** | **String**| depth of assets to be returned | [optional] | +| **search** | **String**| search string | [optional] | +| **page** | **Integer**| pagination offset | [optional] | +| **perPage** | **Integer**| pagination limit | [optional] | +| **orderBy** | **String**| order by a specific property, defaults to `created_at desc` supported values are created_at, name, asset_type can also include the order type (asc or desc) separated by space i.e. `name asc` `name desc` etc. | [optional] | +| **expand** | **String**| expansion option for the AssetInfo object to be added to the response | [optional] | + +### Return type + +[**AssetListResponse**](AssetListResponse.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful list of assets | - | +| **502** | Bad Gateway | - | +| **0** | error response | - | + + +# **listPublicAssets** +> AssetListResponse listPublicAssets(assetType, depth, search, page, perPage, orderBy) + + + +List public assets + +### Example +```java +// Import classes: +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; +import io.tiledb.cloud.rest_api.AssetsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + AssetsApi apiInstance = new AssetsApi(defaultClient); + String assetType = "assetType_example"; // String | asset_type to filter to + String depth = "depth_example"; // String | depth of assets to be returned + String search = "search_example"; // String | search string + Integer page = 56; // Integer | pagination offset + Integer perPage = 56; // Integer | pagination limit + String orderBy = "orderBy_example"; // String | order by a specific property, defaults to `created_at desc` supported values are created_at, name, asset_type can also include the order type (asc or desc) separated by space i.e. `name asc` `name desc` etc. + try { + AssetListResponse result = apiInstance.listPublicAssets(assetType, depth, search, page, perPage, orderBy); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AssetsApi#listPublicAssets"); + 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 | +|------------- | ------------- | ------------- | -------------| +| **assetType** | **String**| asset_type to filter to | [optional] | +| **depth** | **String**| depth of assets to be returned | [optional] | +| **search** | **String**| search string | [optional] | +| **page** | **Integer**| pagination offset | [optional] | +| **perPage** | **Integer**| pagination limit | [optional] | +| **orderBy** | **String**| order by a specific property, defaults to `created_at desc` supported values are created_at, name, asset_type can also include the order type (asc or desc) separated by space i.e. `name asc` `name desc` etc. | [optional] | + +### Return type + +[**AssetListResponse**](AssetListResponse.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful list of assets | - | +| **502** | Bad Gateway | - | +| **0** | error response | - | + diff --git a/docs/ChangeAssetCredentialsRequest.md b/docs/ChangeAssetCredentialsRequest.md new file mode 100644 index 0000000..a277a74 --- /dev/null +++ b/docs/ChangeAssetCredentialsRequest.md @@ -0,0 +1,15 @@ + + +# ChangeAssetCredentialsRequest + +Request body to change the credentials of the given assets + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**accessCredentials** | **String** | The name or uuid of the access credentials | | +|**assetUuids** | **List<String>** | The list of asset uuids to have their credentials changed | | + + + diff --git a/docs/Datatype.md b/docs/Datatype.md index 08ad162..c1142dc 100644 --- a/docs/Datatype.md +++ b/docs/Datatype.md @@ -41,5 +41,53 @@ * `ANY` (value: `"ANY"`) +* `DATETIME_YEAR` (value: `"DATETIME_YEAR"`) + +* `DATETIME_MONTH` (value: `"DATETIME_MONTH"`) + +* `DATETIME_WEEK` (value: `"DATETIME_WEEK"`) + +* `DATETIME_DAY` (value: `"DATETIME_DAY"`) + +* `DATETIME_HR` (value: `"DATETIME_HR"`) + +* `DATETIME_MIN` (value: `"DATETIME_MIN"`) + +* `DATETIME_SEC` (value: `"DATETIME_SEC"`) + +* `DATETIME_MS` (value: `"DATETIME_MS"`) + +* `DATETIME_US` (value: `"DATETIME_US"`) + +* `DATETIME_NS` (value: `"DATETIME_NS"`) + +* `DATETIME_PS` (value: `"DATETIME_PS"`) + +* `DATETIME_FS` (value: `"DATETIME_FS"`) + +* `DATETIME_AS` (value: `"DATETIME_AS"`) + +* `TIME_HR` (value: `"TIME_HR"`) + +* `TIME_MIN` (value: `"TIME_MIN"`) + +* `TIME_SEC` (value: `"TIME_SEC"`) + +* `TIME_MS` (value: `"TIME_MS"`) + +* `TIME_US` (value: `"TIME_US"`) + +* `TIME_NS` (value: `"TIME_NS"`) + +* `TIME_PS` (value: `"TIME_PS"`) + +* `TIME_FS` (value: `"TIME_FS"`) + +* `TIME_AS` (value: `"TIME_AS"`) + +* `BLOB` (value: `"BLOB"`) + +* `BOOL` (value: `"BOOL"`) + diff --git a/docs/Enumeration.md b/docs/Enumeration.md new file mode 100644 index 0000000..4ee14c8 --- /dev/null +++ b/docs/Enumeration.md @@ -0,0 +1,20 @@ + + +# Enumeration + +The enumerations of a single attribute + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | | [optional] | +|**pathName** | **String** | | [optional] | +|**type** | **String** | | [optional] | +|**cellValNum** | **Integer** | | [optional] | +|**ordered** | **Boolean** | | [optional] | +|**data** | **List<Integer>** | | [optional] | +|**offsets** | **List<Integer>** | | [optional] | + + + diff --git a/docs/FavoritesApi.md b/docs/FavoritesApi.md index 0bdad14..2168670 100644 --- a/docs/FavoritesApi.md +++ b/docs/FavoritesApi.md @@ -35,45 +35,44 @@ All URIs are relative to */v1* Add a new array favorite ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import FavoritesApi; +import io.tiledb.cloud.rest_api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace of the array - String name = "name_example"; // String | The name of the array - try { - apiInstance.addArrayFavorite(namespace, name); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#addArrayFavorite"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + String namespace = "namespace_example"; // String | The namespace of the array + String name = "name_example"; // String | The name of the array + try { + apiInstance.addArrayFavorite(namespace, name); + } catch (ApiException e) { + System.err.println("Exception when calling FavoritesApi#addArrayFavorite"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -113,45 +112,44 @@ null (empty response body) Add a new ML model favorite ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import FavoritesApi; +import io.tiledb.cloud.rest_api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace of the ML model - String name = "name_example"; // String | The name of the ML model - try { - apiInstance.addMLModelFavorite(namespace, name); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#addMLModelFavorite"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + String namespace = "namespace_example"; // String | The namespace of the ML model + String name = "name_example"; // String | The name of the ML model + try { + apiInstance.addMLModelFavorite(namespace, name); + } catch (ApiException e) { + System.err.println("Exception when calling FavoritesApi#addMLModelFavorite"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -191,45 +189,44 @@ null (empty response body) Add a new notebook favorite ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import FavoritesApi; +import io.tiledb.cloud.rest_api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace of the notebook - String name = "name_example"; // String | The name of the notebook - try { - apiInstance.addNotebookFavorite(namespace, name); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#addNotebookFavorite"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + String namespace = "namespace_example"; // String | The namespace of the notebook + String name = "name_example"; // String | The name of the notebook + try { + apiInstance.addNotebookFavorite(namespace, name); + } catch (ApiException e) { + System.err.println("Exception when calling FavoritesApi#addNotebookFavorite"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -269,45 +266,44 @@ null (empty response body) Add a new UDF favorite ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import FavoritesApi; +import io.tiledb.cloud.rest_api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace of the UDF - String name = "name_example"; // String | The name of the UDF - try { - apiInstance.addUDFFavorite(namespace, name); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#addUDFFavorite"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + String namespace = "namespace_example"; // String | The namespace of the UDF + String name = "name_example"; // String | The name of the UDF + try { + apiInstance.addUDFFavorite(namespace, name); + } catch (ApiException e) { + System.err.println("Exception when calling FavoritesApi#addUDFFavorite"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -347,45 +343,44 @@ null (empty response body) Delete specific array favorite ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import FavoritesApi; +import io.tiledb.cloud.rest_api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace of the array - String name = "name_example"; // String | The name of the array - try { - apiInstance.deleteArrayFavorite(namespace, name); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#deleteArrayFavorite"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + String namespace = "namespace_example"; // String | The namespace of the array + String name = "name_example"; // String | The name of the array + try { + apiInstance.deleteArrayFavorite(namespace, name); + } catch (ApiException e) { + System.err.println("Exception when calling FavoritesApi#deleteArrayFavorite"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -425,45 +420,44 @@ null (empty response body) Delete specific ML model favorite ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import FavoritesApi; +import io.tiledb.cloud.rest_api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace of the ML model - String name = "name_example"; // String | The name of the ML model - try { - apiInstance.deleteMLModelFavorite(namespace, name); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#deleteMLModelFavorite"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + String namespace = "namespace_example"; // String | The namespace of the ML model + String name = "name_example"; // String | The name of the ML model + try { + apiInstance.deleteMLModelFavorite(namespace, name); + } catch (ApiException e) { + System.err.println("Exception when calling FavoritesApi#deleteMLModelFavorite"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -503,45 +497,44 @@ null (empty response body) Delete specific notebook favorite ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import FavoritesApi; +import io.tiledb.cloud.rest_api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace of the notebook - String name = "name_example"; // String | The name of the notebook - try { - apiInstance.deleteNotebookFavorite(namespace, name); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#deleteNotebookFavorite"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + String namespace = "namespace_example"; // String | The namespace of the notebook + String name = "name_example"; // String | The name of the notebook + try { + apiInstance.deleteNotebookFavorite(namespace, name); + } catch (ApiException e) { + System.err.println("Exception when calling FavoritesApi#deleteNotebookFavorite"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -581,45 +574,44 @@ null (empty response body) Delete specific UDF favorite ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import FavoritesApi; +import io.tiledb.cloud.rest_api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace of the UDF - String name = "name_example"; // String | The name of the UDF - try { - apiInstance.deleteUDFFavorite(namespace, name); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#deleteUDFFavorite"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + String namespace = "namespace_example"; // String | The namespace of the UDF + String name = "name_example"; // String | The name of the UDF + try { + apiInstance.deleteUDFFavorite(namespace, name); + } catch (ApiException e) { + System.err.println("Exception when calling FavoritesApi#deleteUDFFavorite"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -659,46 +651,45 @@ null (empty response body) Fetch array favorite of a specific array ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import FavoritesApi; +import io.tiledb.cloud.rest_api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace of the array - String name = "name_example"; // String | The name of the array - try { - ArrayFavorite result = apiInstance.getArrayFavorite(namespace, name); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#getArrayFavorite"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + String namespace = "namespace_example"; // String | The namespace of the array + String name = "name_example"; // String | The name of the array + try { + ArrayFavorite result = apiInstance.getArrayFavorite(namespace, name); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FavoritesApi#getArrayFavorite"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -738,46 +729,45 @@ public class Example { Fetch ML model favorite of a specific ML model ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import FavoritesApi; +import io.tiledb.cloud.rest_api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace of the ML model - String name = "name_example"; // String | The name of the ML model - try { - MLModelFavorite result = apiInstance.getMLModelFavorite(namespace, name); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#getMLModelFavorite"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + String namespace = "namespace_example"; // String | The namespace of the ML model + String name = "name_example"; // String | The name of the ML model + try { + MLModelFavorite result = apiInstance.getMLModelFavorite(namespace, name); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FavoritesApi#getMLModelFavorite"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -817,46 +807,45 @@ public class Example { Fetch notebook favorite of a specific notebook ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import FavoritesApi; +import io.tiledb.cloud.rest_api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace of the notebook - String name = "name_example"; // String | The name of the notebook - try { - NotebookFavorite result = apiInstance.getNotebookFavorite(namespace, name); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#getNotebookFavorite"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + String namespace = "namespace_example"; // String | The namespace of the notebook + String name = "name_example"; // String | The name of the notebook + try { + NotebookFavorite result = apiInstance.getNotebookFavorite(namespace, name); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FavoritesApi#getNotebookFavorite"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -896,46 +885,45 @@ public class Example { Fetch UDF favorite of a specific UDF ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import FavoritesApi; +import io.tiledb.cloud.rest_api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace of the UDF - String name = "name_example"; // String | The name of the UDF - try { - UDFFavorite result = apiInstance.getUDFFavorite(namespace, name); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#getUDFFavorite"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + String namespace = "namespace_example"; // String | The namespace of the UDF + String name = "name_example"; // String | The name of the UDF + try { + UDFFavorite result = apiInstance.getUDFFavorite(namespace, name); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FavoritesApi#getUDFFavorite"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -975,46 +963,45 @@ public class Example { Fetch a page of array favorites of connected user ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import FavoritesApi; +import io.tiledb.cloud.rest_api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - Integer page = 56; // Integer | pagination offset - Integer perPage = 56; // Integer | pagination limit - try { - ArrayFavoritesData result = apiInstance.listArrayFavorites(page, perPage); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#listArrayFavorites"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + Integer page = 56; // Integer | pagination offset + Integer perPage = 56; // Integer | pagination limit + try { + ArrayFavoritesData result = apiInstance.listArrayFavorites(page, perPage); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FavoritesApi#listArrayFavorites"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1054,44 +1041,43 @@ public class Example { Fetch all favorite array uuids of connected user ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import FavoritesApi; +import io.tiledb.cloud.rest_api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - try { - List result = apiInstance.listArrayFavoritesUUIDs(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#listArrayFavoritesUUIDs"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + try { + List result = apiInstance.listArrayFavoritesUUIDs(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FavoritesApi#listArrayFavoritesUUIDs"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1127,46 +1113,45 @@ This endpoint does not need any parameter. Fetch a page of ML models favorites of connected user ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import FavoritesApi; +import io.tiledb.cloud.rest_api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - Integer page = 56; // Integer | pagination offset - Integer perPage = 56; // Integer | pagination limit - try { - MLModelFavoritesData result = apiInstance.listMLModelFavorites(page, perPage); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#listMLModelFavorites"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + Integer page = 56; // Integer | pagination offset + Integer perPage = 56; // Integer | pagination limit + try { + MLModelFavoritesData result = apiInstance.listMLModelFavorites(page, perPage); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FavoritesApi#listMLModelFavorites"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1206,44 +1191,43 @@ public class Example { Fetch all favorite ML models uuids of connected user ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import FavoritesApi; +import io.tiledb.cloud.rest_api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - try { - List result = apiInstance.listMLModelFavoritesUUIDs(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#listMLModelFavoritesUUIDs"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + try { + List result = apiInstance.listMLModelFavoritesUUIDs(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FavoritesApi#listMLModelFavoritesUUIDs"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1279,47 +1263,46 @@ This endpoint does not need any parameter. Fetch a page of notebook favorites of connected user ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import FavoritesApi; +import io.tiledb.cloud.rest_api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - Boolean isDashboard = true; // Boolean | return only dashboards - Integer page = 56; // Integer | pagination offset - Integer perPage = 56; // Integer | pagination limit - try { - NotebookFavoritesData result = apiInstance.listNotebookFavorites(isDashboard, page, perPage); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#listNotebookFavorites"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + Boolean isDashboard = true; // Boolean | return only dashboards + Integer page = 56; // Integer | pagination offset + Integer perPage = 56; // Integer | pagination limit + try { + NotebookFavoritesData result = apiInstance.listNotebookFavorites(isDashboard, page, perPage); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FavoritesApi#listNotebookFavorites"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1360,44 +1343,43 @@ public class Example { Fetch all favorite notebook uuids of connected user ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import FavoritesApi; +import io.tiledb.cloud.rest_api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - try { - List result = apiInstance.listNotebookFavoritesUUIDs(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#listNotebookFavoritesUUIDs"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + try { + List result = apiInstance.listNotebookFavoritesUUIDs(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FavoritesApi#listNotebookFavoritesUUIDs"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1433,46 +1415,45 @@ This endpoint does not need any parameter. Fetch a page of UDF favorites of connected user ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import FavoritesApi; +import io.tiledb.cloud.rest_api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - Integer page = 56; // Integer | pagination offset - Integer perPage = 56; // Integer | pagination limit - try { - UDFFavoritesData result = apiInstance.listUDFFavorites(page, perPage); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#listUDFFavorites"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + Integer page = 56; // Integer | pagination offset + Integer perPage = 56; // Integer | pagination limit + try { + UDFFavoritesData result = apiInstance.listUDFFavorites(page, perPage); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FavoritesApi#listUDFFavorites"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1512,44 +1493,43 @@ public class Example { Fetch all favorite UDF uuids of connected user ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import FavoritesApi; +import io.tiledb.cloud.rest_api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - try { - List result = apiInstance.listUDFFavoritesUUIDs(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#listUDFFavoritesUUIDs"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + try { + List result = apiInstance.listUDFFavoritesUUIDs(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FavoritesApi#listUDFFavoritesUUIDs"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` diff --git a/docs/FilesApi.md b/docs/FilesApi.md index f81ee50..29a1a32 100644 --- a/docs/FilesApi.md +++ b/docs/FilesApi.md @@ -18,47 +18,46 @@ All URIs are relative to */v1* Create a tiledb file at the specified location ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import FilesApi; +import io.tiledb.cloud.rest_api.FilesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - FilesApi apiInstance = new FilesApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace of the file - FileCreate fileCreate = new FileCreate(); // FileCreate | Input/Output information to create a new TileDB file - String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME = "X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME_example"; // String | Optional registered access credentials to use for creation - try { - FileCreated result = apiInstance.handleCreateFile(namespace, fileCreate, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FilesApi#handleCreateFile"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + FilesApi apiInstance = new FilesApi(defaultClient); + String namespace = "namespace_example"; // String | The namespace of the file + FileCreate fileCreate = new FileCreate(); // FileCreate | Input/Output information to create a new TileDB file + String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME = "X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME_example"; // String | Optional registered access credentials to use for creation + try { + FileCreated result = apiInstance.handleCreateFile(namespace, fileCreate, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FilesApi#handleCreateFile"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -99,47 +98,46 @@ public class Example { Export a TileDB File back to its original file format ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import FilesApi; +import io.tiledb.cloud.rest_api.FilesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - FilesApi apiInstance = new FilesApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace of the file - String _file = "_file_example"; // String | The file identifier - FileExport fileExport = new FileExport(); // FileExport | Export configuration information - try { - FileExported result = apiInstance.handleExportFile(namespace, _file, fileExport); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FilesApi#handleExportFile"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + FilesApi apiInstance = new FilesApi(defaultClient); + String namespace = "namespace_example"; // String | The namespace of the file + String _file = "_file_example"; // String | The file identifier + FileExport fileExport = new FileExport(); // FileExport | Export configuration information + try { + FileExported result = apiInstance.handleExportFile(namespace, _file, fileExport); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FilesApi#handleExportFile"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -180,49 +178,48 @@ public class Example { Upload a tiledb file at the specified location ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import FilesApi; +import io.tiledb.cloud.rest_api.FilesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - FilesApi apiInstance = new FilesApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace of the file - File inputFile = new File("/path/to/file"); // File | the file to upload - String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME = "X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME_example"; // String | Optional registered access credentials to use for creation - String outputUri = "outputUri_example"; // String | output location of the TileDB File - String name = "name_example"; // String | name to set for registered file - try { - FileUploaded result = apiInstance.handleUploadFile(namespace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FilesApi#handleUploadFile"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + FilesApi apiInstance = new FilesApi(defaultClient); + String namespace = "namespace_example"; // String | The namespace of the file + File inputFile = new File("/path/to/file"); // File | the file to upload + String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME = "X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME_example"; // String | Optional registered access credentials to use for creation + String outputUri = "outputUri_example"; // String | output location of the TileDB File + String name = "name_example"; // String | name to set for registered file + try { + FileUploaded result = apiInstance.handleUploadFile(namespace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FilesApi#handleUploadFile"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` diff --git a/docs/FilterType.md b/docs/FilterType.md index 3c3953e..5957760 100644 --- a/docs/FilterType.md +++ b/docs/FilterType.md @@ -5,27 +5,27 @@ ## Enum -* `NONE` (value: `"FILTER_NONE"`) +* `NONE` (value: `"NONE"`) -* `GZIP` (value: `"FILTER_GZIP"`) +* `GZIP` (value: `"GZIP"`) -* `ZSTD` (value: `"FILTER_ZSTD"`) +* `ZSTD` (value: `"ZSTD"`) -* `LZ4` (value: `"FILTER_LZ4"`) +* `LZ4` (value: `"LZ4"`) -* `RLE` (value: `"FILTER_RLE"`) +* `RLE` (value: `"RLE"`) -* `BZIP2` (value: `"FILTER_BZIP2"`) +* `BZIP2` (value: `"BZIP2"`) -* `DOUBLE_DELTA` (value: `"FILTER_DOUBLE_DELTA"`) +* `DOUBLE_DELTA` (value: `"DOUBLE_DELTA"`) -* `BIT_WIDTH_REDUCTION` (value: `"FILTER_BIT_WIDTH_REDUCTION"`) +* `BIT_WIDTH_REDUCTION` (value: `"BIT_WIDTH_REDUCTION"`) -* `BITSHUFFLE` (value: `"FILTER_BITSHUFFLE"`) +* `BITSHUFFLE` (value: `"BITSHUFFLE"`) -* `BYTESHUFFLE` (value: `"FILTER_BYTESHUFFLE"`) +* `BYTESHUFFLE` (value: `"BYTESHUFFLE"`) -* `POSITIVE_DELTA` (value: `"FILTER_POSITIVE_DELTA"`) +* `POSITIVE_DELTA` (value: `"POSITIVE_DELTA"`) diff --git a/docs/GroupContentActivity.md b/docs/GroupContentActivity.md new file mode 100644 index 0000000..4f9465e --- /dev/null +++ b/docs/GroupContentActivity.md @@ -0,0 +1,15 @@ + + +# GroupContentActivity + +Object containing activity of an asset of a group + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**asset** | [**GroupContentActivityAsset**](GroupContentActivityAsset.md) | | [optional] | +|**activityLog** | [**ArrayActivityLog**](ArrayActivityLog.md) | | [optional] | + + + diff --git a/docs/GroupContentActivityAsset.md b/docs/GroupContentActivityAsset.md new file mode 100644 index 0000000..cded29a --- /dev/null +++ b/docs/GroupContentActivityAsset.md @@ -0,0 +1,17 @@ + + +# GroupContentActivityAsset + +The asset details + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | The asset ID | [optional] | +|**name** | **String** | The asset name | [optional] | +|**namespace** | **String** | The namespace that the asset belongs to | [optional] | +|**assetType** | **AssetType** | | [optional] | + + + diff --git a/docs/GroupContentActivityResponse.md b/docs/GroupContentActivityResponse.md new file mode 100644 index 0000000..fd2ddd3 --- /dev/null +++ b/docs/GroupContentActivityResponse.md @@ -0,0 +1,15 @@ + + +# GroupContentActivityResponse + +Object containing activity logs of group content along with the pagination metadata + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**activity** | [**List<GroupContentActivity>**](GroupContentActivity.md) | Activity of a group's content | [optional] | +|**paginationMetadata** | [**PaginationMetadata**](PaginationMetadata.md) | | [optional] | + + + diff --git a/docs/GroupInfo.md b/docs/GroupInfo.md index fb8203b..831a1dc 100644 --- a/docs/GroupInfo.md +++ b/docs/GroupInfo.md @@ -27,6 +27,9 @@ metadata of a group |**tags** | **List<String>** | optional tags for group | [optional] | |**licenseId** | **String** | License identifier from SPDX License List or Custom | [optional] | |**licenseText** | **String** | License text | [optional] | +|**createdAt** | **OffsetDateTime** | Datetime the group was registered with tiledb | [optional] | +|**createdBy** | **String** | The username of the group's creator, if known. | [optional] | +|**metadata** | [**List<MetadataStringifiedEntry>**](MetadataStringifiedEntry.md) | Contains metadata of the group. **Note:** This property is included in the response only if the `with_metadata` query parameter is set to `true`. | [optional] | diff --git a/docs/GroupsApi.md b/docs/GroupsApi.md index a69f363..6eea9cd 100644 --- a/docs/GroupsApi.md +++ b/docs/GroupsApi.md @@ -32,46 +32,45 @@ All URIs are relative to */v1* Changes the contents of the group by adding/removing members. ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import GroupsApi; +import io.tiledb.cloud.rest_api.GroupsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - GroupsApi apiInstance = new GroupsApi(defaultClient); - String groupNamespace = "groupNamespace_example"; // String | The namespace of the group - String groupName = "groupName_example"; // String | The unique name or id of the group - GroupChanges groupChanges = new GroupChanges(); // GroupChanges | - try { - apiInstance.changeGroupContents(groupNamespace, groupName, groupChanges); - } catch (ApiException e) { - System.err.println("Exception when calling GroupsApi#changeGroupContents"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + GroupsApi apiInstance = new GroupsApi(defaultClient); + String groupNamespace = "groupNamespace_example"; // String | The namespace of the group + String groupName = "groupName_example"; // String | The unique name or id of the group + GroupChanges groupChanges = new GroupChanges(); // GroupChanges | + try { + apiInstance.changeGroupContents(groupNamespace, groupName, groupChanges); + } catch (ApiException e) { + System.err.println("Exception when calling GroupsApi#changeGroupContents"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -112,45 +111,44 @@ null (empty response body) Creates a new group in the namespace. ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import GroupsApi; +import io.tiledb.cloud.rest_api.GroupsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - GroupsApi apiInstance = new GroupsApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace of the group - GroupCreate groupCreate = new GroupCreate(); // GroupCreate | - try { - apiInstance.createGroup(namespace, groupCreate); - } catch (ApiException e) { - System.err.println("Exception when calling GroupsApi#createGroup"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + GroupsApi apiInstance = new GroupsApi(defaultClient); + String namespace = "namespace_example"; // String | The namespace of the group + GroupCreate groupCreate = new GroupCreate(); // GroupCreate | + try { + apiInstance.createGroup(namespace, groupCreate); + } catch (ApiException e) { + System.err.println("Exception when calling GroupsApi#createGroup"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -190,45 +188,44 @@ null (empty response body) Deletes the group. The assets are not deleted nor are not relocated to any other group ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import GroupsApi; +import io.tiledb.cloud.rest_api.GroupsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - GroupsApi apiInstance = new GroupsApi(defaultClient); - String groupNamespace = "groupNamespace_example"; // String | The namespace of the group - String groupName = "groupName_example"; // String | The unique name or id of the group - try { - apiInstance.deleteGroup(groupNamespace, groupName); - } catch (ApiException e) { - System.err.println("Exception when calling GroupsApi#deleteGroup"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + GroupsApi apiInstance = new GroupsApi(defaultClient); + String groupNamespace = "groupNamespace_example"; // String | The namespace of the group + String groupName = "groupName_example"; // String | The unique name or id of the group + try { + apiInstance.deleteGroup(groupNamespace, groupName); + } catch (ApiException e) { + System.err.println("Exception when calling GroupsApi#deleteGroup"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -268,46 +265,45 @@ null (empty response body) Returns the the group ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import GroupsApi; +import io.tiledb.cloud.rest_api.GroupsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - GroupsApi apiInstance = new GroupsApi(defaultClient); - String groupNamespace = "groupNamespace_example"; // String | The namespace of the group - String groupName = "groupName_example"; // String | The unique name or id of the group - try { - GroupInfo result = apiInstance.getGroup(groupNamespace, groupName); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling GroupsApi#getGroup"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + GroupsApi apiInstance = new GroupsApi(defaultClient); + String groupNamespace = "groupNamespace_example"; // String | The namespace of the group + String groupName = "groupName_example"; // String | The unique name or id of the group + try { + GroupInfo result = apiInstance.getGroup(groupNamespace, groupName); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling GroupsApi#getGroup"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -340,55 +336,54 @@ public class Example { # **getGroupActivity** -> GroupActivityResponse getGroupActivity(groupNamespace, groupName, page, perPage) +> GroupContentActivityResponse getGroupActivity(groupNamespace, groupName, page, perPage) Returns the activity of group content ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import GroupsApi; +import io.tiledb.cloud.rest_api.GroupsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - GroupsApi apiInstance = new GroupsApi(defaultClient); - String groupNamespace = "groupNamespace_example"; // String | The namespace of the group - String groupName = "groupName_example"; // String | The unique name or id of the group - Integer page = 56; // Integer | pagination offset - Integer perPage = 56; // Integer | pagination limit - try { - GroupActivityResponse result = apiInstance.getGroupActivity(groupNamespace, groupName, page, perPage); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling GroupsApi#getGroupActivity"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + GroupsApi apiInstance = new GroupsApi(defaultClient); + String groupNamespace = "groupNamespace_example"; // String | The namespace of the group + String groupName = "groupName_example"; // String | The unique name or id of the group + Integer page = 56; // Integer | pagination offset + Integer perPage = 56; // Integer | pagination limit + try { + GroupContentActivityResponse result = apiInstance.getGroupActivity(groupNamespace, groupName, page, perPage); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling GroupsApi#getGroupActivity"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -403,7 +398,7 @@ public class Example { ### Return type -[**GroupActivityResponse**](GroupActivityResponse.md) +[**GroupContentActivityResponse**](GroupContentActivityResponse.md) ### Authorization @@ -430,55 +425,54 @@ public class Example { Returns the contents of the group ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import GroupsApi; +import io.tiledb.cloud.rest_api.GroupsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - GroupsApi apiInstance = new GroupsApi(defaultClient); - String groupNamespace = "groupNamespace_example"; // String | The namespace of the group - String groupName = "groupName_example"; // String | The unique name or id of the group - Integer page = 56; // Integer | pagination offset for assets - Integer perPage = 56; // Integer | pagination limit for assets - String namespace = "namespace_example"; // String | namespace to search for - String search = "search_example"; // String | search string that will look at name, namespace or description fields - String orderby = "orderby_example"; // String | sort by which field valid values include last_accessed, size, name - List tag = Arrays.asList(); // List | tag to search for, more than one can be included - List excludeTag = Arrays.asList(); // List | tags to exclude matching array in results, more than one can be included - List memberType = Arrays.asList(); // List | member type to search for, more than one can be included - List excludeMemberType = Arrays.asList(); // List | member type to exclude matching groups in results, more than one can be included - try { - GroupContents result = apiInstance.getGroupContents(groupNamespace, groupName, page, perPage, namespace, search, orderby, tag, excludeTag, memberType, excludeMemberType); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling GroupsApi#getGroupContents"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + GroupsApi apiInstance = new GroupsApi(defaultClient); + String groupNamespace = "groupNamespace_example"; // String | The namespace of the group + String groupName = "groupName_example"; // String | The unique name or id of the group + Integer page = 56; // Integer | pagination offset for assets + Integer perPage = 56; // Integer | pagination limit for assets + String namespace = "namespace_example"; // String | namespace to search for + String search = "search_example"; // String | search string that will look at name, namespace or description fields + String orderby = "orderby_example"; // String | sort by which field valid values include last_accessed, size, name + List tag = Arrays.asList(); // List | tag to search for, more than one can be included + List excludeTag = Arrays.asList(); // List | tags to exclude matching array in results, more than one can be included + List memberType = Arrays.asList(); // List | member type to search for, more than one can be included + List excludeMemberType = Arrays.asList(); // List | member type to exclude matching groups in results, more than one can be included + try { + GroupContents result = apiInstance.getGroupContents(groupNamespace, groupName, page, perPage, namespace, search, orderby, tag, excludeTag, memberType, excludeMemberType); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling GroupsApi#getGroupContents"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -527,46 +521,45 @@ public class Example { Get all sharing details of the group ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import GroupsApi; +import io.tiledb.cloud.rest_api.GroupsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - GroupsApi apiInstance = new GroupsApi(defaultClient); - String groupNamespace = "groupNamespace_example"; // String | The namespace of the group - String groupName = "groupName_example"; // String | The unique name or id of the group - try { - List result = apiInstance.getGroupSharingPolicies(groupNamespace, groupName); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling GroupsApi#getGroupSharingPolicies"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + GroupsApi apiInstance = new GroupsApi(defaultClient); + String groupNamespace = "groupNamespace_example"; // String | The namespace of the group + String groupName = "groupName_example"; // String | The unique name or id of the group + try { + List result = apiInstance.getGroupSharingPolicies(groupNamespace, groupName); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling GroupsApi#getGroupSharingPolicies"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -607,45 +600,44 @@ public class Example { Fetch data to initialize filters for the groups browser ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import GroupsApi; +import io.tiledb.cloud.rest_api.GroupsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - GroupsApi apiInstance = new GroupsApi(defaultClient); - String namespace = "namespace_example"; // String | namespace - try { - GroupBrowserFilterData result = apiInstance.groupsBrowserOwnedFiltersGet(namespace); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling GroupsApi#groupsBrowserOwnedFiltersGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + GroupsApi apiInstance = new GroupsApi(defaultClient); + String namespace = "namespace_example"; // String | namespace + try { + GroupBrowserFilterData result = apiInstance.groupsBrowserOwnedFiltersGet(namespace); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling GroupsApi#groupsBrowserOwnedFiltersGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -684,44 +676,43 @@ public class Example { Fetch data to initialize filters for the groups browser ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import GroupsApi; +import io.tiledb.cloud.rest_api.GroupsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - GroupsApi apiInstance = new GroupsApi(defaultClient); - try { - GroupBrowserFilterData result = apiInstance.groupsBrowserPublicFiltersGet(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling GroupsApi#groupsBrowserPublicFiltersGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + GroupsApi apiInstance = new GroupsApi(defaultClient); + try { + GroupBrowserFilterData result = apiInstance.groupsBrowserPublicFiltersGet(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling GroupsApi#groupsBrowserPublicFiltersGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -757,45 +748,44 @@ This endpoint does not need any parameter. Fetch data to initialize filters for the groups browser ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import GroupsApi; +import io.tiledb.cloud.rest_api.GroupsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - GroupsApi apiInstance = new GroupsApi(defaultClient); - String namespace = "namespace_example"; // String | namespace - try { - GroupBrowserFilterData result = apiInstance.groupsBrowserSharedFiltersGet(namespace); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling GroupsApi#groupsBrowserSharedFiltersGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + GroupsApi apiInstance = new GroupsApi(defaultClient); + String namespace = "namespace_example"; // String | namespace + try { + GroupBrowserFilterData result = apiInstance.groupsBrowserSharedFiltersGet(namespace); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling GroupsApi#groupsBrowserSharedFiltersGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -834,46 +824,45 @@ public class Example { Fetch data to initialize filters for the group contents ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import GroupsApi; +import io.tiledb.cloud.rest_api.GroupsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - GroupsApi apiInstance = new GroupsApi(defaultClient); - String groupNamespace = "groupNamespace_example"; // String | The namespace of the group - String groupName = "groupName_example"; // String | The unique name or id of the group - try { - GroupContentsFilterData result = apiInstance.groupsGroupNamespaceGroupNameContentsFiltersGet(groupNamespace, groupName); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling GroupsApi#groupsGroupNamespaceGroupNameContentsFiltersGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + GroupsApi apiInstance = new GroupsApi(defaultClient); + String groupNamespace = "groupNamespace_example"; // String | The namespace of the group + String groupName = "groupName_example"; // String | The unique name or id of the group + try { + GroupContentsFilterData result = apiInstance.groupsGroupNamespaceGroupNameContentsFiltersGet(groupNamespace, groupName); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling GroupsApi#groupsGroupNamespaceGroupNameContentsFiltersGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -906,62 +895,62 @@ public class Example { # **listOwnedGroups** -> GroupBrowserData listOwnedGroups(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent) +> GroupBrowserData listOwnedGroups(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, withMetadata) Returns one page of owned groups. ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import GroupsApi; +import io.tiledb.cloud.rest_api.GroupsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - GroupsApi apiInstance = new GroupsApi(defaultClient); - Integer page = 56; // Integer | pagination offset - Integer perPage = 56; // Integer | pagination limit - String groupType = "groupType_example"; // String | filter by a specific group type - String search = "search_example"; // String | search string that will look at name, namespace or description fields - String namespace = "namespace_example"; // String | namespace - String orderby = "orderby_example"; // String | sort by which field valid values include last_accessed, size, name - String permissions = "permissions_example"; // String | permissions valid values include read, read_write, write, admin - List tag = Arrays.asList(); // List | tag to search for, more than one can be included - List excludeTag = Arrays.asList(); // List | tags to exclude matching array in results, more than one can be included - Boolean flat = true; // Boolean | if true, ignores the nesting of groups and searches all of them - String parent = "parent_example"; // String | search only the children of the groups with this uuid - try { - GroupBrowserData result = apiInstance.listOwnedGroups(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling GroupsApi#listOwnedGroups"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + GroupsApi apiInstance = new GroupsApi(defaultClient); + Integer page = 56; // Integer | pagination offset + Integer perPage = 56; // Integer | pagination limit + String groupType = "groupType_example"; // String | filter by a specific group type + String search = "search_example"; // String | search string that will look at name, namespace or description fields + String namespace = "namespace_example"; // String | namespace + String orderby = "orderby_example"; // String | sort by which field valid values include last_accessed, size, name + String permissions = "permissions_example"; // String | permissions valid values include read, read_write, write, admin + List tag = Arrays.asList(); // List | tag to search for, more than one can be included + List excludeTag = Arrays.asList(); // List | tags to exclude matching array in results, more than one can be included + Boolean flat = true; // Boolean | if true, ignores the nesting of groups and searches all of them + String parent = "parent_example"; // String | search only the children of the groups with this uuid + Boolean withMetadata = true; // Boolean | include the metadata of the groups + try { + GroupBrowserData result = apiInstance.listOwnedGroups(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, withMetadata); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling GroupsApi#listOwnedGroups"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -980,6 +969,7 @@ public class Example { | **excludeTag** | [**List<String>**](String.md)| tags to exclude matching array in results, more than one can be included | [optional] | | **flat** | **Boolean**| if true, ignores the nesting of groups and searches all of them | [optional] | | **parent** | **String**| search only the children of the groups with this uuid | [optional] | +| **withMetadata** | **Boolean**| include the metadata of the groups | [optional] | ### Return type @@ -1003,62 +993,62 @@ public class Example { # **listPublicGroups** -> GroupBrowserData listPublicGroups(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent) +> GroupBrowserData listPublicGroups(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, withMetadata) Returns one page of public groups. ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import GroupsApi; +import io.tiledb.cloud.rest_api.GroupsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - GroupsApi apiInstance = new GroupsApi(defaultClient); - Integer page = 56; // Integer | pagination offset - Integer perPage = 56; // Integer | pagination limit - String groupType = "groupType_example"; // String | filter by a specific group type - String search = "search_example"; // String | search string that will look at name, namespace or description fields - String namespace = "namespace_example"; // String | namespace - String orderby = "orderby_example"; // String | sort by which field valid values include last_accessed, size, name - String permissions = "permissions_example"; // String | permissions valid values include read, read_write, write, admin - List tag = Arrays.asList(); // List | tag to search for, more than one can be included - List excludeTag = Arrays.asList(); // List | tags to exclude matching array in results, more than one can be included - Boolean flat = true; // Boolean | if true, ignores the nesting of groups and searches all of them - String parent = "parent_example"; // String | search only the children of the groups with this uuid - try { - GroupBrowserData result = apiInstance.listPublicGroups(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling GroupsApi#listPublicGroups"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + GroupsApi apiInstance = new GroupsApi(defaultClient); + Integer page = 56; // Integer | pagination offset + Integer perPage = 56; // Integer | pagination limit + String groupType = "groupType_example"; // String | filter by a specific group type + String search = "search_example"; // String | search string that will look at name, namespace or description fields + String namespace = "namespace_example"; // String | namespace + String orderby = "orderby_example"; // String | sort by which field valid values include last_accessed, size, name + String permissions = "permissions_example"; // String | permissions valid values include read, read_write, write, admin + List tag = Arrays.asList(); // List | tag to search for, more than one can be included + List excludeTag = Arrays.asList(); // List | tags to exclude matching array in results, more than one can be included + Boolean flat = true; // Boolean | if true, ignores the nesting of groups and searches all of them + String parent = "parent_example"; // String | search only the children of the groups with this uuid + Boolean withMetadata = true; // Boolean | include the metadata of the groups + try { + GroupBrowserData result = apiInstance.listPublicGroups(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, withMetadata); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling GroupsApi#listPublicGroups"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1077,6 +1067,7 @@ public class Example { | **excludeTag** | [**List<String>**](String.md)| tags to exclude matching array in results, more than one can be included | [optional] | | **flat** | **Boolean**| if true, ignores the nesting of groups and searches all of them | [optional] | | **parent** | **String**| search only the children of the groups with this uuid | [optional] | +| **withMetadata** | **Boolean**| include the metadata of the groups | [optional] | ### Return type @@ -1100,63 +1091,63 @@ public class Example { # **listSharedGroups** -> GroupBrowserData listSharedGroups(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, sharedTo) +> GroupBrowserData listSharedGroups(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, sharedTo, withMetadata) Returns one page of shared groups. ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import GroupsApi; +import io.tiledb.cloud.rest_api.GroupsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - GroupsApi apiInstance = new GroupsApi(defaultClient); - Integer page = 56; // Integer | pagination offset - Integer perPage = 56; // Integer | pagination limit - String groupType = "groupType_example"; // String | filter by a specific group type - String search = "search_example"; // String | search string that will look at name, namespace or description fields - String namespace = "namespace_example"; // String | namespace - String orderby = "orderby_example"; // String | sort by which field valid values include last_accessed, size, name - String permissions = "permissions_example"; // String | permissions valid values include read, read_write, write, admin - List tag = Arrays.asList(); // List | tag to search for, more than one can be included - List excludeTag = Arrays.asList(); // List | tags to exclude matching array in results, more than one can be included - Boolean flat = true; // Boolean | if true, ignores the nesting of groups and searches all of them - String parent = "parent_example"; // String | search only the children of the groups with this uuid - List sharedTo = Arrays.asList(); // List | namespaces to filter results of where there groups were shared to - try { - GroupBrowserData result = apiInstance.listSharedGroups(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, sharedTo); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling GroupsApi#listSharedGroups"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + GroupsApi apiInstance = new GroupsApi(defaultClient); + Integer page = 56; // Integer | pagination offset + Integer perPage = 56; // Integer | pagination limit + String groupType = "groupType_example"; // String | filter by a specific group type + String search = "search_example"; // String | search string that will look at name, namespace or description fields + String namespace = "namespace_example"; // String | namespace + String orderby = "orderby_example"; // String | sort by which field valid values include last_accessed, size, name + String permissions = "permissions_example"; // String | permissions valid values include read, read_write, write, admin + List tag = Arrays.asList(); // List | tag to search for, more than one can be included + List excludeTag = Arrays.asList(); // List | tags to exclude matching array in results, more than one can be included + Boolean flat = true; // Boolean | if true, ignores the nesting of groups and searches all of them + String parent = "parent_example"; // String | search only the children of the groups with this uuid + List sharedTo = Arrays.asList(); // List | namespaces to filter results of where there groups were shared to + Boolean withMetadata = true; // Boolean | include the metadata of the groups + try { + GroupBrowserData result = apiInstance.listSharedGroups(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, sharedTo, withMetadata); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling GroupsApi#listSharedGroups"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1176,6 +1167,7 @@ public class Example { | **flat** | **Boolean**| if true, ignores the nesting of groups and searches all of them | [optional] | | **parent** | **String**| search only the children of the groups with this uuid | [optional] | | **sharedTo** | [**List<String>**](String.md)| namespaces to filter results of where there groups were shared to | [optional] | +| **withMetadata** | **Boolean**| include the metadata of the groups | [optional] | ### Return type @@ -1206,46 +1198,45 @@ public class Example { Registers an existing group in the namespace. ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import GroupsApi; +import io.tiledb.cloud.rest_api.GroupsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - GroupsApi apiInstance = new GroupsApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace of the group - String array = "array_example"; // String | The unique name or id of the group - GroupRegister groupRegister = new GroupRegister(); // GroupRegister | - try { - apiInstance.registerGroup(namespace, array, groupRegister); - } catch (ApiException e) { - System.err.println("Exception when calling GroupsApi#registerGroup"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + GroupsApi apiInstance = new GroupsApi(defaultClient); + String namespace = "namespace_example"; // String | The namespace of the group + String array = "array_example"; // String | The unique name or id of the group + GroupRegister groupRegister = new GroupRegister(); // GroupRegister | + try { + apiInstance.registerGroup(namespace, array, groupRegister); + } catch (ApiException e) { + System.err.println("Exception when calling GroupsApi#registerGroup"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1286,46 +1277,45 @@ null (empty response body) Share a group with a namespace ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import GroupsApi; +import io.tiledb.cloud.rest_api.GroupsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - GroupsApi apiInstance = new GroupsApi(defaultClient); - String groupNamespace = "groupNamespace_example"; // String | The namespace of the group - String groupName = "groupName_example"; // String | The unique name or id of the group - GroupSharingRequest groupSharingRequest = new GroupSharingRequest(); // GroupSharingRequest | Namespace and list of permissions to share with. Sharing is recursive, it is applied to all reachable subgroups and arrays of the group. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the group will not be shared with the namespace at all. - try { - apiInstance.shareGroup(groupNamespace, groupName, groupSharingRequest); - } catch (ApiException e) { - System.err.println("Exception when calling GroupsApi#shareGroup"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + GroupsApi apiInstance = new GroupsApi(defaultClient); + String groupNamespace = "groupNamespace_example"; // String | The namespace of the group + String groupName = "groupName_example"; // String | The unique name or id of the group + GroupSharingRequest groupSharingRequest = new GroupSharingRequest(); // GroupSharingRequest | Namespace and list of permissions to share with. Sharing is recursive, it is applied to all reachable subgroups and arrays of the group. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the group will not be shared with the namespace at all. + try { + apiInstance.shareGroup(groupNamespace, groupName, groupSharingRequest); + } catch (ApiException e) { + System.err.println("Exception when calling GroupsApi#shareGroup"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1367,46 +1357,45 @@ null (empty response body) Changes attributes of the group ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import GroupsApi; +import io.tiledb.cloud.rest_api.GroupsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - GroupsApi apiInstance = new GroupsApi(defaultClient); - String groupNamespace = "groupNamespace_example"; // String | The namespace of the group - String groupName = "groupName_example"; // String | The unique name or id of the group - GroupUpdate groupUpdate = new GroupUpdate(); // GroupUpdate | - try { - apiInstance.updateGroup(groupNamespace, groupName, groupUpdate); - } catch (ApiException e) { - System.err.println("Exception when calling GroupsApi#updateGroup"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + GroupsApi apiInstance = new GroupsApi(defaultClient); + String groupNamespace = "groupNamespace_example"; // String | The namespace of the group + String groupName = "groupName_example"; // String | The unique name or id of the group + GroupUpdate groupUpdate = new GroupUpdate(); // GroupUpdate | + try { + apiInstance.updateGroup(groupNamespace, groupName, groupUpdate); + } catch (ApiException e) { + System.err.println("Exception when calling GroupsApi#updateGroup"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` diff --git a/docs/InvitationApi.md b/docs/InvitationApi.md index d575b9a..f1d9f8d 100644 --- a/docs/InvitationApi.md +++ b/docs/InvitationApi.md @@ -8,10 +8,12 @@ All URIs are relative to */v1* | [**cancelJoinOrganization**](InvitationApi.md#cancelJoinOrganization) | **DELETE** /invitations/{invitation}/{organization}/join | | | [**cancelShareArrayByInvite**](InvitationApi.md#cancelShareArrayByInvite) | **DELETE** /invitations/{invitation}/{namespace}/{array}/share | | | [**cancelShareGroupByInvite**](InvitationApi.md#cancelShareGroupByInvite) | **DELETE** /invitations/group/{invitation}/{namespace}/{group_name}/share | | +| [**cancelSharePayment**](InvitationApi.md#cancelSharePayment) | **DELETE** /invitations/share_payment/{namespace}/{target} | | | [**fetchInvitations**](InvitationApi.md#fetchInvitations) | **GET** /invitations | | | [**joinOrganization**](InvitationApi.md#joinOrganization) | **POST** /invitations/{organization}/join | | | [**shareArrayByInvite**](InvitationApi.md#shareArrayByInvite) | **POST** /invitations/{namespace}/{array}/share | | | [**shareGroupByInvite**](InvitationApi.md#shareGroupByInvite) | **POST** /invitations/group/{namespace}/{group}/share | | +| [**sharePayment**](InvitationApi.md#sharePayment) | **POST** /invitations/share_payment/{namespace} | | @@ -23,44 +25,43 @@ All URIs are relative to */v1* Accepts invitation ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import InvitationApi; +import io.tiledb.cloud.rest_api.InvitationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - InvitationApi apiInstance = new InvitationApi(defaultClient); - String invitation = "invitation_example"; // String | the ID of invitation about to be accepted - try { - apiInstance.acceptInvitation(invitation); - } catch (ApiException e) { - System.err.println("Exception when calling InvitationApi#acceptInvitation"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + InvitationApi apiInstance = new InvitationApi(defaultClient); + String invitation = "invitation_example"; // String | the ID of invitation about to be accepted + try { + apiInstance.acceptInvitation(invitation); + } catch (ApiException e) { + System.err.println("Exception when calling InvitationApi#acceptInvitation"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -100,45 +101,44 @@ null (empty response body) Cancels join organization invitation ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import InvitationApi; +import io.tiledb.cloud.rest_api.InvitationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - InvitationApi apiInstance = new InvitationApi(defaultClient); - String invitation = "invitation_example"; // String | the ID of invitation about to be cancelled - String organization = "organization_example"; // String | name or UUID of organization - try { - apiInstance.cancelJoinOrganization(invitation, organization); - } catch (ApiException e) { - System.err.println("Exception when calling InvitationApi#cancelJoinOrganization"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + InvitationApi apiInstance = new InvitationApi(defaultClient); + String invitation = "invitation_example"; // String | the ID of invitation about to be cancelled + String organization = "organization_example"; // String | name or UUID of organization + try { + apiInstance.cancelJoinOrganization(invitation, organization); + } catch (ApiException e) { + System.err.println("Exception when calling InvitationApi#cancelJoinOrganization"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -179,46 +179,45 @@ null (empty response body) Cancels array sharing invitation ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import InvitationApi; +import io.tiledb.cloud.rest_api.InvitationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - InvitationApi apiInstance = new InvitationApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String invitation = "invitation_example"; // String | the ID of invitation about to be cancelled - String array = "array_example"; // String | name/uri of array that is url-encoded - try { - apiInstance.cancelShareArrayByInvite(namespace, invitation, array); - } catch (ApiException e) { - System.err.println("Exception when calling InvitationApi#cancelShareArrayByInvite"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + InvitationApi apiInstance = new InvitationApi(defaultClient); + String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String invitation = "invitation_example"; // String | the ID of invitation about to be cancelled + String array = "array_example"; // String | name/uri of array that is url-encoded + try { + apiInstance.cancelShareArrayByInvite(namespace, invitation, array); + } catch (ApiException e) { + System.err.println("Exception when calling InvitationApi#cancelShareArrayByInvite"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -260,46 +259,45 @@ null (empty response body) Cancels group sharing invitation ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import InvitationApi; +import io.tiledb.cloud.rest_api.InvitationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - InvitationApi apiInstance = new InvitationApi(defaultClient); - String namespace = "namespace_example"; // String | namespace group is in (an organization name or user's username) - String invitation = "invitation_example"; // String | the ID of invitation about to be cancelled - String groupName = "groupName_example"; // String | name/uuid of group that is url-encoded - try { - apiInstance.cancelShareGroupByInvite(namespace, invitation, groupName); - } catch (ApiException e) { - System.err.println("Exception when calling InvitationApi#cancelShareGroupByInvite"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + InvitationApi apiInstance = new InvitationApi(defaultClient); + String namespace = "namespace_example"; // String | namespace group is in (an organization name or user's username) + String invitation = "invitation_example"; // String | the ID of invitation about to be cancelled + String groupName = "groupName_example"; // String | name/uuid of group that is url-encoded + try { + apiInstance.cancelShareGroupByInvite(namespace, invitation, groupName); + } catch (ApiException e) { + System.err.println("Exception when calling InvitationApi#cancelShareGroupByInvite"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -332,6 +330,83 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | + +# **cancelSharePayment** +> cancelSharePayment(namespace, target) + + + +Revokes invitation from the source namespace to the target. + +### Example +```java +// Import classes: +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; +import io.tiledb.cloud.rest_api.InvitationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + InvitationApi apiInstance = new InvitationApi(defaultClient); + String namespace = "namespace_example"; // String | name or UUID of namespace sharing their payment info + String target = "target_example"; // String | name or UUID of recipient namespace + try { + apiInstance.cancelSharePayment(namespace, target); + } catch (ApiException e) { + System.err.println("Exception when calling InvitationApi#cancelSharePayment"); + 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 | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| name or UUID of namespace sharing their payment info | | +| **target** | **String**| name or UUID of recipient namespace | | + +### Return type + +null (empty response body) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | Invitation cancelled successfully | - | +| **404** | No invitation was found to cancel | - | +| **0** | error response | - | + # **fetchInvitations** > InvitationData fetchInvitations(organization, array, group, start, end, page, perPage, type, status, orderby) @@ -341,54 +416,53 @@ null (empty response body) Fetch a list of invitations ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import InvitationApi; +import io.tiledb.cloud.rest_api.InvitationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - InvitationApi apiInstance = new InvitationApi(defaultClient); - String organization = "organization_example"; // String | name or ID of organization to filter - String array = "array_example"; // String | name/uri of array that is url-encoded to filter - String group = "group_example"; // String | name or ID of group to filter - Integer start = 56; // Integer | start time for tasks to filter by - Integer end = 56; // Integer | end time for tasks to filter by - Integer page = 56; // Integer | pagination offset - Integer perPage = 56; // Integer | pagination limit - String type = "type_example"; // String | invitation type, \"ARRAY_SHARE\", \"JOIN_ORGANIZATION\" - String status = "status_example"; // String | Filter to only return \"PENDING\", \"ACCEPTED\" - String orderby = "orderby_example"; // String | sort by which field valid values include timestamp, array_name, organization_name - try { - InvitationData result = apiInstance.fetchInvitations(organization, array, group, start, end, page, perPage, type, status, orderby); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling InvitationApi#fetchInvitations"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + InvitationApi apiInstance = new InvitationApi(defaultClient); + String organization = "organization_example"; // String | name or ID of organization to filter + String array = "array_example"; // String | name/uri of array that is url-encoded to filter + String group = "group_example"; // String | name or ID of group to filter + Integer start = 56; // Integer | start time for tasks to filter by + Integer end = 56; // Integer | end time for tasks to filter by + Integer page = 56; // Integer | pagination offset + Integer perPage = 56; // Integer | pagination limit + String type = "type_example"; // String | invitation type, \"ARRAY_SHARE\", \"JOIN_ORGANIZATION\" + String status = "status_example"; // String | Filter to only return \"PENDING\", \"ACCEPTED\" + String orderby = "orderby_example"; // String | sort by which field valid values include timestamp, array_name, organization_name + try { + InvitationData result = apiInstance.fetchInvitations(organization, array, group, start, end, page, perPage, type, status, orderby); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling InvitationApi#fetchInvitations"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -436,45 +510,44 @@ public class Example { Sends email to multiple recipients with joining information regarding an organization ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import InvitationApi; +import io.tiledb.cloud.rest_api.InvitationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - InvitationApi apiInstance = new InvitationApi(defaultClient); - String organization = "organization_example"; // String | name or UUID of organization - InvitationOrganizationJoinEmail emailInvite = new InvitationOrganizationJoinEmail(); // InvitationOrganizationJoinEmail | list of email recipients - try { - apiInstance.joinOrganization(organization, emailInvite); - } catch (ApiException e) { - System.err.println("Exception when calling InvitationApi#joinOrganization"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + InvitationApi apiInstance = new InvitationApi(defaultClient); + String organization = "organization_example"; // String | name or UUID of organization + InvitationOrganizationJoinEmail emailInvite = new InvitationOrganizationJoinEmail(); // InvitationOrganizationJoinEmail | list of email recipients + try { + apiInstance.joinOrganization(organization, emailInvite); + } catch (ApiException e) { + System.err.println("Exception when calling InvitationApi#joinOrganization"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -516,46 +589,45 @@ null (empty response body) Sends email to multiple recipients with sharing information regarding an array ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import InvitationApi; +import io.tiledb.cloud.rest_api.InvitationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - InvitationApi apiInstance = new InvitationApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - InvitationArrayShareEmail emailInvite = new InvitationArrayShareEmail(); // InvitationArrayShareEmail | list of email recipients - try { - apiInstance.shareArrayByInvite(namespace, array, emailInvite); - } catch (ApiException e) { - System.err.println("Exception when calling InvitationApi#shareArrayByInvite"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + InvitationApi apiInstance = new InvitationApi(defaultClient); + String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String array = "array_example"; // String | name/uri of array that is url-encoded + InvitationArrayShareEmail emailInvite = new InvitationArrayShareEmail(); // InvitationArrayShareEmail | list of email recipients + try { + apiInstance.shareArrayByInvite(namespace, array, emailInvite); + } catch (ApiException e) { + System.err.println("Exception when calling InvitationApi#shareArrayByInvite"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -598,46 +670,45 @@ null (empty response body) Sends email to multiple recipients with sharing information regarding a group ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import InvitationApi; +import io.tiledb.cloud.rest_api.InvitationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - InvitationApi apiInstance = new InvitationApi(defaultClient); - String namespace = "namespace_example"; // String | namespace group is in (an organization name or user's username) - String group = "group_example"; // String | name/uri of group that is url-encoded - InvitationGroupShareEmail emailInvite = new InvitationGroupShareEmail(); // InvitationGroupShareEmail | list of email/namespace recipients - try { - apiInstance.shareGroupByInvite(namespace, group, emailInvite); - } catch (ApiException e) { - System.err.println("Exception when calling InvitationApi#shareGroupByInvite"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + InvitationApi apiInstance = new InvitationApi(defaultClient); + String namespace = "namespace_example"; // String | namespace group is in (an organization name or user's username) + String group = "group_example"; // String | name/uri of group that is url-encoded + InvitationGroupShareEmail emailInvite = new InvitationGroupShareEmail(); // InvitationGroupShareEmail | list of email/namespace recipients + try { + apiInstance.shareGroupByInvite(namespace, group, emailInvite); + } catch (ApiException e) { + System.err.println("Exception when calling InvitationApi#shareGroupByInvite"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -671,3 +742,82 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | + +# **sharePayment** +> sharePayment(namespace, emailInvite) + + + +Sends email to multiple recipients allowing them to use the payment instrument provided by the source namespace. + +### Example +```java +// Import classes: +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; +import io.tiledb.cloud.rest_api.InvitationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + InvitationApi apiInstance = new InvitationApi(defaultClient); + String namespace = "namespace_example"; // String | name or UUID of namespace sharing their payment info + SharePaymentRequest emailInvite = new SharePaymentRequest(); // SharePaymentRequest | Recipients of the invitation. These may only be namespaces, not email addresses. + try { + apiInstance.sharePayment(namespace, emailInvite); + } catch (ApiException e) { + System.err.println("Exception when calling InvitationApi#sharePayment"); + 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 | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| name or UUID of namespace sharing their payment info | | +| **emailInvite** | [**SharePaymentRequest**](SharePaymentRequest.md)| Recipients of the invitation. These may only be namespaces, not email addresses. | [optional] | + +### Return type + +null (empty response body) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | Email sent successfully to user for email confirmation link | - | +| **207** | Only a portion of the invitations succeeded, some failed | - | +| **500** | Could not reach any recipients | - | +| **502** | Bad Gateway | - | +| **0** | error response | - | + diff --git a/docs/InvitationType.md b/docs/InvitationType.md index e3f3dc5..429bdc8 100644 --- a/docs/InvitationType.md +++ b/docs/InvitationType.md @@ -11,5 +11,7 @@ * `JOIN_ORGANIZATION` (value: `"JOIN_ORGANIZATION"`) +* `PAYMENT_SHARE` (value: `"PAYMENT_SHARE"`) + diff --git a/docs/LoadArraySchemaRequest.md b/docs/LoadArraySchemaRequest.md new file mode 100644 index 0000000..c876e30 --- /dev/null +++ b/docs/LoadArraySchemaRequest.md @@ -0,0 +1,14 @@ + + +# LoadArraySchemaRequest + +Request to load an array schema + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**config** | [**TileDBConfig**](TileDBConfig.md) | | [optional] | + + + diff --git a/docs/LoadArraySchemaResponse.md b/docs/LoadArraySchemaResponse.md new file mode 100644 index 0000000..9292574 --- /dev/null +++ b/docs/LoadArraySchemaResponse.md @@ -0,0 +1,15 @@ + + +# LoadArraySchemaResponse + +Contains the latest schema and all schemas for the opened array + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**latestArraySchema** | [**ArraySchema**](ArraySchema.md) | | [optional] | +|**allArraySchemas** | [**Map<String, ArraySchema>**](ArraySchema.md) | map of all array schemas | [optional] | + + + diff --git a/docs/LoadEnumerationsRequest.md b/docs/LoadEnumerationsRequest.md new file mode 100644 index 0000000..8d98646 --- /dev/null +++ b/docs/LoadEnumerationsRequest.md @@ -0,0 +1,15 @@ + + +# LoadEnumerationsRequest + +Request to return enumerations for attributes + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**config** | [**TileDBConfig**](TileDBConfig.md) | | [optional] | +|**enumerations** | **List<String>** | | [optional] | + + + diff --git a/docs/LoadEnumerationsResponse.md b/docs/LoadEnumerationsResponse.md new file mode 100644 index 0000000..dd95ca0 --- /dev/null +++ b/docs/LoadEnumerationsResponse.md @@ -0,0 +1,14 @@ + + +# LoadEnumerationsResponse + +Contains the enumerations of the array's attributes + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**enumerations** | [**List<Enumeration>**](Enumeration.md) | | [optional] | + + + diff --git a/docs/MetadataStringified.md b/docs/MetadataStringified.md new file mode 100644 index 0000000..fe265de --- /dev/null +++ b/docs/MetadataStringified.md @@ -0,0 +1,14 @@ + + +# MetadataStringified + +The user's TileDB metadata + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**entries** | [**List<MetadataStringifiedEntry>**](MetadataStringifiedEntry.md) | List of metadata entries | [optional] | + + + diff --git a/docs/MetadataStringifiedEntry.md b/docs/MetadataStringifiedEntry.md new file mode 100644 index 0000000..cc0a77f --- /dev/null +++ b/docs/MetadataStringifiedEntry.md @@ -0,0 +1,16 @@ + + +# MetadataStringifiedEntry + +key/value pair representing an asset metadata map entry + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**key** | **String** | The metadata key | [optional] | +|**value** | **String** | The metadata value | [optional] | +|**type** | **String** | The metadata type | [optional] | + + + diff --git a/docs/NotebookApi.md b/docs/NotebookApi.md index 8bbf419..32bf1e0 100644 --- a/docs/NotebookApi.md +++ b/docs/NotebookApi.md @@ -20,45 +20,44 @@ All URIs are relative to */v1* Get status of the notebook server ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import NotebookApi; +import io.tiledb.cloud.rest_api.NotebookApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - NotebookApi apiInstance = new NotebookApi(defaultClient); - String namespace = "namespace_example"; // String | namespace notebook is in (an organization name or user's username) - try { - NotebookStatus result = apiInstance.getNotebookServerStatus(namespace); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling NotebookApi#getNotebookServerStatus"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + NotebookApi apiInstance = new NotebookApi(defaultClient); + String namespace = "namespace_example"; // String | namespace notebook is in (an organization name or user's username) + try { + NotebookStatus result = apiInstance.getNotebookServerStatus(namespace); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NotebookApi#getNotebookServerStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -85,7 +84,6 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | status of running notebook | - | -| **202** | Notebook server is pending | - | | **402** | Payment required | - | | **404** | Notebook is not running | - | | **502** | Bad Gateway | - | @@ -100,49 +98,48 @@ public class Example { Copy a tiledb notebook at the specified location ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import NotebookApi; +import io.tiledb.cloud.rest_api.NotebookApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - NotebookApi apiInstance = new NotebookApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace of the notebook - String array = "array_example"; // String | The name of the notebook - NotebookCopy notebookCopy = new NotebookCopy(); // NotebookCopy | Input/Output information to create a new TileDB file - String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME = "X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME_example"; // String | Optional registered access credentials to use for creation - Integer endTimestamp = 56; // Integer | Milliseconds since Unix epoch, copy will use open_at functionality to copy notebook created at the specific timestamp - try { - NotebookCopied result = apiInstance.handleCopyNotebook(namespace, array, notebookCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling NotebookApi#handleCopyNotebook"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + NotebookApi apiInstance = new NotebookApi(defaultClient); + String namespace = "namespace_example"; // String | The namespace of the notebook + String array = "array_example"; // String | The name of the notebook + NotebookCopy notebookCopy = new NotebookCopy(); // NotebookCopy | Input/Output information to create a new TileDB file + String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME = "X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME_example"; // String | Optional registered access credentials to use for creation + Integer endTimestamp = 56; // Integer | Milliseconds since Unix epoch, copy will use open_at functionality to copy notebook created at the specific timestamp + try { + NotebookCopied result = apiInstance.handleCopyNotebook(namespace, array, notebookCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NotebookApi#handleCopyNotebook"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -185,49 +182,48 @@ public class Example { Upload a notebook at the specified location ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import NotebookApi; +import io.tiledb.cloud.rest_api.NotebookApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - NotebookApi apiInstance = new NotebookApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace of the notebook - File inputFile = new File("/path/to/file"); // File | the notebook to upload - String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME = "X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME_example"; // String | Optional registered access credentials to use for creation - String outputUri = "outputUri_example"; // String | output location of the TileDB File - String name = "name_example"; // String | name to set for registered file - try { - FileUploaded result = apiInstance.handleUploadNotebook(namespace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling NotebookApi#handleUploadNotebook"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + NotebookApi apiInstance = new NotebookApi(defaultClient); + String namespace = "namespace_example"; // String | The namespace of the notebook + File inputFile = new File("/path/to/file"); // File | the notebook to upload + String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME = "X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME_example"; // String | Optional registered access credentials to use for creation + String outputUri = "outputUri_example"; // String | output location of the TileDB File + String name = "name_example"; // String | name to set for registered file + try { + FileUploaded result = apiInstance.handleUploadNotebook(namespace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NotebookApi#handleUploadNotebook"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -270,44 +266,43 @@ public class Example { Shutdown a notebook server ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import NotebookApi; +import io.tiledb.cloud.rest_api.NotebookApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - NotebookApi apiInstance = new NotebookApi(defaultClient); - String namespace = "namespace_example"; // String | namespace notebook is in (an organization name or user's username) - try { - apiInstance.shutdownNotebookServer(namespace); - } catch (ApiException e) { - System.err.println("Exception when calling NotebookApi#shutdownNotebookServer"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + NotebookApi apiInstance = new NotebookApi(defaultClient); + String namespace = "namespace_example"; // String | namespace notebook is in (an organization name or user's username) + try { + apiInstance.shutdownNotebookServer(namespace); + } catch (ApiException e) { + System.err.println("Exception when calling NotebookApi#shutdownNotebookServer"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -347,46 +342,45 @@ null (empty response body) update name on a notebok, moving related S3 object to new location ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import NotebookApi; +import io.tiledb.cloud.rest_api.NotebookApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - NotebookApi apiInstance = new NotebookApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of notebook (array) that is url-encoded - ArrayInfoUpdate notebookMetadata = new ArrayInfoUpdate(); // ArrayInfoUpdate | notebook (array) metadata to update - try { - apiInstance.updateNotebookName(namespace, array, notebookMetadata); - } catch (ApiException e) { - System.err.println("Exception when calling NotebookApi#updateNotebookName"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + NotebookApi apiInstance = new NotebookApi(defaultClient); + String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String array = "array_example"; // String | name/uri of notebook (array) that is url-encoded + ArrayInfoUpdate notebookMetadata = new ArrayInfoUpdate(); // ArrayInfoUpdate | notebook (array) metadata to update + try { + apiInstance.updateNotebookName(namespace, array, notebookMetadata); + } catch (ApiException e) { + System.err.println("Exception when calling NotebookApi#updateNotebookName"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` diff --git a/docs/NotebookStatus.md b/docs/NotebookStatus.md index f3cb5c6..2e04310 100644 --- a/docs/NotebookStatus.md +++ b/docs/NotebookStatus.md @@ -19,6 +19,7 @@ Status details of a notebook server |**storageLimit** | **Integer** | storage allocated to notebook server in bytes | [optional] | |**cpuCount** | **Integer** | millicpu allocated to notebook server | [optional] | |**cost** | **Double** | cost in USD for the current notebook session | [optional] | +|**podStatus** | **PodStatus** | | [optional] | diff --git a/docs/NotebooksApi.md b/docs/NotebooksApi.md index 6f95800..a2b334d 100644 --- a/docs/NotebooksApi.md +++ b/docs/NotebooksApi.md @@ -17,48 +17,47 @@ All URIs are relative to */v1* retrieve a list of timestamps from the array fragment info listing in milliseconds, paginated ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import NotebooksApi; +import io.tiledb.cloud.rest_api.NotebooksApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - NotebooksApi apiInstance = new NotebooksApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - Integer page = 56; // Integer | pagination offset - Integer perPage = 56; // Integer | pagination limit - try { - ArrayEndTimestampData result = apiInstance.notebooksNamespaceArrayEndTimestampsGet(namespace, array, page, perPage); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling NotebooksApi#notebooksNamespaceArrayEndTimestampsGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + NotebooksApi apiInstance = new NotebooksApi(defaultClient); + String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String array = "array_example"; // String | name/uri of array that is url-encoded + Integer page = 56; // Integer | pagination offset + Integer perPage = 56; // Integer | pagination limit + try { + ArrayEndTimestampData result = apiInstance.notebooksNamespaceArrayEndTimestampsGet(namespace, array, page, perPage); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NotebooksApi#notebooksNamespaceArrayEndTimestampsGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -100,46 +99,45 @@ public class Example { prune fragments of the notebook ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import NotebooksApi; +import io.tiledb.cloud.rest_api.NotebooksApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - NotebooksApi apiInstance = new NotebooksApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - Integer keepVersions = 56; // Integer | The number of most recents fragment to preserve - try { - apiInstance.notebooksNamespaceArrayPrunePost(namespace, array, keepVersions); - } catch (ApiException e) { - System.err.println("Exception when calling NotebooksApi#notebooksNamespaceArrayPrunePost"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + NotebooksApi apiInstance = new NotebooksApi(defaultClient); + String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String array = "array_example"; // String | name/uri of array that is url-encoded + Integer keepVersions = 56; // Integer | The number of most recents fragment to preserve + try { + apiInstance.notebooksNamespaceArrayPrunePost(namespace, array, keepVersions); + } catch (ApiException e) { + System.err.println("Exception when calling NotebooksApi#notebooksNamespaceArrayPrunePost"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` diff --git a/docs/Organization.md b/docs/Organization.md index 901c033..4a6a131 100644 --- a/docs/Organization.md +++ b/docs/Organization.md @@ -24,6 +24,7 @@ Organization |**defaultS3PathCredentialsName** | **String** | The name of the credentials used to create and access files in the `default_s3_path`, if needed. | [optional] | |**assetLocations** | [**AssetLocations**](AssetLocations.md) | | [optional] | |**stripeConnect** | **Boolean** | Denotes that the organization is able to apply pricing to arrays by means of Stripe Connect | [optional] [readonly] | +|**assumeRoleArn** | **String** | A AWS Role that will be first assumed before assuming the organization's AWS Role. Visible to owners and admins. | [optional] | diff --git a/docs/OrganizationApi.md b/docs/OrganizationApi.md index f5ac53b..9ed8a39 100644 --- a/docs/OrganizationApi.md +++ b/docs/OrganizationApi.md @@ -35,45 +35,44 @@ All URIs are relative to */v1* Add aws keys ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import OrganizationApi; +import io.tiledb.cloud.rest_api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - String namespace = "namespace_example"; // String | namespace - AWSAccessCredentials awsAccessCredentials = new AWSAccessCredentials(); // AWSAccessCredentials | aws access credentials to store for a namespace - try { - apiInstance.addAWSAccessCredentials(namespace, awsAccessCredentials); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#addAWSAccessCredentials"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + String namespace = "namespace_example"; // String | namespace + AWSAccessCredentials awsAccessCredentials = new AWSAccessCredentials(); // AWSAccessCredentials | aws access credentials to store for a namespace + try { + apiInstance.addAWSAccessCredentials(namespace, awsAccessCredentials); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#addAWSAccessCredentials"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -113,45 +112,44 @@ null (empty response body) add a user to an organization ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import OrganizationApi; +import io.tiledb.cloud.rest_api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - String organization = "organization_example"; // String | organization name - OrganizationUser user = new OrganizationUser(); // OrganizationUser | user to add - try { - apiInstance.addUserToOrganization(organization, user); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#addUserToOrganization"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + String organization = "organization_example"; // String | organization name + OrganizationUser user = new OrganizationUser(); // OrganizationUser | user to add + try { + apiInstance.addUserToOrganization(organization, user); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#addUserToOrganization"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -191,45 +189,44 @@ null (empty response body) Check if aws keys are set ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import OrganizationApi; +import io.tiledb.cloud.rest_api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - String namespace = "namespace_example"; // String | namespace - try { - List result = apiInstance.checkAWSAccessCredentials(namespace); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#checkAWSAccessCredentials"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + String namespace = "namespace_example"; // String | namespace + try { + List result = apiInstance.checkAWSAccessCredentials(namespace); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#checkAWSAccessCredentials"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -268,46 +265,45 @@ public class Example { Check if aws keys are set by name ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import OrganizationApi; +import io.tiledb.cloud.rest_api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - String namespace = "namespace_example"; // String | namespace - String name = "name_example"; // String | name - try { - AWSAccessCredentials result = apiInstance.checkAWSAccessCredentialsByName(namespace, name); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#checkAWSAccessCredentialsByName"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + String namespace = "namespace_example"; // String | namespace + String name = "name_example"; // String | name + try { + AWSAccessCredentials result = apiInstance.checkAWSAccessCredentialsByName(namespace, name); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#checkAWSAccessCredentialsByName"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -347,46 +343,45 @@ public class Example { Immediately verify ownership of the specified SSO domain ownership claim. ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import OrganizationApi; +import io.tiledb.cloud.rest_api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - String organization = "organization_example"; // String | organization name - String uuid = "uuid_example"; // String | configuration ID - try { - DomainCheckResult result = apiInstance.checkSSODomain(organization, uuid); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#checkSSODomain"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + String organization = "organization_example"; // String | organization name + String uuid = "uuid_example"; // String | configuration ID + try { + DomainCheckResult result = apiInstance.checkSSODomain(organization, uuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#checkSSODomain"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -425,44 +420,43 @@ public class Example { create a organization, the user creating will be listed as owner ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import OrganizationApi; +import io.tiledb.cloud.rest_api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - Organization organization = new Organization(); // Organization | organization to create - try { - apiInstance.createOrganization(organization); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#createOrganization"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + Organization organization = new Organization(); // Organization | organization to create + try { + apiInstance.createOrganization(organization); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#createOrganization"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -501,46 +495,45 @@ null (empty response body) Create a new SSO connection that connects this organization to this domain. ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import OrganizationApi; +import io.tiledb.cloud.rest_api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - String organization = "organization_example"; // String | organization name - SSODomainConfig config = new SSODomainConfig(); // SSODomainConfig | The SSO connection to create. - try { - SSODomainConfig result = apiInstance.createSSODomain(organization, config); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#createSSODomain"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + String organization = "organization_example"; // String | organization name + SSODomainConfig config = new SSODomainConfig(); // SSODomainConfig | The SSO connection to create. + try { + SSODomainConfig result = apiInstance.createSSODomain(organization, config); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#createSSODomain"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -579,45 +572,44 @@ public class Example { delete a AWS Access credentials in a namespace. This will likely cause arrays to become unreachable ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import OrganizationApi; +import io.tiledb.cloud.rest_api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - String namespace = "namespace_example"; // String | namespace - String name = "name_example"; // String | name - try { - apiInstance.deleteAWSAccessCredentials(namespace, name); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#deleteAWSAccessCredentials"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + String namespace = "namespace_example"; // String | namespace + String name = "name_example"; // String | name + try { + apiInstance.deleteAWSAccessCredentials(namespace, name); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#deleteAWSAccessCredentials"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -657,44 +649,43 @@ null (empty response body) delete a organization ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import OrganizationApi; +import io.tiledb.cloud.rest_api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - String organization = "organization_example"; // String | organization name or ID - try { - apiInstance.deleteOrganization(organization); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#deleteOrganization"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + String organization = "organization_example"; // String | organization name or ID + try { + apiInstance.deleteOrganization(organization); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#deleteOrganization"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -733,45 +724,44 @@ null (empty response body) Deletes the configuration for the given SSO connection. ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import OrganizationApi; +import io.tiledb.cloud.rest_api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - String organization = "organization_example"; // String | organization name - String uuid = "uuid_example"; // String | configuration ID - try { - apiInstance.deleteSSODomain(organization, uuid); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#deleteSSODomain"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + String organization = "organization_example"; // String | organization name + String uuid = "uuid_example"; // String | configuration ID + try { + apiInstance.deleteSSODomain(organization, uuid); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#deleteSSODomain"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -810,45 +800,44 @@ null (empty response body) delete a user from an organization ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import OrganizationApi; +import io.tiledb.cloud.rest_api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - String organization = "organization_example"; // String | organization name - String username = "username_example"; // String | username to manipulate - try { - apiInstance.deleteUserFromOrganization(organization, username); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#deleteUserFromOrganization"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + String organization = "organization_example"; // String | organization name + String username = "username_example"; // String | username to manipulate + try { + apiInstance.deleteUserFromOrganization(organization, username); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#deleteUserFromOrganization"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -888,44 +877,43 @@ null (empty response body) get all organizations that the user is member of ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import OrganizationApi; +import io.tiledb.cloud.rest_api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - try { - List result = apiInstance.getAllOrganizations(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#getAllOrganizations"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + try { + List result = apiInstance.getAllOrganizations(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#getAllOrganizations"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -963,45 +951,44 @@ This endpoint does not need any parameter. get a organization ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import OrganizationApi; +import io.tiledb.cloud.rest_api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - String organization = "organization_example"; // String | organization name or ID - try { - Organization result = apiInstance.getOrganization(organization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#getOrganization"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + String organization = "organization_example"; // String | organization name or ID + try { + Organization result = apiInstance.getOrganization(organization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#getOrganization"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1041,46 +1028,45 @@ public class Example { get a user from an organization ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import OrganizationApi; +import io.tiledb.cloud.rest_api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - String organization = "organization_example"; // String | organization name - String username = "username_example"; // String | username to manipulate - try { - OrganizationUser result = apiInstance.getOrganizationUser(organization, username); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#getOrganizationUser"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + String organization = "organization_example"; // String | organization name + String username = "username_example"; // String | username to manipulate + try { + OrganizationUser result = apiInstance.getOrganizationUser(organization, username); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#getOrganizationUser"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1121,46 +1107,45 @@ public class Example { Gets details about the given SSO domain connection. ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import OrganizationApi; +import io.tiledb.cloud.rest_api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - String organization = "organization_example"; // String | organization name - String uuid = "uuid_example"; // String | configuration ID - try { - SSODomainConfig result = apiInstance.getSSODomain(organization, uuid); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#getSSODomain"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + String organization = "organization_example"; // String | organization name + String uuid = "uuid_example"; // String | configuration ID + try { + SSODomainConfig result = apiInstance.getSSODomain(organization, uuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#getSSODomain"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1199,45 +1184,44 @@ public class Example { Lists all the SSO connections associated with the given organization. ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import OrganizationApi; +import io.tiledb.cloud.rest_api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - String organization = "organization_example"; // String | organization name - try { - SSODomainConfigResponse result = apiInstance.getSSODomains(organization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#getSSODomains"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + String organization = "organization_example"; // String | organization name + try { + SSODomainConfigResponse result = apiInstance.getSSODomains(organization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#getSSODomains"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1275,46 +1259,45 @@ public class Example { Update aws keys or associated buckets. This will update the key associations for each array in the namespace ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import OrganizationApi; +import io.tiledb.cloud.rest_api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - String namespace = "namespace_example"; // String | namespace - String name = "name_example"; // String | name - AWSAccessCredentials awsAccessCredentials = new AWSAccessCredentials(); // AWSAccessCredentials | aws credentials to update - try { - apiInstance.updateAWSAccessCredentials(namespace, name, awsAccessCredentials); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#updateAWSAccessCredentials"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + String namespace = "namespace_example"; // String | namespace + String name = "name_example"; // String | name + AWSAccessCredentials awsAccessCredentials = new AWSAccessCredentials(); // AWSAccessCredentials | aws credentials to update + try { + apiInstance.updateAWSAccessCredentials(namespace, name, awsAccessCredentials); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#updateAWSAccessCredentials"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1355,45 +1338,44 @@ null (empty response body) update a organization ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import OrganizationApi; +import io.tiledb.cloud.rest_api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - String organization = "organization_example"; // String | organization name or ID - Organization organizationDetails = new Organization(); // Organization | organization details to update - try { - apiInstance.updateOrganization(organization, organizationDetails); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#updateOrganization"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + String organization = "organization_example"; // String | organization name or ID + OrganizationUpdate organizationDetails = new OrganizationUpdate(); // OrganizationUpdate | organization details to update + try { + apiInstance.updateOrganization(organization, organizationDetails); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#updateOrganization"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1402,7 +1384,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **organization** | **String**| organization name or ID | | -| **organizationDetails** | [**Organization**](Organization.md)| organization details to update | | +| **organizationDetails** | [**OrganizationUpdate**](OrganizationUpdate.md)| organization details to update | | ### Return type @@ -1433,47 +1415,46 @@ null (empty response body) Updates the configuration for the given SSO connection. ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import OrganizationApi; +import io.tiledb.cloud.rest_api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - String organization = "organization_example"; // String | organization name - String uuid = "uuid_example"; // String | configuration ID - SSODomainConfig config = new SSODomainConfig(); // SSODomainConfig | The changes to make to the configuration. - try { - SSODomainConfig result = apiInstance.updateSSODomain(organization, uuid, config); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#updateSSODomain"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + String organization = "organization_example"; // String | organization name + String uuid = "uuid_example"; // String | configuration ID + SSODomainConfig config = new SSODomainConfig(); // SSODomainConfig | The changes to make to the configuration. + try { + SSODomainConfig result = apiInstance.updateSSODomain(organization, uuid, config); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#updateSSODomain"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1513,46 +1494,45 @@ public class Example { update a user in an organization ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import OrganizationApi; +import io.tiledb.cloud.rest_api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - String organization = "organization_example"; // String | organization name - String username = "username_example"; // String | username to manipulate - OrganizationUser user = new OrganizationUser(); // OrganizationUser | user details to update - try { - apiInstance.updateUserInOrganization(organization, username, user); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#updateUserInOrganization"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + String organization = "organization_example"; // String | organization name + String username = "username_example"; // String | username to manipulate + OrganizationUser user = new OrganizationUser(); // OrganizationUser | user details to update + try { + apiInstance.updateUserInOrganization(organization, username, user); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#updateUserInOrganization"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` diff --git a/docs/OrganizationRoles.md b/docs/OrganizationRoles.md index 764cc4a..e0c6f08 100644 --- a/docs/OrganizationRoles.md +++ b/docs/OrganizationRoles.md @@ -9,6 +9,8 @@ * `ADMIN` (value: `"admin"`) +* `READ_WRITE_DELETE` (value: `"read_write_delete"`) + * `READ_WRITE` (value: `"read_write"`) * `READ_ONLY` (value: `"read_only"`) diff --git a/docs/OrganizationUpdate.md b/docs/OrganizationUpdate.md new file mode 100644 index 0000000..3917dbf --- /dev/null +++ b/docs/OrganizationUpdate.md @@ -0,0 +1,19 @@ + + +# OrganizationUpdate + +OrganizationUpdate + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | organization name must be unique | [optional] | +|**logo** | **String** | Organization logo | [optional] | +|**description** | **String** | Organization description | [optional] | +|**defaultS3Path** | **String** | The default location to store newly-created notebooks and other assets like UDFs. The name `default_s3_path` is a legacy holdover; it may refer to any supported storage location. | [optional] | +|**defaultS3PathCredentialsName** | **String** | The name of the credentials used to create and access files in the `default_s3_path`, if needed. | [optional] | +|**assetLocations** | [**AssetLocations**](AssetLocations.md) | | [optional] | + + + diff --git a/docs/OrganizationUser.md b/docs/OrganizationUser.md index e0d2752..aeeb1c9 100644 --- a/docs/OrganizationUser.md +++ b/docs/OrganizationUser.md @@ -11,6 +11,8 @@ user in an organization |**userId** | **String** | unique ID of user | [optional] | |**organizationId** | **String** | unique ID of organization | [optional] | |**username** | **String** | username for user | [optional] | +|**userFullName** | **String** | full name of the user; available to organization admins | [optional] | +|**userEmail** | **String** | email address of the user; available to organization admins | [optional] | |**organizationName** | **String** | name of organization | [optional] | |**role** | **OrganizationRoles** | | [optional] | |**allowedActions** | **List<NamespaceActions>** | list of actions user is allowed to do on this organization | [optional] | diff --git a/docs/PodStatus.md b/docs/PodStatus.md new file mode 100644 index 0000000..d5482b9 --- /dev/null +++ b/docs/PodStatus.md @@ -0,0 +1,15 @@ + + +# PodStatus + +## Enum + + +* `TERMINATING` (value: `"TERMINATING"`) + +* `RUNNING` (value: `"RUNNING"`) + +* `LAUNCHING` (value: `"LAUNCHING"`) + + + diff --git a/docs/QueryApi.md b/docs/QueryApi.md index eeee7c0..89c97e2 100644 --- a/docs/QueryApi.md +++ b/docs/QueryApi.md @@ -20,51 +20,50 @@ All URIs are relative to */v1* send a query to run against a specified array/URI registered to a group/project ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import QueryApi; +import io.tiledb.cloud.rest_api.QueryApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - QueryApi apiInstance = new QueryApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - String type = "type_example"; // String | type of query - String contentType = "application/json"; // String | Content Type of input and return mime - Query query = new Query(); // Query | query to run - String xPayer = "xPayer_example"; // String | Name of organization or user who should be charged for this request - Integer openAt = 56; // Integer | open_at for array in unix epoch - try { - Query result = apiInstance.finalizeQuery(namespace, array, type, contentType, query, xPayer, openAt); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling QueryApi#finalizeQuery"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + QueryApi apiInstance = new QueryApi(defaultClient); + String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String array = "array_example"; // String | name/uri of array that is url-encoded + String type = "type_example"; // String | type of query + String contentType = "application/json"; // String | Content Type of input and return mime + Query query = new Query(); // Query | query to run + String xPayer = "xPayer_example"; // String | Name of organization or user who should be charged for this request + Integer openAt = 56; // Integer | open_at for array in unix epoch + try { + Query result = apiInstance.finalizeQuery(namespace, array, type, contentType, query, xPayer, openAt); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling QueryApi#finalizeQuery"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -110,51 +109,50 @@ public class Example { send a query to run against a specified array/URI registered to a group/project ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import QueryApi; +import io.tiledb.cloud.rest_api.QueryApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - QueryApi apiInstance = new QueryApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - String type = "type_example"; // String | type of query - String contentType = "application/json"; // String | Content Type of input and return mime - Query query = new Query(); // Query | query to run - String xPayer = "xPayer_example"; // String | Name of organization or user who should be charged for this request - Integer openAt = 56; // Integer | open_at for array in unix epoch - try { - Query result = apiInstance.getEstResultSizes(namespace, array, type, contentType, query, xPayer, openAt); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling QueryApi#getEstResultSizes"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + QueryApi apiInstance = new QueryApi(defaultClient); + String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String array = "array_example"; // String | name/uri of array that is url-encoded + String type = "type_example"; // String | type of query + String contentType = "application/json"; // String | Content Type of input and return mime + Query query = new Query(); // Query | query to run + String xPayer = "xPayer_example"; // String | Name of organization or user who should be charged for this request + Integer openAt = 56; // Integer | open_at for array in unix epoch + try { + Query result = apiInstance.getEstResultSizes(namespace, array, type, contentType, query, xPayer, openAt); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling QueryApi#getEstResultSizes"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -200,48 +198,47 @@ public class Example { send a query to run against a specified array/URI registered to a group/project, returns file bytes ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import QueryApi; +import io.tiledb.cloud.rest_api.QueryApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - QueryApi apiInstance = new QueryApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - String contentType = "application/json"; // String | Content Type of input and return mime - String xPayer = "xPayer_example"; // String | Name of organization or user who should be charged for this request - try { - File result = apiInstance.getFile(namespace, array, contentType, xPayer); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling QueryApi#getFile"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + QueryApi apiInstance = new QueryApi(defaultClient); + String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String array = "array_example"; // String | name/uri of array that is url-encoded + String contentType = "application/json"; // String | Content Type of input and return mime + String xPayer = "xPayer_example"; // String | Name of organization or user who should be charged for this request + try { + File result = apiInstance.getFile(namespace, array, contentType, xPayer); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling QueryApi#getFile"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -283,51 +280,50 @@ public class Example { send a query to run against a specified array/URI registered to a group/project ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import QueryApi; +import io.tiledb.cloud.rest_api.QueryApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - QueryApi apiInstance = new QueryApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - String type = "type_example"; // String | type of query - String contentType = "application/json"; // String | Content Type of input and return mime - Query query = new Query(); // Query | query to run - String xPayer = "xPayer_example"; // String | Name of organization or user who should be charged for this request - Integer openAt = 56; // Integer | open_at for array in unix epoch - try { - Query result = apiInstance.submitQuery(namespace, array, type, contentType, query, xPayer, openAt); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling QueryApi#submitQuery"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + QueryApi apiInstance = new QueryApi(defaultClient); + String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String array = "array_example"; // String | name/uri of array that is url-encoded + String type = "type_example"; // String | type of query + String contentType = "application/json"; // String | Content Type of input and return mime + Query query = new Query(); // Query | query to run + String xPayer = "xPayer_example"; // String | Name of organization or user who should be charged for this request + Integer openAt = 56; // Integer | open_at for array in unix epoch + try { + Query result = apiInstance.submitQuery(namespace, array, type, contentType, query, xPayer, openAt); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling QueryApi#submitQuery"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -373,49 +369,48 @@ public class Example { send a query to run against a specified array/URI registered to a group/project, returns JSON results ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import QueryApi; +import io.tiledb.cloud.rest_api.QueryApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - QueryApi apiInstance = new QueryApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - String contentType = "application/json"; // String | Content Type of input and return mime - QueryJson queryJson = new QueryJson(); // QueryJson | query to run - String xPayer = "xPayer_example"; // String | Name of organization or user who should be charged for this request - try { - Object result = apiInstance.submitQueryJson(namespace, array, contentType, queryJson, xPayer); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling QueryApi#submitQueryJson"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + QueryApi apiInstance = new QueryApi(defaultClient); + String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String array = "array_example"; // String | name/uri of array that is url-encoded + String contentType = "application/json"; // String | Content Type of input and return mime + QueryJson queryJson = new QueryJson(); // QueryJson | query to run + String xPayer = "xPayer_example"; // String | Name of organization or user who should be charged for this request + try { + Object result = apiInstance.submitQueryJson(namespace, array, contentType, queryJson, xPayer); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling QueryApi#submitQueryJson"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` diff --git a/docs/RegisteredTaskGraphsApi.md b/docs/RegisteredTaskGraphsApi.md index e0a5e49..2d07c30 100644 --- a/docs/RegisteredTaskGraphsApi.md +++ b/docs/RegisteredTaskGraphsApi.md @@ -21,45 +21,44 @@ All URIs are relative to */v1* Delete the given registered task graph. ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import RegisteredTaskGraphsApi; +import io.tiledb.cloud.rest_api.RegisteredTaskGraphsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - RegisteredTaskGraphsApi apiInstance = new RegisteredTaskGraphsApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace that owns this registered UDF. - String name = "name_example"; // String | The name of the registered task graph. - try { - apiInstance.deleteRegisteredTaskGraph(namespace, name); - } catch (ApiException e) { - System.err.println("Exception when calling RegisteredTaskGraphsApi#deleteRegisteredTaskGraph"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + RegisteredTaskGraphsApi apiInstance = new RegisteredTaskGraphsApi(defaultClient); + String namespace = "namespace_example"; // String | The namespace that owns this registered UDF. + String name = "name_example"; // String | The name of the registered task graph. + try { + apiInstance.deleteRegisteredTaskGraph(namespace, name); + } catch (ApiException e) { + System.err.println("Exception when calling RegisteredTaskGraphsApi#deleteRegisteredTaskGraph"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -99,46 +98,45 @@ null (empty response body) Fetch the contents of this registered task graph. ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import RegisteredTaskGraphsApi; +import io.tiledb.cloud.rest_api.RegisteredTaskGraphsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - RegisteredTaskGraphsApi apiInstance = new RegisteredTaskGraphsApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace that owns this registered UDF. - String name = "name_example"; // String | The name of the registered task graph. - try { - RegisteredTaskGraph result = apiInstance.getRegisteredTaskGraph(namespace, name); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling RegisteredTaskGraphsApi#getRegisteredTaskGraph"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + RegisteredTaskGraphsApi apiInstance = new RegisteredTaskGraphsApi(defaultClient); + String namespace = "namespace_example"; // String | The namespace that owns this registered UDF. + String name = "name_example"; // String | The name of the registered task graph. + try { + RegisteredTaskGraph result = apiInstance.getRegisteredTaskGraph(namespace, name); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RegisteredTaskGraphsApi#getRegisteredTaskGraph"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -178,46 +176,45 @@ public class Example { Get sharing policies for the task graph. ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import RegisteredTaskGraphsApi; +import io.tiledb.cloud.rest_api.RegisteredTaskGraphsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - RegisteredTaskGraphsApi apiInstance = new RegisteredTaskGraphsApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace that owns the registered task graph. - String name = "name_example"; // String | The name of the task graph. - try { - List result = apiInstance.getRegisteredTaskGraphSharingPolicies(namespace, name); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling RegisteredTaskGraphsApi#getRegisteredTaskGraphSharingPolicies"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + RegisteredTaskGraphsApi apiInstance = new RegisteredTaskGraphsApi(defaultClient); + String namespace = "namespace_example"; // String | The namespace that owns the registered task graph. + String name = "name_example"; // String | The name of the task graph. + try { + List result = apiInstance.getRegisteredTaskGraphSharingPolicies(namespace, name); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RegisteredTaskGraphsApi#getRegisteredTaskGraphSharingPolicies"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -258,46 +255,45 @@ public class Example { Register a task graph in the given namespace, with the given name. ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import RegisteredTaskGraphsApi; +import io.tiledb.cloud.rest_api.RegisteredTaskGraphsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - RegisteredTaskGraphsApi apiInstance = new RegisteredTaskGraphsApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace that owns this registered UDF. - String name = "name_example"; // String | The name of the registered task graph. - RegisteredTaskGraph graph = new RegisteredTaskGraph(); // RegisteredTaskGraph | Task graph to register. - try { - apiInstance.registerRegisteredTaskGraph(namespace, name, graph); - } catch (ApiException e) { - System.err.println("Exception when calling RegisteredTaskGraphsApi#registerRegisteredTaskGraph"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + RegisteredTaskGraphsApi apiInstance = new RegisteredTaskGraphsApi(defaultClient); + String namespace = "namespace_example"; // String | The namespace that owns this registered UDF. + String name = "name_example"; // String | The name of the registered task graph. + RegisteredTaskGraph graph = new RegisteredTaskGraph(); // RegisteredTaskGraph | Task graph to register. + try { + apiInstance.registerRegisteredTaskGraph(namespace, name, graph); + } catch (ApiException e) { + System.err.println("Exception when calling RegisteredTaskGraphsApi#registerRegisteredTaskGraph"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -338,46 +334,45 @@ null (empty response body) Share a task graph. ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import RegisteredTaskGraphsApi; +import io.tiledb.cloud.rest_api.RegisteredTaskGraphsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - RegisteredTaskGraphsApi apiInstance = new RegisteredTaskGraphsApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace that owns the registered task graph. - String name = "name_example"; // String | The name of the task graph. - TaskGraphSharing taskGraphSharing = new TaskGraphSharing(); // TaskGraphSharing | Namespace and list of permissions to share with. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the UDF will not be shared with the namespace at all. - try { - apiInstance.shareRegisteredTaskGraph(namespace, name, taskGraphSharing); - } catch (ApiException e) { - System.err.println("Exception when calling RegisteredTaskGraphsApi#shareRegisteredTaskGraph"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + RegisteredTaskGraphsApi apiInstance = new RegisteredTaskGraphsApi(defaultClient); + String namespace = "namespace_example"; // String | The namespace that owns the registered task graph. + String name = "name_example"; // String | The name of the task graph. + TaskGraphSharing taskGraphSharing = new TaskGraphSharing(); // TaskGraphSharing | Namespace and list of permissions to share with. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the UDF will not be shared with the namespace at all. + try { + apiInstance.shareRegisteredTaskGraph(namespace, name, taskGraphSharing); + } catch (ApiException e) { + System.err.println("Exception when calling RegisteredTaskGraphsApi#shareRegisteredTaskGraph"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -419,46 +414,45 @@ null (empty response body) Update the contents of an existing registered task graph. ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import RegisteredTaskGraphsApi; +import io.tiledb.cloud.rest_api.RegisteredTaskGraphsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - RegisteredTaskGraphsApi apiInstance = new RegisteredTaskGraphsApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace that owns this registered UDF. - String name = "name_example"; // String | The name of the registered task graph. - RegisteredTaskGraph graph = new RegisteredTaskGraph(); // RegisteredTaskGraph | The new contents of the task graph. - try { - apiInstance.updateRegisteredTaskGraph(namespace, name, graph); - } catch (ApiException e) { - System.err.println("Exception when calling RegisteredTaskGraphsApi#updateRegisteredTaskGraph"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + RegisteredTaskGraphsApi apiInstance = new RegisteredTaskGraphsApi(defaultClient); + String namespace = "namespace_example"; // String | The namespace that owns this registered UDF. + String name = "name_example"; // String | The name of the registered task graph. + RegisteredTaskGraph graph = new RegisteredTaskGraph(); // RegisteredTaskGraph | The new contents of the task graph. + try { + apiInstance.updateRegisteredTaskGraph(namespace, name, graph); + } catch (ApiException e) { + System.err.println("Exception when calling RegisteredTaskGraphsApi#updateRegisteredTaskGraph"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` diff --git a/docs/SSOProvider.md b/docs/SSOProvider.md index f58ce0e..0b01c08 100644 --- a/docs/SSOProvider.md +++ b/docs/SSOProvider.md @@ -13,5 +13,9 @@ * `OKTA` (value: `"okta"`) +* `PERDOMAIN` (value: `"perdomain"`) + +* `SCIM` (value: `"scim"`) + diff --git a/docs/SharePaymentRequest.md b/docs/SharePaymentRequest.md new file mode 100644 index 0000000..742cb76 --- /dev/null +++ b/docs/SharePaymentRequest.md @@ -0,0 +1,13 @@ + + +# SharePaymentRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**namespaces** | **List<String>** | | [optional] | + + + diff --git a/docs/SqlApi.md b/docs/SqlApi.md index c4834b5..5108a1f 100644 --- a/docs/SqlApi.md +++ b/docs/SqlApi.md @@ -16,47 +16,46 @@ All URIs are relative to */v1* Run a sql query ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import SqlApi; +import io.tiledb.cloud.rest_api.SqlApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - SqlApi apiInstance = new SqlApi(defaultClient); - String namespace = "namespace_example"; // String | namespace to run task under is in (an organization name or user's username) - SQLParameters sql = new SQLParameters(); // SQLParameters | sql being submitted - String acceptEncoding = "acceptEncoding_example"; // String | Encoding to use - try { - List result = apiInstance.runSQL(namespace, sql, acceptEncoding); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling SqlApi#runSQL"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + SqlApi apiInstance = new SqlApi(defaultClient); + String namespace = "namespace_example"; // String | namespace to run task under is in (an organization name or user's username) + SQLParameters sql = new SQLParameters(); // SQLParameters | sql being submitted + String acceptEncoding = "acceptEncoding_example"; // String | Encoding to use + try { + List result = apiInstance.runSQL(namespace, sql, acceptEncoding); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SqlApi#runSQL"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` diff --git a/docs/StatsApi.md b/docs/StatsApi.md index 6173796..3975c0f 100644 --- a/docs/StatsApi.md +++ b/docs/StatsApi.md @@ -16,44 +16,43 @@ All URIs are relative to */v1* Fetch libtiledb stat ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import StatsApi; +import io.tiledb.cloud.rest_api.StatsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - StatsApi apiInstance = new StatsApi(defaultClient); - try { - GetTiledbStats200Response result = apiInstance.getTiledbStats(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling StatsApi#getTiledbStats"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + StatsApi apiInstance = new StatsApi(defaultClient); + try { + GetTiledbStats200Response result = apiInstance.getTiledbStats(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StatsApi#getTiledbStats"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` diff --git a/docs/TGUDFEnvironment.md b/docs/TGUDFEnvironment.md index 3556c33..b641109 100644 --- a/docs/TGUDFEnvironment.md +++ b/docs/TGUDFEnvironment.md @@ -17,6 +17,7 @@ Metadata about the environment where we want to execute a UDF. |**resources** | [**TGUDFEnvironmentResources**](TGUDFEnvironmentResources.md) | | [optional] | |**runClientSide** | **Boolean** | A hint that, if possible, this function should be executed on the client side rather than on the server. Registered UDFs and functions which take arrays as inputs can never be executed client-side. If the client’s environment is incompatible, or the client does not support client-side execution, the function will be executed on the server. | [optional] | |**timeout** | **BigDecimal** | The maximum length of time this UDF is allowed to execute for before it is killed and fails. If not present (or zero), the function is allowed to run indefinitely (subject to the server’s global limits). | [optional] | +|**storage** | [**List<TGUDFStorage>**](TGUDFStorage.md) | Storage options for mounting persistent volumes. | [optional] | diff --git a/docs/TGUDFEnvironmentResources.md b/docs/TGUDFEnvironmentResources.md index 9cbe835..73f8a67 100644 --- a/docs/TGUDFEnvironmentResources.md +++ b/docs/TGUDFEnvironmentResources.md @@ -2,7 +2,7 @@ # TGUDFEnvironmentResources -The resources requested for this particular node. If resources are not specified resource_class is used, if it is not set the standard resource // defaults are used +The resources requested for this particular node. If resources are not specified resource_class is used, if it is not set the standard resource // defaults are used ## Properties diff --git a/docs/TGUDFStorage.md b/docs/TGUDFStorage.md new file mode 100644 index 0000000..539ca49 --- /dev/null +++ b/docs/TGUDFStorage.md @@ -0,0 +1,16 @@ + + +# TGUDFStorage + +Storage options for mounting persistent volumes. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**path** | **String** | Mount path for the attached volume. | [optional] | +|**size** | **String** | Storage size. | [optional] | +|**storageClass** | **String** | Storage class to use for creating the volume. | [optional] | + + + diff --git a/docs/TaskGraph.md b/docs/TaskGraph.md index 608c111..9ca4b04 100644 --- a/docs/TaskGraph.md +++ b/docs/TaskGraph.md @@ -13,10 +13,10 @@ Information about a task graph. |**createdBy** | **String** | The name of the user who created this task graph log. | [optional] [readonly] | |**name** | **String** | A name for this task graph, displayed in the UI. Does not need to be unique. | [optional] | |**createdAt** | **OffsetDateTime** | The date/time when this task graph was originally created. | [optional] [readonly] | -|**nodes** | [**List<TaskGraphNode>**](TaskGraphNode.md) | The structure of the graph. This is provided by the client when first setting up the task graph. This must be topographically sorted; that is, each node must appear after all nodes that it depends upon. | [optional] | +|**nodes** | [**List<TaskGraphNode>**](TaskGraphNode.md) | The structure of the graph. This is provided by the client when first setting up the task graph. This must be topographically sorted; that is, each node must appear after all nodes that it depends upon. | [optional] | |**parallelism** | **Long** | Parallelism limits the max total parallel pods that can execute at the same time in a workflow. | [optional] | |**retryStrategy** | [**RetryStrategy**](RetryStrategy.md) | | [optional] | -|**deadline** | **Long** | Duration in seconds relative to the workflow start time which the workflow is allowed to run before it gets terminated. | [optional] | +|**deadline** | **Long** | Duration in seconds relative to the workflow start time which the workflow is allowed to run before it gets terminated. Defaults to 24h when unset | [optional] | |**taskGraphType** | **TaskGraphType** | | [optional] | diff --git a/docs/TaskGraphLog.md b/docs/TaskGraphLog.md index 6862e8b..837a039 100644 --- a/docs/TaskGraphLog.md +++ b/docs/TaskGraphLog.md @@ -24,6 +24,10 @@ Logging information about the execution of a task graph. |**nodes** | [**List<TaskGraphNodeMetadata>**](TaskGraphNodeMetadata.md) | The structure of the graph. This is provided by the client when first setting up the task graph. Thereafter, it is read-only. This must be topographically sorted; that is, each node must appear after all nodes that it depends upon. | [optional] | |**taskGraphType** | **TaskGraphType** | | [optional] | |**taskGraphId** | **String** | The UUID of the task graph. | [optional] | +|**cloudProvider** | **String** | The name of the cloud provider where this task graph executed. | [optional] | +|**cloudRegion** | **String** | The region of the cloud provider where this task graph executed. | [optional] | +|**rootTaskGraphUuid** | **String** | The UUID of the root taskgraph that this taskgraph is related to. This is used to provide consistent tracking and UI view for graphs that are executed by a set of taskgraphs. | [optional] | +|**childrenTaskGraphUuids** | **List<String>** | If this is a root taskgraph, this contains the list of all its children taskgraph UUIDs. | [optional] | diff --git a/docs/TaskGraphLogsApi.md b/docs/TaskGraphLogsApi.md index 7b6f05e..139dbcf 100644 --- a/docs/TaskGraphLogsApi.md +++ b/docs/TaskGraphLogsApi.md @@ -24,46 +24,45 @@ All URIs are relative to */v1* Create a task graph log. ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import TaskGraphLogsApi; +import io.tiledb.cloud.rest_api.TaskGraphLogsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace that will own this task graph log. - TaskGraphLog log = new TaskGraphLog(); // TaskGraphLog | - try { - TaskGraphLog result = apiInstance.createTaskGraphLog(namespace, log); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling TaskGraphLogsApi#createTaskGraphLog"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); + String namespace = "namespace_example"; // String | The namespace that will own this task graph log. + TaskGraphLog log = new TaskGraphLog(); // TaskGraphLog | + try { + TaskGraphLog result = apiInstance.createTaskGraphLog(namespace, log); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling TaskGraphLogsApi#createTaskGraphLog"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -103,46 +102,45 @@ public class Example { Fetch information about a single task graph execution. ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import TaskGraphLogsApi; +import io.tiledb.cloud.rest_api.TaskGraphLogsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace that owns this task graph log. - String id = "id_example"; // String | The UUID of the task graph log entry. - try { - TaskGraphLog result = apiInstance.getTaskGraphLog(namespace, id); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling TaskGraphLogsApi#getTaskGraphLog"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); + String namespace = "namespace_example"; // String | The namespace that owns this task graph log. + String id = "id_example"; // String | The UUID of the task graph log entry. + try { + TaskGraphLog result = apiInstance.getTaskGraphLog(namespace, id); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling TaskGraphLogsApi#getTaskGraphLog"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -175,58 +173,58 @@ public class Example { # **listTaskGraphLogs** -> TaskGraphLogsData listTaskGraphLogs(namespace, createdBy, search, startTime, endTime, page, perPage) +> TaskGraphLogsData listTaskGraphLogs(namespace, createdBy, status, search, startTime, endTime, page, perPage) Fetch the task graph logs of a namespace the user has access to. The returned entries will include only summary data, and will not include information about the individual tasks that were executed. (This information is available when requesting an individual task graph log.) Entries in the response are ordered from newest to oldest. Pagination parameters work as in other API methods; see PaginationMetadata. ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import TaskGraphLogsApi; +import io.tiledb.cloud.rest_api.TaskGraphLogsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); - String namespace = "namespace_example"; // String | Include logs for this namespace. - String createdBy = "createdBy_example"; // String | Include logs from only this user. - String search = "search_example"; // String | search string that will look at name. - OffsetDateTime startTime = OffsetDateTime.now(); // OffsetDateTime | Include logs created after this time. - OffsetDateTime endTime = OffsetDateTime.now(); // OffsetDateTime | Include logs created before this time. - Integer page = 56; // Integer | pagination offset - Integer perPage = 56; // Integer | pagination limit - try { - TaskGraphLogsData result = apiInstance.listTaskGraphLogs(namespace, createdBy, search, startTime, endTime, page, perPage); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling TaskGraphLogsApi#listTaskGraphLogs"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); + String namespace = "namespace_example"; // String | Include logs for this namespace. + String createdBy = "createdBy_example"; // String | Include logs from only this user. + String status = "status_example"; // String | Filter to only return these statuses + String search = "search_example"; // String | search string that will look at name. + OffsetDateTime startTime = OffsetDateTime.now(); // OffsetDateTime | Include logs created after this time. + OffsetDateTime endTime = OffsetDateTime.now(); // OffsetDateTime | Include logs created before this time. + Integer page = 56; // Integer | pagination offset + Integer perPage = 56; // Integer | pagination limit + try { + TaskGraphLogsData result = apiInstance.listTaskGraphLogs(namespace, createdBy, status, search, startTime, endTime, page, perPage); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling TaskGraphLogsApi#listTaskGraphLogs"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -236,6 +234,7 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **namespace** | **String**| Include logs for this namespace. | [optional] | | **createdBy** | **String**| Include logs from only this user. | [optional] | +| **status** | **String**| Filter to only return these statuses | [optional] | | **search** | **String**| search string that will look at name. | [optional] | | **startTime** | **OffsetDateTime**| Include logs created after this time. | [optional] | | **endTime** | **OffsetDateTime**| Include logs created before this time. | [optional] | @@ -269,46 +268,45 @@ public class Example { ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import TaskGraphLogsApi; +import io.tiledb.cloud.rest_api.TaskGraphLogsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace that owns this task graph log. - String id = "id_example"; // String | The UUID of the task graph log entry. - TaskGraphClientNodeStatus report = new TaskGraphClientNodeStatus(); // TaskGraphClientNodeStatus | The node status to report. - try { - apiInstance.reportClientNode(namespace, id, report); - } catch (ApiException e) { - System.err.println("Exception when calling TaskGraphLogsApi#reportClientNode"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); + String namespace = "namespace_example"; // String | The namespace that owns this task graph log. + String id = "id_example"; // String | The UUID of the task graph log entry. + TaskGraphClientNodeStatus report = new TaskGraphClientNodeStatus(); // TaskGraphClientNodeStatus | The node status to report. + try { + apiInstance.reportClientNode(namespace, id, report); + } catch (ApiException e) { + System.err.println("Exception when calling TaskGraphLogsApi#reportClientNode"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -349,46 +347,45 @@ null (empty response body) Resubmits a task graph in the given namespace using the associated execution id. ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import TaskGraphLogsApi; +import io.tiledb.cloud.rest_api.TaskGraphLogsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace that owns this task graph execution. - String id = "id_example"; // String | The UUID of the task graph execution (TaskGraphLog). - try { - TaskGraphLog result = apiInstance.resubmitTaskGraphExecution(namespace, id); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling TaskGraphLogsApi#resubmitTaskGraphExecution"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); + String namespace = "namespace_example"; // String | The namespace that owns this task graph execution. + String id = "id_example"; // String | The UUID of the task graph execution (TaskGraphLog). + try { + TaskGraphLog result = apiInstance.resubmitTaskGraphExecution(namespace, id); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling TaskGraphLogsApi#resubmitTaskGraphExecution"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -428,46 +425,45 @@ public class Example { Retries failed tasks of a task graph in the given namespace using the associated execution id. ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import TaskGraphLogsApi; +import io.tiledb.cloud.rest_api.TaskGraphLogsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace that owns this task graph execution. - String id = "id_example"; // String | The UUID of the task graph execution (TaskGraphLog). - try { - TaskGraphLog result = apiInstance.retryTaskGraphExecution(namespace, id); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling TaskGraphLogsApi#retryTaskGraphExecution"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); + String namespace = "namespace_example"; // String | The namespace that owns this task graph execution. + String id = "id_example"; // String | The UUID of the task graph execution (TaskGraphLog). + try { + TaskGraphLog result = apiInstance.retryTaskGraphExecution(namespace, id); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling TaskGraphLogsApi#retryTaskGraphExecution"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -500,53 +496,51 @@ public class Example { # **stopTaskGraphExecution** -> TaskGraphLog stopTaskGraphExecution(namespace, id) +> stopTaskGraphExecution(namespace, id) Stops a task graph execution in the given namespace using the associated associated execution id. ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import TaskGraphLogsApi; +import io.tiledb.cloud.rest_api.TaskGraphLogsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace that owns this task graph execution. - String id = "id_example"; // String | The UUID of the task graph execution (TaskGraphLog). - try { - TaskGraphLog result = apiInstance.stopTaskGraphExecution(namespace, id); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling TaskGraphLogsApi#stopTaskGraphExecution"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); + String namespace = "namespace_example"; // String | The namespace that owns this task graph execution. + String id = "id_example"; // String | The UUID of the task graph execution (TaskGraphLog). + try { + apiInstance.stopTaskGraphExecution(namespace, id); + } catch (ApiException e) { + System.err.println("Exception when calling TaskGraphLogsApi#stopTaskGraphExecution"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -559,7 +553,7 @@ public class Example { ### Return type -[**TaskGraphLog**](TaskGraphLog.md) +null (empty response body) ### Authorization @@ -573,59 +567,59 @@ public class Example { ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **202** | Information about the task graph execution. | - | +| **204** | Graph stopped successfully | - | | **502** | Bad Gateway | - | | **0** | error response | - | # **submitTaskGraph** -> TaskGraphLog submitTaskGraph(namespace, id) +> TaskGraphLog submitTaskGraph(namespace, id, rootTaskGraphUuid) Submit a single task graph for execution. ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import TaskGraphLogsApi; +import io.tiledb.cloud.rest_api.TaskGraphLogsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace that owns this task graph. - String id = "id_example"; // String | The UUID of the task graph entry. - try { - TaskGraphLog result = apiInstance.submitTaskGraph(namespace, id); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling TaskGraphLogsApi#submitTaskGraph"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); + String namespace = "namespace_example"; // String | The namespace that owns this task graph. + String id = "id_example"; // String | The UUID of the task graph entry. + String rootTaskGraphUuid = "rootTaskGraphUuid_example"; // String | UUID of the root taskgraph that this graph is assosiated with + try { + TaskGraphLog result = apiInstance.submitTaskGraph(namespace, id, rootTaskGraphUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling TaskGraphLogsApi#submitTaskGraph"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -635,6 +629,7 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **namespace** | **String**| The namespace that owns this task graph. | | | **id** | **String**| The UUID of the task graph entry. | | +| **rootTaskGraphUuid** | **String**| UUID of the root taskgraph that this graph is assosiated with | [optional] | ### Return type @@ -665,46 +660,45 @@ public class Example { Update information about a single task graph execution. ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import TaskGraphLogsApi; +import io.tiledb.cloud.rest_api.TaskGraphLogsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace that owns this task graph log. - String id = "id_example"; // String | The UUID of the task graph log entry. - TaskGraphLog log = new TaskGraphLog(); // TaskGraphLog | Updates to make to the task graph log. The only manual update that a client should need to make to a task graph log is to update its completion status to `succeeded`, `failed`, or `cancelled`. - try { - apiInstance.updateTaskGraphLog(namespace, id, log); - } catch (ApiException e) { - System.err.println("Exception when calling TaskGraphLogsApi#updateTaskGraphLog"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); + String namespace = "namespace_example"; // String | The namespace that owns this task graph log. + String id = "id_example"; // String | The UUID of the task graph log entry. + TaskGraphLog log = new TaskGraphLog(); // TaskGraphLog | Updates to make to the task graph log. The only manual update that a client should need to make to a task graph log is to update its completion status to `succeeded`, `failed`, or `cancelled`. + try { + apiInstance.updateTaskGraphLog(namespace, id, log); + } catch (ApiException e) { + System.err.println("Exception when calling TaskGraphLogsApi#updateTaskGraphLog"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` diff --git a/docs/TaskGraphType.md b/docs/TaskGraphType.md index 3632126..6218d10 100644 --- a/docs/TaskGraphType.md +++ b/docs/TaskGraphType.md @@ -9,5 +9,7 @@ * `REALTIME` (value: `"realtime"`) +* `NEXTFLOW` (value: `"nextflow"`) + diff --git a/docs/TaskGraphsApi.md b/docs/TaskGraphsApi.md index ef2baa4..14e8552 100644 --- a/docs/TaskGraphsApi.md +++ b/docs/TaskGraphsApi.md @@ -20,46 +20,45 @@ All URIs are relative to */v1* Create a single task graph for execution. ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import TaskGraphsApi; +import io.tiledb.cloud.rest_api.TaskGraphsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - TaskGraphsApi apiInstance = new TaskGraphsApi(defaultClient); - String namespace = "namespace_example"; // String | Include graphs for this namespace. - TaskGraph graph = new TaskGraph(); // TaskGraph | Create the task graph. - try { - TaskGraph result = apiInstance.createTaskGraph(namespace, graph); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling TaskGraphsApi#createTaskGraph"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + TaskGraphsApi apiInstance = new TaskGraphsApi(defaultClient); + String namespace = "namespace_example"; // String | Include graphs for this namespace. + TaskGraph graph = new TaskGraph(); // TaskGraph | Create the task graph. + try { + TaskGraph result = apiInstance.createTaskGraph(namespace, graph); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling TaskGraphsApi#createTaskGraph"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -99,46 +98,45 @@ public class Example { Fetch information about a single task graph. ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import TaskGraphsApi; +import io.tiledb.cloud.rest_api.TaskGraphsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - TaskGraphsApi apiInstance = new TaskGraphsApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace that owns this task graph. - String id = "id_example"; // String | The UUID of the task graph entry. - try { - TaskGraph result = apiInstance.getTaskGraph(namespace, id); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling TaskGraphsApi#getTaskGraph"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + TaskGraphsApi apiInstance = new TaskGraphsApi(defaultClient); + String namespace = "namespace_example"; // String | The namespace that owns this task graph. + String id = "id_example"; // String | The UUID of the task graph entry. + try { + TaskGraph result = apiInstance.getTaskGraph(namespace, id); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling TaskGraphsApi#getTaskGraph"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -178,45 +176,44 @@ public class Example { Fetch the task graphs of a namespace the user has access to. The returned entries will include only summary data, and will not include information about the individual tasks that were executed. (This information is available when requesting an individual task graph log.) Entries in the response are ordered from newest to oldest. Pagination parameters work as in other API methods; see PaginationMetadata. ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import TaskGraphsApi; +import io.tiledb.cloud.rest_api.TaskGraphsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - TaskGraphsApi apiInstance = new TaskGraphsApi(defaultClient); - String namespace = "namespace_example"; // String | Namespace for graphs - try { - TaskGraphs result = apiInstance.listTaskGraphs(namespace); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling TaskGraphsApi#listTaskGraphs"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + TaskGraphsApi apiInstance = new TaskGraphsApi(defaultClient); + String namespace = "namespace_example"; // String | Namespace for graphs + try { + TaskGraphs result = apiInstance.listTaskGraphs(namespace); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling TaskGraphsApi#listTaskGraphs"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -248,53 +245,53 @@ public class Example { # **submitTaskGraph** -> TaskGraphLog submitTaskGraph(namespace, id) +> TaskGraphLog submitTaskGraph(namespace, id, rootTaskGraphUuid) Submit a single task graph for execution. ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import TaskGraphsApi; +import io.tiledb.cloud.rest_api.TaskGraphsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - TaskGraphsApi apiInstance = new TaskGraphsApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace that owns this task graph. - String id = "id_example"; // String | The UUID of the task graph entry. - try { - TaskGraphLog result = apiInstance.submitTaskGraph(namespace, id); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling TaskGraphsApi#submitTaskGraph"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + TaskGraphsApi apiInstance = new TaskGraphsApi(defaultClient); + String namespace = "namespace_example"; // String | The namespace that owns this task graph. + String id = "id_example"; // String | The UUID of the task graph entry. + String rootTaskGraphUuid = "rootTaskGraphUuid_example"; // String | UUID of the root taskgraph that this graph is assosiated with + try { + TaskGraphLog result = apiInstance.submitTaskGraph(namespace, id, rootTaskGraphUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling TaskGraphsApi#submitTaskGraph"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -304,6 +301,7 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **namespace** | **String**| The namespace that owns this task graph. | | | **id** | **String**| The UUID of the task graph entry. | | +| **rootTaskGraphUuid** | **String**| UUID of the root taskgraph that this graph is assosiated with | [optional] | ### Return type @@ -334,46 +332,45 @@ public class Example { Update information about a single task graph execution. ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import TaskGraphsApi; +import io.tiledb.cloud.rest_api.TaskGraphsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - TaskGraphsApi apiInstance = new TaskGraphsApi(defaultClient); - String namespace = "namespace_example"; // String | The namespace that owns this task graph. - String id = "id_example"; // String | The UUID of the task graph entry. - TaskGraph graph = new TaskGraph(); // TaskGraph | Updates to make to the task graph. - try { - apiInstance.updateTaskGraph(namespace, id, graph); - } catch (ApiException e) { - System.err.println("Exception when calling TaskGraphsApi#updateTaskGraph"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + TaskGraphsApi apiInstance = new TaskGraphsApi(defaultClient); + String namespace = "namespace_example"; // String | The namespace that owns this task graph. + String id = "id_example"; // String | The UUID of the task graph entry. + TaskGraph graph = new TaskGraph(); // TaskGraph | Updates to make to the task graph. + try { + apiInstance.updateTaskGraph(namespace, id, graph); + } catch (ApiException e) { + System.err.println("Exception when calling TaskGraphsApi#updateTaskGraph"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` diff --git a/docs/TasksApi.md b/docs/TasksApi.md index 57c93ad..2ce78b9 100644 --- a/docs/TasksApi.md +++ b/docs/TasksApi.md @@ -19,47 +19,46 @@ All URIs are relative to */v1* Run a sql query ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import TasksApi; +import io.tiledb.cloud.rest_api.TasksApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - TasksApi apiInstance = new TasksApi(defaultClient); - String namespace = "namespace_example"; // String | namespace to run task under is in (an organization name or user's username) - SQLParameters sql = new SQLParameters(); // SQLParameters | sql being submitted - String acceptEncoding = "acceptEncoding_example"; // String | Encoding to use - try { - List result = apiInstance.runSQL(namespace, sql, acceptEncoding); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling TasksApi#runSQL"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + TasksApi apiInstance = new TasksApi(defaultClient); + String namespace = "namespace_example"; // String | namespace to run task under is in (an organization name or user's username) + SQLParameters sql = new SQLParameters(); // SQLParameters | sql being submitted + String acceptEncoding = "acceptEncoding_example"; // String | Encoding to use + try { + List result = apiInstance.runSQL(namespace, sql, acceptEncoding); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling TasksApi#runSQL"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -101,45 +100,44 @@ public class Example { Fetch an array task ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import TasksApi; +import io.tiledb.cloud.rest_api.TasksApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - TasksApi apiInstance = new TasksApi(defaultClient); - String id = "id_example"; // String | task ID to fetch - try { - ArrayTask result = apiInstance.taskIdGet(id); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling TasksApi#taskIdGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + TasksApi apiInstance = new TasksApi(defaultClient); + String id = "id_example"; // String | task ID to fetch + try { + ArrayTask result = apiInstance.taskIdGet(id); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling TasksApi#taskIdGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -178,46 +176,45 @@ public class Example { Retrieve results of an array task ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import TasksApi; +import io.tiledb.cloud.rest_api.TasksApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - TasksApi apiInstance = new TasksApi(defaultClient); - String id = "id_example"; // String | task ID to retrieve stored results - String acceptEncoding = "acceptEncoding_example"; // String | Encoding to use - try { - String result = apiInstance.taskIdResultGet(id, acceptEncoding); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling TasksApi#taskIdResultGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + TasksApi apiInstance = new TasksApi(defaultClient); + String id = "id_example"; // String | task ID to retrieve stored results + String acceptEncoding = "acceptEncoding_example"; // String | Encoding to use + try { + String result = apiInstance.taskIdResultGet(id, acceptEncoding); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling TasksApi#taskIdResultGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -259,58 +256,57 @@ public class Example { Fetch a list of all array tasks a user has access to ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import TasksApi; +import io.tiledb.cloud.rest_api.TasksApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - TasksApi apiInstance = new TasksApi(defaultClient); - String namespace = "namespace_example"; // String | namespace to filter - String createdBy = "createdBy_example"; // String | username to filter - String array = "array_example"; // String | name/uri of array that is url-encoded to filter - Integer start = 56; // Integer | start time for tasks to filter by - Integer end = 56; // Integer | end time for tasks to filter by - Integer page = 56; // Integer | pagination offset - Integer perPage = 56; // Integer | pagination limit - String type = "type_example"; // String | task type, \"QUERY\", \"SQL\", \"UDF\", \"GENERIC_UDF\" - List excludeType = Arrays.asList(); // List | task_type to exclude matching array in results, more than one can be included - List fileType = Arrays.asList(); // List | match file_type of task array, more than one can be included - List excludeFileType = Arrays.asList(); // List | exclude file_type of task arrays, more than one can be included - String status = "status_example"; // String | Filter to only return these statuses - String search = "search_example"; // String | search string that will look at name, namespace or description fields - String orderby = "orderby_example"; // String | sort by which field valid values include start_time, name - try { - ArrayTaskData result = apiInstance.tasksGet(namespace, createdBy, array, start, end, page, perPage, type, excludeType, fileType, excludeFileType, status, search, orderby); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling TasksApi#tasksGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + TasksApi apiInstance = new TasksApi(defaultClient); + String namespace = "namespace_example"; // String | namespace to filter + String createdBy = "createdBy_example"; // String | username to filter + String array = "array_example"; // String | name/uri of array that is url-encoded to filter + Integer start = 56; // Integer | start time for tasks to filter by + Integer end = 56; // Integer | end time for tasks to filter by + Integer page = 56; // Integer | pagination offset + Integer perPage = 56; // Integer | pagination limit + String type = "type_example"; // String | task type, \"QUERY\", \"SQL\", \"UDF\", \"GENERIC_UDF\" + List excludeType = Arrays.asList(); // List | task_type to exclude matching array in results, more than one can be included + List fileType = Arrays.asList(); // List | match file_type of task array, more than one can be included + List excludeFileType = Arrays.asList(); // List | exclude file_type of task arrays, more than one can be included + String status = "status_example"; // String | Filter to only return these statuses + String search = "search_example"; // String | search string that will look at name, namespace or description fields + String orderby = "orderby_example"; // String | sort by which field valid values include start_time, name + try { + ArrayTaskData result = apiInstance.tasksGet(namespace, createdBy, array, start, end, page, perPage, type, excludeType, fileType, excludeFileType, status, search, orderby); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling TasksApi#tasksGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` diff --git a/docs/UDFLanguage.md b/docs/UDFLanguage.md index 42e8e75..0f36295 100644 --- a/docs/UDFLanguage.md +++ b/docs/UDFLanguage.md @@ -9,5 +9,7 @@ * `R` (value: `"r"`) +* `NEXTFLOW` (value: `"nextflow"`) + diff --git a/docs/UdfApi.md b/docs/UdfApi.md index 8abf545..e78de81 100644 --- a/docs/UdfApi.md +++ b/docs/UdfApi.md @@ -26,45 +26,44 @@ All URIs are relative to */v1* delete a registered UDF -- this will remove all sharing and can not be undone ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import UdfApi; +import io.tiledb.cloud.rest_api.UdfApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UdfApi apiInstance = new UdfApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String name = "name_example"; // String | name to register UDF under - try { - apiInstance.deleteUDFInfo(namespace, name); - } catch (ApiException e) { - System.err.println("Exception when calling UdfApi#deleteUDFInfo"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UdfApi apiInstance = new UdfApi(defaultClient); + String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String name = "name_example"; // String | name to register UDF under + try { + apiInstance.deleteUDFInfo(namespace, name); + } catch (ApiException e) { + System.err.println("Exception when calling UdfApi#deleteUDFInfo"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -104,46 +103,45 @@ null (empty response body) get a specific UDF in the given namespace ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import UdfApi; +import io.tiledb.cloud.rest_api.UdfApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UdfApi apiInstance = new UdfApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String name = "name_example"; // String | name to register UDF under - try { - UDFInfo result = apiInstance.getUDFInfo(namespace, name); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling UdfApi#getUDFInfo"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UdfApi apiInstance = new UdfApi(defaultClient); + String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String name = "name_example"; // String | name to register UDF under + try { + UDFInfo result = apiInstance.getUDFInfo(namespace, name); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling UdfApi#getUDFInfo"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -184,46 +182,45 @@ public class Example { Get all sharing details of the UDF ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import UdfApi; +import io.tiledb.cloud.rest_api.UdfApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UdfApi apiInstance = new UdfApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String name = "name_example"; // String | name of UDFInfo - try { - List result = apiInstance.getUDFInfoSharingPolicies(namespace, name); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling UdfApi#getUDFInfoSharingPolicies"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UdfApi apiInstance = new UdfApi(defaultClient); + String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String name = "name_example"; // String | name of UDFInfo + try { + List result = apiInstance.getUDFInfoSharingPolicies(namespace, name); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling UdfApi#getUDFInfoSharingPolicies"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -264,49 +261,48 @@ public class Example { Copy a tiledb udf at the specified location ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import UdfApi; +import io.tiledb.cloud.rest_api.UdfApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UdfApi apiInstance = new UdfApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String name = "name_example"; // String | name of UDFInfo - UDFCopy udFCopy = new UDFCopy(); // UDFCopy | Input/Output information to copy a UDF - String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME = "X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME_example"; // String | Optional registered access credentials to use for creation - Integer endTimestamp = 56; // Integer | Milliseconds since Unix epoch - try { - UDFCopied result = apiInstance.handleCopyUDF(namespace, name, udFCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling UdfApi#handleCopyUDF"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UdfApi apiInstance = new UdfApi(defaultClient); + String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String name = "name_example"; // String | name of UDFInfo + UDFCopy udFCopy = new UDFCopy(); // UDFCopy | Input/Output information to copy a UDF + String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME = "X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME_example"; // String | Optional registered access credentials to use for creation + Integer endTimestamp = 56; // Integer | Milliseconds since Unix epoch + try { + UDFCopied result = apiInstance.handleCopyUDF(namespace, name, udFCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling UdfApi#handleCopyUDF"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -349,46 +345,45 @@ public class Example { register a UDF in the given namespace ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import UdfApi; +import io.tiledb.cloud.rest_api.UdfApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UdfApi apiInstance = new UdfApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String name = "name_example"; // String | name to register UDF under - UDFInfoUpdate udf = new UDFInfoUpdate(); // UDFInfoUpdate | UDF to register - try { - apiInstance.registerUDFInfo(namespace, name, udf); - } catch (ApiException e) { - System.err.println("Exception when calling UdfApi#registerUDFInfo"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UdfApi apiInstance = new UdfApi(defaultClient); + String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String name = "name_example"; // String | name to register UDF under + UDFInfoUpdate udf = new UDFInfoUpdate(); // UDFInfoUpdate | UDF to register + try { + apiInstance.registerUDFInfo(namespace, name, udf); + } catch (ApiException e) { + System.err.println("Exception when calling UdfApi#registerUDFInfo"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -429,46 +424,45 @@ null (empty response body) Share a UDF with a user ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import UdfApi; +import io.tiledb.cloud.rest_api.UdfApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UdfApi apiInstance = new UdfApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String name = "name_example"; // String | name of UDFInfo - UDFSharing udfSharing = new UDFSharing(); // UDFSharing | Namespace and list of permissions to share with. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the UDF will not be shared with the namespace at all. - try { - apiInstance.shareUDFInfo(namespace, name, udfSharing); - } catch (ApiException e) { - System.err.println("Exception when calling UdfApi#shareUDFInfo"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UdfApi apiInstance = new UdfApi(defaultClient); + String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String name = "name_example"; // String | name of UDFInfo + UDFSharing udfSharing = new UDFSharing(); // UDFSharing | Namespace and list of permissions to share with. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the UDF will not be shared with the namespace at all. + try { + apiInstance.shareUDFInfo(namespace, name, udfSharing); + } catch (ApiException e) { + System.err.println("Exception when calling UdfApi#shareUDFInfo"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -510,47 +504,46 @@ null (empty response body) submit a generic UDF in the given namespace ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import UdfApi; +import io.tiledb.cloud.rest_api.UdfApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UdfApi apiInstance = new UdfApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - GenericUDF udf = new GenericUDF(); // GenericUDF | UDF to run - String acceptEncoding = "acceptEncoding_example"; // String | Encoding to use - try { - File result = apiInstance.submitGenericUDF(namespace, udf, acceptEncoding); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling UdfApi#submitGenericUDF"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UdfApi apiInstance = new UdfApi(defaultClient); + String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + GenericUDF udf = new GenericUDF(); // GenericUDF | UDF to run + String acceptEncoding = "acceptEncoding_example"; // String | Encoding to use + try { + File result = apiInstance.submitGenericUDF(namespace, udf, acceptEncoding); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling UdfApi#submitGenericUDF"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -591,47 +584,46 @@ public class Example { submit a multi-array UDF in the given namespace ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import UdfApi; +import io.tiledb.cloud.rest_api.UdfApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UdfApi apiInstance = new UdfApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - MultiArrayUDF udf = new MultiArrayUDF(); // MultiArrayUDF | UDF to run - String acceptEncoding = "acceptEncoding_example"; // String | Encoding to use - try { - File result = apiInstance.submitMultiArrayUDF(namespace, udf, acceptEncoding); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling UdfApi#submitMultiArrayUDF"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UdfApi apiInstance = new UdfApi(defaultClient); + String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + MultiArrayUDF udf = new MultiArrayUDF(); // MultiArrayUDF | UDF to run + String acceptEncoding = "acceptEncoding_example"; // String | Encoding to use + try { + File result = apiInstance.submitMultiArrayUDF(namespace, udf, acceptEncoding); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling UdfApi#submitMultiArrayUDF"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -672,50 +664,49 @@ public class Example { send a UDF to run against a specified array/URI registered to a group/project ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import UdfApi; +import io.tiledb.cloud.rest_api.UdfApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UdfApi apiInstance = new UdfApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - MultiArrayUDF udf = new MultiArrayUDF(); // MultiArrayUDF | UDF to run - String xPayer = "xPayer_example"; // String | Name of organization or user who should be charged for this request - String acceptEncoding = "acceptEncoding_example"; // String | Encoding to use - String v2 = "v2_example"; // String | flag to indicate if v2 array UDFs should be used, currently in beta testing. Setting any value will enable v2 array UDFs. - try { - File result = apiInstance.submitUDF(namespace, array, udf, xPayer, acceptEncoding, v2); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling UdfApi#submitUDF"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UdfApi apiInstance = new UdfApi(defaultClient); + String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String array = "array_example"; // String | name/uri of array that is url-encoded + MultiArrayUDF udf = new MultiArrayUDF(); // MultiArrayUDF | UDF to run + String xPayer = "xPayer_example"; // String | Name of organization or user who should be charged for this request + String acceptEncoding = "acceptEncoding_example"; // String | Encoding to use + String v2 = "v2_example"; // String | flag to indicate if v2 array UDFs should be used, currently in beta testing. Setting any value will enable v2 array UDFs. + try { + File result = apiInstance.submitUDF(namespace, array, udf, xPayer, acceptEncoding, v2); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling UdfApi#submitUDF"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -759,48 +750,47 @@ public class Example { retrieve a list of timestamps from the array fragment info listing in milliseconds, paginated ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import UdfApi; +import io.tiledb.cloud.rest_api.UdfApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UdfApi apiInstance = new UdfApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String array = "array_example"; // String | name/uri of array that is url-encoded - Integer page = 56; // Integer | pagination offset - Integer perPage = 56; // Integer | pagination limit - try { - ArrayEndTimestampData result = apiInstance.udfNamespaceArrayEndTimestampsGet(namespace, array, page, perPage); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling UdfApi#udfNamespaceArrayEndTimestampsGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UdfApi apiInstance = new UdfApi(defaultClient); + String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String array = "array_example"; // String | name/uri of array that is url-encoded + Integer page = 56; // Integer | pagination offset + Integer perPage = 56; // Integer | pagination limit + try { + ArrayEndTimestampData result = apiInstance.udfNamespaceArrayEndTimestampsGet(namespace, array, page, perPage); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling UdfApi#udfNamespaceArrayEndTimestampsGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -842,46 +832,45 @@ public class Example { update an existing registered UDF in the given namespace ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import UdfApi; +import io.tiledb.cloud.rest_api.UdfApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UdfApi apiInstance = new UdfApi(defaultClient); - String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) - String name = "name_example"; // String | name to register UDF under - UDFInfoUpdate udf = new UDFInfoUpdate(); // UDFInfoUpdate | UDF to update - try { - apiInstance.updateUDFInfo(namespace, name, udf); - } catch (ApiException e) { - System.err.println("Exception when calling UdfApi#updateUDFInfo"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UdfApi apiInstance = new UdfApi(defaultClient); + String namespace = "namespace_example"; // String | namespace array is in (an organization name or user's username) + String name = "name_example"; // String | name to register UDF under + UDFInfoUpdate udf = new UDFInfoUpdate(); // UDFInfoUpdate | UDF to update + try { + apiInstance.updateUDFInfo(namespace, name, udf); + } catch (ApiException e) { + System.err.println("Exception when calling UdfApi#updateUDFInfo"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` diff --git a/docs/User.md b/docs/User.md index 32df828..4be096f 100644 --- a/docs/User.md +++ b/docs/User.md @@ -26,6 +26,7 @@ User |**defaultS3PathCredentialsName** | **Object** | The name of the credentials used to create and access files in the `default_s3_path`, if needed. | [optional] | |**assetLocations** | [**AssetLocations**](AssetLocations.md) | | [optional] | |**defaultNamespaceCharged** | **String** | Override the default namespace charged for actions when no namespace is specified | [optional] | +|**defaultRegion** | **String** | The default region to use for notebooks and other operations. It must be a region supported by TileDB, see https://docs.tiledb.com/cloud/concepts/tiledb-cloud-internals/architecture#orchestration | [optional] | diff --git a/docs/UserApi.md b/docs/UserApi.md index b427aba..86712f0 100644 --- a/docs/UserApi.md +++ b/docs/UserApi.md @@ -37,45 +37,44 @@ All URIs are relative to */v1* Add aws keys ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import UserApi; +import io.tiledb.cloud.rest_api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UserApi apiInstance = new UserApi(defaultClient); - String namespace = "namespace_example"; // String | namespace - AWSAccessCredentials awsAccessCredentials = new AWSAccessCredentials(); // AWSAccessCredentials | aws access credentials to store for a namespace - try { - apiInstance.addAWSAccessCredentials(namespace, awsAccessCredentials); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#addAWSAccessCredentials"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UserApi apiInstance = new UserApi(defaultClient); + String namespace = "namespace_example"; // String | namespace + AWSAccessCredentials awsAccessCredentials = new AWSAccessCredentials(); // AWSAccessCredentials | aws access credentials to store for a namespace + try { + apiInstance.addAWSAccessCredentials(namespace, awsAccessCredentials); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#addAWSAccessCredentials"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -115,45 +114,44 @@ null (empty response body) add a user to an organization ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import UserApi; +import io.tiledb.cloud.rest_api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UserApi apiInstance = new UserApi(defaultClient); - String organization = "organization_example"; // String | organization name - OrganizationUser user = new OrganizationUser(); // OrganizationUser | user to add - try { - apiInstance.addUserToOrganization(organization, user); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#addUserToOrganization"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UserApi apiInstance = new UserApi(defaultClient); + String organization = "organization_example"; // String | organization name + OrganizationUser user = new OrganizationUser(); // OrganizationUser | user to add + try { + apiInstance.addUserToOrganization(organization, user); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#addUserToOrganization"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -193,45 +191,44 @@ null (empty response body) Check if aws keys are set ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import UserApi; +import io.tiledb.cloud.rest_api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UserApi apiInstance = new UserApi(defaultClient); - String namespace = "namespace_example"; // String | namespace - try { - List result = apiInstance.checkAWSAccessCredentials(namespace); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#checkAWSAccessCredentials"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UserApi apiInstance = new UserApi(defaultClient); + String namespace = "namespace_example"; // String | namespace + try { + List result = apiInstance.checkAWSAccessCredentials(namespace); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#checkAWSAccessCredentials"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -270,46 +267,45 @@ public class Example { Check if aws keys are set by name ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import UserApi; +import io.tiledb.cloud.rest_api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UserApi apiInstance = new UserApi(defaultClient); - String namespace = "namespace_example"; // String | namespace - String name = "name_example"; // String | name - try { - AWSAccessCredentials result = apiInstance.checkAWSAccessCredentialsByName(namespace, name); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#checkAWSAccessCredentialsByName"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UserApi apiInstance = new UserApi(defaultClient); + String namespace = "namespace_example"; // String | namespace + String name = "name_example"; // String | name + try { + AWSAccessCredentials result = apiInstance.checkAWSAccessCredentialsByName(namespace, name); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#checkAWSAccessCredentialsByName"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -349,43 +345,42 @@ public class Example { confirm user email ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import UserApi; +import io.tiledb.cloud.rest_api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UserApi apiInstance = new UserApi(defaultClient); - try { - apiInstance.confirmEmail(); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#confirmEmail"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UserApi apiInstance = new UserApi(defaultClient); + try { + apiInstance.confirmEmail(); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#confirmEmail"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -421,44 +416,43 @@ null (empty response body) create a user ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import UserApi; +import io.tiledb.cloud.rest_api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UserApi apiInstance = new UserApi(defaultClient); - User user = new User(); // User | user to create - try { - apiInstance.createUser(user); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#createUser"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UserApi apiInstance = new UserApi(defaultClient); + User user = new User(); // User | user to create + try { + apiInstance.createUser(user); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#createUser"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -497,45 +491,44 @@ null (empty response body) delete a AWS Access credentials in a namespace. This will likely cause arrays to become unreachable ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import UserApi; +import io.tiledb.cloud.rest_api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UserApi apiInstance = new UserApi(defaultClient); - String namespace = "namespace_example"; // String | namespace - String name = "name_example"; // String | name - try { - apiInstance.deleteAWSAccessCredentials(namespace, name); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#deleteAWSAccessCredentials"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UserApi apiInstance = new UserApi(defaultClient); + String namespace = "namespace_example"; // String | namespace + String name = "name_example"; // String | name + try { + apiInstance.deleteAWSAccessCredentials(namespace, name); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#deleteAWSAccessCredentials"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -575,44 +568,43 @@ null (empty response body) delete a user ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import UserApi; +import io.tiledb.cloud.rest_api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UserApi apiInstance = new UserApi(defaultClient); - String username = "username_example"; // String | username or ID - try { - apiInstance.deleteUser(username); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#deleteUser"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UserApi apiInstance = new UserApi(defaultClient); + String username = "username_example"; // String | username or ID + try { + apiInstance.deleteUser(username); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#deleteUser"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -651,45 +643,44 @@ null (empty response body) delete a user from an organization ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import UserApi; +import io.tiledb.cloud.rest_api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UserApi apiInstance = new UserApi(defaultClient); - String organization = "organization_example"; // String | organization name - String username = "username_example"; // String | username to manipulate - try { - apiInstance.deleteUserFromOrganization(organization, username); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#deleteUserFromOrganization"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UserApi apiInstance = new UserApi(defaultClient); + String organization = "organization_example"; // String | organization name + String username = "username_example"; // String | username to manipulate + try { + apiInstance.deleteUserFromOrganization(organization, username); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#deleteUserFromOrganization"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -729,46 +720,45 @@ null (empty response body) get a user from an organization ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import UserApi; +import io.tiledb.cloud.rest_api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UserApi apiInstance = new UserApi(defaultClient); - String organization = "organization_example"; // String | organization name - String username = "username_example"; // String | username to manipulate - try { - OrganizationUser result = apiInstance.getOrganizationUser(organization, username); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#getOrganizationUser"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UserApi apiInstance = new UserApi(defaultClient); + String organization = "organization_example"; // String | organization name + String username = "username_example"; // String | username to manipulate + try { + OrganizationUser result = apiInstance.getOrganizationUser(organization, username); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#getOrganizationUser"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -802,52 +792,52 @@ public class Example { # **getSession** -> Token getSession(rememberMe) +> Token getSession(rememberMe, expires) Get session token for user ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import UserApi; +import io.tiledb.cloud.rest_api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UserApi apiInstance = new UserApi(defaultClient); - String rememberMe = "rememberMe_example"; // String | flag to create a token with expiration of 30 days, default is false - try { - Token result = apiInstance.getSession(rememberMe); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#getSession"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UserApi apiInstance = new UserApi(defaultClient); + String rememberMe = "rememberMe_example"; // String | flag to create a token with expiration of 30 days, default is false + OffsetDateTime expires = OffsetDateTime.now(); // OffsetDateTime | Expiration date for token, if empty token defaults to 30 minutes + try { + Token result = apiInstance.getSession(rememberMe, expires); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#getSession"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -856,6 +846,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **rememberMe** | **String**| flag to create a token with expiration of 30 days, default is false | [optional] | +| **expires** | **OffsetDateTime**| Expiration date for token, if empty token defaults to 30 minutes | [optional] | ### Return type @@ -886,44 +877,43 @@ public class Example { retrieves available token scopes for a user ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import UserApi; +import io.tiledb.cloud.rest_api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UserApi apiInstance = new UserApi(defaultClient); - try { - List result = apiInstance.getTokenScopes(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#getTokenScopes"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UserApi apiInstance = new UserApi(defaultClient); + try { + List result = apiInstance.getTokenScopes(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#getTokenScopes"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -959,44 +949,43 @@ This endpoint does not need any parameter. get a user ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import UserApi; +import io.tiledb.cloud.rest_api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UserApi apiInstance = new UserApi(defaultClient); - try { - User result = apiInstance.getUser(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#getUser"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UserApi apiInstance = new UserApi(defaultClient); + try { + User result = apiInstance.getUser(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#getUser"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1032,45 +1021,44 @@ This endpoint does not need any parameter. get a user ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import UserApi; +import io.tiledb.cloud.rest_api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UserApi apiInstance = new UserApi(defaultClient); - String username = "username_example"; // String | username or ID - try { - User result = apiInstance.getUserWithUsername(username); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#getUserWithUsername"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UserApi apiInstance = new UserApi(defaultClient); + String username = "username_example"; // String | username or ID + try { + User result = apiInstance.getUserWithUsername(username); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#getUserWithUsername"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1110,45 +1098,44 @@ public class Example { Request an authorization token, optionally taken a TokenRequest object to set parameters on the token ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import UserApi; +import io.tiledb.cloud.rest_api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UserApi apiInstance = new UserApi(defaultClient); - TokenRequest tokenRequest = new TokenRequest(); // TokenRequest | token request object - try { - Token result = apiInstance.requestToken(tokenRequest); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#requestToken"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UserApi apiInstance = new UserApi(defaultClient); + TokenRequest tokenRequest = new TokenRequest(); // TokenRequest | token request object + try { + Token result = apiInstance.requestToken(tokenRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#requestToken"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1187,44 +1174,43 @@ public class Example { reset user password ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import UserApi; +import io.tiledb.cloud.rest_api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UserApi apiInstance = new UserApi(defaultClient); - ResetUserPasswordRequest user = new ResetUserPasswordRequest(); // ResetUserPasswordRequest | password to update for user requesting update - try { - apiInstance.resetUserPassword(user); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#resetUserPassword"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UserApi apiInstance = new UserApi(defaultClient); + ResetUserPasswordRequest user = new ResetUserPasswordRequest(); // ResetUserPasswordRequest | password to update for user requesting update + try { + apiInstance.resetUserPassword(user); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#resetUserPassword"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1264,44 +1250,43 @@ null (empty response body) revoke an authorization token ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import UserApi; +import io.tiledb.cloud.rest_api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UserApi apiInstance = new UserApi(defaultClient); - String token = "token_example"; // String | token name or token itself - try { - apiInstance.revokeToken(token); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#revokeToken"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UserApi apiInstance = new UserApi(defaultClient); + String token = "token_example"; // String | token name or token itself + try { + apiInstance.revokeToken(token); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#revokeToken"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1340,44 +1325,43 @@ null (empty response body) Fetch a list of user tokens ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import UserApi; +import io.tiledb.cloud.rest_api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UserApi apiInstance = new UserApi(defaultClient); - try { - List result = apiInstance.tokensGet(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#tokensGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UserApi apiInstance = new UserApi(defaultClient); + try { + List result = apiInstance.tokensGet(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#tokensGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1413,44 +1397,43 @@ This endpoint does not need any parameter. Fetch a list of user session tokens ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import UserApi; +import io.tiledb.cloud.rest_api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UserApi apiInstance = new UserApi(defaultClient); - try { - List result = apiInstance.tokensSessionGet(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#tokensSessionGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UserApi apiInstance = new UserApi(defaultClient); + try { + List result = apiInstance.tokensSessionGet(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#tokensSessionGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1486,46 +1469,45 @@ This endpoint does not need any parameter. Update aws keys or associated buckets. This will update the key associations for each array in the namespace ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import UserApi; +import io.tiledb.cloud.rest_api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UserApi apiInstance = new UserApi(defaultClient); - String namespace = "namespace_example"; // String | namespace - String name = "name_example"; // String | name - AWSAccessCredentials awsAccessCredentials = new AWSAccessCredentials(); // AWSAccessCredentials | aws credentials to update - try { - apiInstance.updateAWSAccessCredentials(namespace, name, awsAccessCredentials); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#updateAWSAccessCredentials"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UserApi apiInstance = new UserApi(defaultClient); + String namespace = "namespace_example"; // String | namespace + String name = "name_example"; // String | name + AWSAccessCredentials awsAccessCredentials = new AWSAccessCredentials(); // AWSAccessCredentials | aws credentials to update + try { + apiInstance.updateAWSAccessCredentials(namespace, name, awsAccessCredentials); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#updateAWSAccessCredentials"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1566,45 +1548,44 @@ null (empty response body) update a user ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import UserApi; +import io.tiledb.cloud.rest_api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UserApi apiInstance = new UserApi(defaultClient); - String username = "username_example"; // String | username or ID - User user = new User(); // User | user details to update - try { - apiInstance.updateUser(username, user); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#updateUser"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UserApi apiInstance = new UserApi(defaultClient); + String username = "username_example"; // String | username or ID + User user = new User(); // User | user details to update + try { + apiInstance.updateUser(username, user); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#updateUser"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1644,46 +1625,45 @@ null (empty response body) update a user in an organization ### Example - ```java // Import classes: - -import ApiClient; -import ApiException; -import Configuration; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.auth.*; import io.tiledb.cloud.rest_api.models.*; -import UserApi; +import io.tiledb.cloud.rest_api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UserApi apiInstance = new UserApi(defaultClient); - String organization = "organization_example"; // String | organization name - String username = "username_example"; // String | username to manipulate - OrganizationUser user = new OrganizationUser(); // OrganizationUser | user details to update - try { - apiInstance.updateUserInOrganization(organization, username, user); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#updateUserInOrganization"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + UserApi apiInstance = new UserApi(defaultClient); + String organization = "organization_example"; // String | organization name + String username = "username_example"; // String | username to manipulate + OrganizationUser user = new OrganizationUser(); // OrganizationUser | user details to update + try { + apiInstance.updateUserInOrganization(organization, username, user); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#updateUserInOrganization"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` diff --git a/openapi-v1.yaml b/openapi-v1.yaml index c764327..de015aa 100644 --- a/openapi-v1.yaml +++ b/openapi-v1.yaml @@ -2,7 +2,7 @@ swagger: "2.0" info: description: TileDB Storage Platform REST API title: TileDB Storage Platform API - version: 2.2.19 + version: 2.17.51 produces: - application/json @@ -89,6 +89,54 @@ definitions: - STRING_UCS4 # This can be any datatype. Must store (type tag, value) pairs. - ANY + # Datetime with year resolution + - DATETIME_YEAR + # Datetime with month resolution + - DATETIME_MONTH + # Datetime with week resolution + - DATETIME_WEEK + # Datetime with day resolution + - DATETIME_DAY + # Datetime with hour resolution + - DATETIME_HR + # Datetime with minute resolution + - DATETIME_MIN + # Datetime with second resolution + - DATETIME_SEC + # Datetime with millisecond resolution + - DATETIME_MS + # Datetime with microsecond resolution + - DATETIME_US + # Datetime with nanosecond resolution + - DATETIME_NS + # Datetime with picosecond resolution + - DATETIME_PS + # Datetime with femtosecond resolution + - DATETIME_FS + # Datetime with attosecond resolution + - DATETIME_AS + # Time with hour resolution + - TIME_HR + # Time with minute resolution + - TIME_MIN + # Time with second resolution + - TIME_SEC + # Time with millisecond resolution + - TIME_MS + # Time with microsecond resolution + - TIME_US + # Time with nanosecond resolution + - TIME_NS + # Time with picosecond resolution + - TIME_PS + # Time with femtosecond resolution + - TIME_FS + # Time with attosecond resolution + - TIME_AS + # 8-bit unsigned integer + - BLOB + # Boolean + - BOOL ActivityEventType: description: Type of activity logged @@ -124,6 +172,8 @@ definitions: - estimated_result_sizes # read_fragment_info - read_fragment_info + # read_enumerations + - read_enumerations UDFLanguage: description: UDF Type @@ -133,6 +183,8 @@ definitions: - python # r - r + # nextflow + - nextflow UDFType: description: UDF Type @@ -205,27 +257,27 @@ definitions: type: string enum: # No-op filter - - FILTER_NONE + - NONE # Gzip compressor - - FILTER_GZIP + - GZIP # Zstandard compressor - - FILTER_ZSTD + - ZSTD # LZ4 compressor - - FILTER_LZ4 + - LZ4 # Run-length encoding compressor - - FILTER_RLE + - RLE # Bzip2 compressor - - FILTER_BZIP2 + - BZIP2 # Double-delta compressor - - FILTER_DOUBLE_DELTA + - DOUBLE_DELTA # Bit width reduction filter. - - FILTER_BIT_WIDTH_REDUCTION + - BIT_WIDTH_REDUCTION # Bitshuffle filter. - - FILTER_BITSHUFFLE + - BITSHUFFLE # Byteshuffle filter. - - FILTER_BYTESHUFFLE + - BYTESHUFFLE # Positive-delta encoding filter. - - FILTER_POSITIVE_DELTA + - POSITIVE_DELTA FilterOption: description: TileDB filter option @@ -246,6 +298,8 @@ definitions: - owner # Admin almost all rights but can't delete organization - admin + # Read, write, and delete User + - read_write_delete # Read and write User - read_write # Read Only User @@ -625,6 +679,7 @@ definitions: package: "github.com/TileDB-Inc/TileDB-Go" alias: "tiledb" type: "ArraySchema" + embedded: true AttributeBufferHeader: description: Represents an attribute buffer header information @@ -913,6 +968,24 @@ definitions: items: $ref: "#/definitions/ArrayMetadataEntry" + MetadataStringifiedEntry: + type: object + description: key/value pair representing an asset metadata map entry + properties: + key: + description: The metadata key + type: string + x-omitempty: false + value: + description: The metadata value + type: string + x-omitempty: false + type: + description: The metadata type + type: string + x-omitempty: false + example: array_metadata + TileDBConfig: description: TileDB config used for interaction with the embedded library type: object @@ -1068,6 +1141,7 @@ definitions: description: Start time RFC3339 for job type: string format: date-time + x-nullable: true finish_time: description: Finish time RFC3339 for job type: string @@ -1141,6 +1215,14 @@ definitions: x-omitempty: true description: > If set, the client-defined ID of the node within this task's graph. + cloud_provider: + type: string + x-omitempty: true + description: The name of the cloud provider where this task executed. + cloud_region: + type: string + x-omitempty: true + description: The region of the cloud provider where this task executed. PaginationMetadata: properties: @@ -1391,6 +1473,11 @@ definitions: default_namespace_charged: description: Override the default namespace charged for actions when no namespace is specified type: string + default_region: + description: > + The default region to use for notebooks and other operations. It must be a region supported by TileDB, + see https://docs.tiledb.com/cloud/concepts/tiledb-cloud-internals/architecture#orchestration + type: string OrganizationUser: description: user in an organization @@ -1408,6 +1495,14 @@ definitions: description: username for user type: string example: "username" + user_full_name: + description: full name of the user; available to organization admins + type: string + example: "Alice Hanna" + user_email: + description: email address of the user; available to organization admins + type: string + example: alice@example.com organization_name: description: name of organization type: string @@ -1606,6 +1701,47 @@ definitions: type: boolean readOnly: true example: false + assume_role_arn: + description: > + A AWS Role that will be first assumed before assuming the organization's AWS Role. + Visible to owners and admins. + type: string + x-omitempty: true + + OrganizationUpdate: + description: OrganizationUpdate + type: object + properties: + name: + type: string + minLength: 1 + maxLength: 63 + pattern: "^[\\w.\\-]+$" # only allows alphanumeric characters + description: organization name must be unique + x-nullable: true + logo: + description: Organization logo + type: string + x-nullable: true + description: + description: Organization description + type: string + x-nullable: true + default_s3_path: + description: > + The default location to store newly-created notebooks and other assets + like UDFs. The name `default_s3_path` is a legacy holdover; it may + refer to any supported storage location. + type: string + x-nullable: true + default_s3_path_credentials_name: + description: > + The name of the credentials used to create and access files in the + `default_s3_path`, if needed. + type: string + x-nullable: true + asset_locations: + $ref: "#/definitions/AssetLocations" AssetLocations: description: > @@ -1743,7 +1879,7 @@ definitions: # Raster - raster # Vector search - - vector_search + - vector_search FilePropertyName: description: File property assigned to a specific file (array) @@ -1992,6 +2128,22 @@ definitions: type: boolean x-omitempty: true example: true + created_at: + description: Datetime array was registered with tiledb + type: string + format: date-time + created_by: + description: The user who created the array, if known. + type: string + x-omitempty: true + metadata: + description: | + Contains the metadata of the array. + **Note:** This property is included in the response only if the `with_metadata` query parameter is set to `true`. + type: array + x-omitempty: true + items: + $ref: "#/definitions/MetadataStringifiedEntry" ArrayInfoUpdate: description: metadata of an array @@ -2140,6 +2292,10 @@ definitions: - stripe # Okta - okta + # perdomain + - perdomain + # SCIM + - scim PublicShareFilter: description: Query parameter to get array metadatas @@ -2708,12 +2864,28 @@ definitions: format: uint64 example: 4000 cost: - description: cost in USD for the current notebook session + description: cost in USD for the current notebook session x-omitempty: true x-nullable: true type: number format: double example: 0.27 + pod_status: + description: Status of the pod + $ref: "#/definitions/PodStatus" + example: RUNNING + x-omitempty: true + + PodStatus: + description: List of all available pod statuses + type: string + enum: + # Terminating + - TERMINATING + # Running + - RUNNING + # Launching + - LAUNCHING ArrayFavorite: description: A user-favorite array item @@ -2833,6 +3005,8 @@ definitions: - GROUP_SHARE # Join Organization - JOIN_ORGANIZATION + # Allow a child namespace to use a payment instrument + - PAYMENT_SHARE InvitationStatus: description: List of values that InvitationStatus can take @@ -3316,6 +3490,22 @@ definitions: type: string x-omitempty: true description: License text + created_at: + description: Datetime the group was registered with tiledb + type: string + format: date-time + created_by: + description: The username of the group's creator, if known. + type: string + x-omitempty: true + metadata: + description: | + Contains metadata of the group. + **Note:** This property is included in the response only if the `with_metadata` query parameter is set to `true`. + type: array + x-omitempty: true + items: + $ref: "#/definitions/MetadataStringifiedEntry" GroupEntry: description: Object describing a single member of a group, which can be an array or a group @@ -3625,7 +3815,7 @@ definitions: type: string example: "MyOrganization" - GroupActivity: + GroupContentActivity: description: Object containing activity of an asset of a group type: object properties: @@ -3649,7 +3839,7 @@ definitions: description: Object containing the activity log $ref: "#/definitions/ArrayActivityLog" - GroupActivityResponse: + GroupContentActivityResponse: description: Object containing activity logs of group content along with the pagination metadata type: object properties: @@ -3659,7 +3849,7 @@ definitions: x-omitempty: false x-nullable: false items: - $ref: "#/definitions/GroupActivity" + $ref: "#/definitions/GroupContentActivity" pagination_metadata: x-omitempty: false x-nullable: false @@ -3719,6 +3909,7 @@ definitions: enum: - batch - realtime + - nextflow TaskGraphLog: description: Logging information about the execution of a task graph. @@ -3815,6 +4006,28 @@ definitions: task_graph_id: type: string description: The UUID of the task graph. + cloud_provider: + type: string + x-omitempty: true + description: The name of the cloud provider where this task graph executed. + cloud_region: + type: string + x-omitempty: true + description: The region of the cloud provider where this task graph executed. + root_task_graph_uuid: + type: string + x-omitempty: true + description: > + The UUID of the root taskgraph that this taskgraph is related to. + This is used to provide consistent tracking and UI view for graphs that + are executed by a set of taskgraphs. + children_task_graph_uuids: + description: > + If this is a root taskgraph, this contains the list of all its children + taskgraph UUIDs. + type: array + items: + type: string TaskGraphNodeMetadata: description: Metadata about an individual node in a task graph. @@ -3825,6 +4038,7 @@ definitions: description: The client-generated UUID of the given graph node. name: type: string + maxLength: 255 description: > The client-generated name of the node. This is not guaranteed to be unique. @@ -3908,6 +4122,7 @@ definitions: description: The name of the user who created this task graph log. name: type: string + maxLength: 255 description: > A name for this task graph, displayed in the UI. Does not need to be unique. @@ -3923,7 +4138,7 @@ definitions: $ref: "#/definitions/TaskGraphNode" description: > The structure of the graph. This is provided by the client - when first setting up the task graph. + when first setting up the task graph. This must be topographically sorted; that is, each node must appear after all nodes that it depends upon. parallelism: @@ -3943,7 +4158,7 @@ definitions: x-omitempty: true description: > Duration in seconds relative to the workflow start time which the - workflow is allowed to run before it gets terminated. + workflow is allowed to run before it gets terminated. Defaults to 24h when unset task_graph_type: $ref: "#/definitions/TaskGraphType" @@ -3974,6 +4189,7 @@ definitions: description: The namespace that owns this task graph log. name: type: string + maxLength: 255 description: > The name of this graph, to appear in URLs. Must be unique per-namespace. @@ -4049,6 +4265,7 @@ definitions: description: The client-generated UUID of the given graph node. name: type: string + maxLength: 255 x-nullable: true description: > A client-specified name for the node. If provided, this must be @@ -4363,8 +4580,8 @@ definitions: resources: type: object description: > - The resources requested for this particular node. If resources are not - specified resource_class is used, if it is not set the standard resource + The resources requested for this particular node. If resources are not + specified resource_class is used, if it is not set the standard resource // defaults are used properties: cpu: @@ -4393,6 +4610,32 @@ definitions: allowed to run indefinitely (subject to the server’s global limits). type: number x-nullable: true + storage: + description: > + Storage options for mounting persistent volumes. + type: array + x-omitempty: true + items: + $ref: "#/definitions/TGUDFStorage" + + TGUDFStorage: + description: Storage options for mounting persistent volumes. + type: object + properties: + path: + description: > + Mount path for the attached volume. + type: string + size: + description: > + Storage size. + type: string + example: 8Gi + storage_class: + description: > + Storage class to use for creating the volume. + type: string + example: gp2 FragmentMetadata: description: Fragment Metadata @@ -4591,6 +4834,12 @@ definitions: type: object description: config to use to retrieve the contents $ref: "#/definitions/TileDBConfig" + fragments: + description: list of fragments in the array to consolidate + type: array + x-omitempty: true + items: + type: string ArrayVacuumRequest: description: Request to consolidate an array @@ -4601,6 +4850,75 @@ definitions: description: config to use to retrieve the contents $ref: "#/definitions/TileDBConfig" + Enumeration: + description: The enumerations of a single attribute + type: object + properties: + name: + type: string + path_name: + type: string + type: + type: string + cell_val_num: + type: integer + format: uint32 + ordered: + type: boolean + data: + type: array + items: + type: integer + format: uint8 + offsets: + type: array + items: + type: integer + format: uint8 + + LoadEnumerationsRequest: + description: Request to return enumerations for attributes + type: object + properties: + config: + type: object + description: config to use to retrieve the contents + $ref: "#/definitions/TileDBConfig" + enumerations: + type: array + items: + type: string + + LoadEnumerationsResponse: + description: Contains the enumerations of the array's attributes + type: object + properties: + enumerations: + type: array + items: + $ref: '#/definitions/Enumeration' + + LoadArraySchemaRequest: + description: Request to load an array schema + type: object + properties: + config: + type: object + description: config to use to retrieve the contents + $ref: "#/definitions/TileDBConfig" + + LoadArraySchemaResponse: + description: Contains the latest schema and all schemas for the opened array + type: object + properties: + latest_array_schema: + $ref: "#/definitions/ArraySchema" + all_array_schemas: + description: map of all array schemas + type: object + additionalProperties: + $ref: "#/definitions/ArraySchema" + RetryStrategy: description: RetryStrategy provides controls on how to retry a taskgraph node type: object @@ -4647,6 +4965,108 @@ definitions: # Retry task transient errors - OnTransientError + AssetBackingType: + description: The technology that an asset is backed by + type: string + enum: + # Array + - array + # Groups + - group + + AssetOwnershipLevel: + description: The ownership level of the asset + type: string + enum: + # Owned + - owned + # Shared + - shared + + MetadataStringified: + type: object + description: The user's TileDB metadata + properties: + entries: + description: List of metadata entries + type: array + x-omitempty: true + items: + $ref: "#/definitions/MetadataStringifiedEntry" + + AssetInfo: + description: metadata of an asset + type: object + properties: + uuid: + description: unique ID of a registered asset + type: string + example: "00000000-0000-0000-0000-000000000000" + asset_type: + description: Asset type of an asset + $ref: "#/definitions/AssetType" + asset_backing_type: + description: Asset type of an asset + $ref: "#/definitions/AssetBackingType" + asset_ownership_level: + description: Ownership level of the asset + $ref: "#/definitions/AssetOwnershipLevel" + namespace_name: + description: namespace_name that the asset is registered to + type: string + example: "user1" + namespace_uuid: + description: namespace_uuid that the asset is registered to + type: string + example: "00000000-0000-0000-0000-000000000000" + name: + description: name of asset + type: string + example: myarray1 + mime_type: + description: mime type of the asset + type: string + example: application/vnd.tiledb.v1.array + created_at: + description: "Time when the asset was created (rfc3339)" + type: string + format: date-time + readOnly: true + metadata: + description: metadata for the asset, only included when expanded + $ref: "#/definitions/MetadataStringified" + + AssetListResponse: + description: Asset associated with a TileDB Cloud account + type: object + properties: + data: + description: asset information for each asset + type: array + x-omitempty: true + items: + $ref: "#/definitions/AssetInfo" + pagination_metadata: + $ref: "#/definitions/PaginationMetadata" + + ChangeAssetCredentialsRequest: + description: Request body to change the credentials of the given assets + type: object + required: + - access_credentials + - asset_uuids + properties: + access_credentials: + description: The name or uuid of the access credentials + type: string + x-nullable: false + asset_uuids: + description: The list of asset uuids to have their credentials changed + type: array + items: + type: string + x-nullable: false + paths: /.stats: get: @@ -4707,6 +5127,11 @@ paths: description: namespace array is in (an organization name or user's username) type: string required: true + - name: with_metadata + in: query + description: include the metadata of the arrays + type: boolean + required: false get: description: get metadata on all arrays in a namespace tags: @@ -5218,6 +5643,82 @@ paths: schema: $ref: "#/definitions/Error" + /arrays/{namespace}/{array}/enumerations: + parameters: + - name: namespace + in: path + description: namespace array is in (an organization name or user's username) + type: string + required: true + - name: array + in: path + description: name/uri of array that is url-encoded + type: string + required: true + post: + description: request to get the enumerations of the arrays' attributes + tags: + - array + operationId: loadEnumerations + parameters: + - name: load_enumerations_request + in: body + description: Load Enumerations Request + schema: + $ref: "#/definitions/LoadEnumerationsRequest" + required: true + responses: + 200: + description: enumerations returned successfully + schema: + $ref: "#/definitions/LoadEnumerationsResponse" + 404: + description: Array does not exist or user does not have permissions to access it + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /arrays/{namespace}/{array}/schema: + parameters: + - name: namespace + in: path + description: namespace array is in (an organization name or user's username) + type: string + required: true + - name: array + in: path + description: name/uri of array that is url-encoded + type: string + required: true + post: + description: request to get the array schema + tags: + - array + operationId: loadArraySchema + parameters: + - name: load_array_schema_request + in: body + description: Load Array Schema Request + schema: + $ref: "#/definitions/LoadArraySchemaRequest" + required: true + responses: + 200: + description: array schemas returned successfully + schema: + $ref: "#/definitions/LoadArraySchemaResponse" + 404: + description: Array does not exist or user does not have permissions to access it + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + /arrays/{namespace}/{array}/share: parameters: - name: namespace @@ -6326,7 +6827,7 @@ paths: in: body description: organization details to update schema: - $ref: "#/definitions/Organization" + $ref: "#/definitions/OrganizationUpdate" required: true responses: 204: @@ -6588,6 +7089,12 @@ paths: description: flag to create a token with expiration of 30 days, default is false type: string required: false + - name: expires + in: query + description: Expiration date for token, if empty token defaults to 30 minutes + type: string + format: date-time + required: false get: tags: - user @@ -7313,8 +7820,6 @@ paths: description: status of running notebook schema: $ref: "#/definitions/NotebookStatus" - 202: - description: Notebook server is pending 402: description: Payment required schema: @@ -7862,6 +8367,78 @@ paths: schema: $ref: "#/definitions/Error" + /invitations/share_payment/{namespace}: + parameters: + - name: namespace + in: path + description: name or UUID of namespace sharing their payment info + type: string + required: true + post: + tags: + - invitation + description: | + Sends email to multiple recipients allowing them to use the payment + instrument provided by the source namespace. + operationId: sharePayment + parameters: + - name: email_invite + in: body + description: | + Recipients of the invitation. These may only be namespaces, + not email addresses. + schema: + type: object + properties: + namespaces: + type: array + items: + type: string + responses: + 204: + description: Email sent successfully to user for email confirmation link + 207: + description: Only a portion of the invitations succeeded, some failed + schema: + $ref: "#/definitions/InvitationFailedRecipients" + 500: + description: Could not reach any recipients + schema: + $ref: "#/definitions/InvitationFailedRecipients" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /invitations/share_payment/{namespace}/{target}: + parameters: + - name: namespace + in: path + description: name or UUID of namespace sharing their payment info + type: string + required: true + - name: target + in: path + description: name or UUID of recipient namespace + type: string + required: true + delete: + tags: + - invitation + description: Revokes invitation from the source namespace to the target. + operationId: cancelSharePayment + responses: + 204: + description: Invitation cancelled successfully + 404: + description: No invitation was found to cancel + default: + description: error response + schema: + $ref: "#/definitions/Error" + /arrays/browser/shared: parameters: - name: page @@ -7886,7 +8463,7 @@ paths: type: string - name: orderby in: query - description: sort by which field valid values include last_accessed, size, name + description: sort by which field valid values include size, name required: false type: string - name: permissions @@ -7942,6 +8519,11 @@ paths: collectionFormat: multi items: type: string + - name: with_metadata + in: query + description: include the metadata of the array + type: boolean + required: false get: tags: - array @@ -8032,7 +8614,7 @@ paths: type: string - name: orderby in: query - description: sort by which field valid values include last_accessed, size, name + description: sort by which field valid values include size, name required: false type: string - name: permissions @@ -8080,6 +8662,11 @@ paths: collectionFormat: multi items: type: string + - name: with_metadata + in: query + description: include the metadata of the array + type: boolean + required: false get: tags: - array @@ -8162,7 +8749,7 @@ paths: type: string - name: orderby in: query - description: sort by which field valid values include last_accessed, size, name + description: sort by which field valid values include size, name required: false type: string - name: permissions @@ -8210,6 +8797,11 @@ paths: collectionFormat: multi items: type: string + - name: with_metadata + in: query + description: include the metadata of the array + type: boolean + required: false get: tags: - array @@ -8906,6 +9498,11 @@ paths: description: search only the children of the groups with this uuid type: string required: false + - name: with_metadata + in: query + description: include the metadata of the groups + type: boolean + required: false responses: 200: description: the group contents @@ -9016,6 +9613,11 @@ paths: collectionFormat: multi items: type: string + - name: with_metadata + in: query + description: include the metadata of the groups + type: boolean + required: false responses: 200: description: the group contents @@ -9112,6 +9714,11 @@ paths: description: search only the children of the groups with this uuid type: string required: false + - name: with_metadata + in: query + description: include the metadata of the groups + type: boolean + required: false responses: 200: description: the group contents @@ -9467,7 +10074,7 @@ paths: 200: description: Activity logs of group contents along with the pagination metadata schema: - $ref: "#/definitions/GroupActivityResponse" + $ref: "#/definitions/GroupContentActivityResponse" 502: description: Bad Gateway default: @@ -9520,6 +10127,11 @@ paths: description: Include logs from only this user. type: string required: false + - name: status + in: query + description: Filter to only return these statuses + type: string + required: false - name: search in: query description: search string that will look at name. @@ -9736,10 +10348,8 @@ paths: tags: - task_graph_logs responses: - 202: - description: Information about the task graph execution. - schema: - $ref: "#/definitions/TaskGraphLog" + 204: + description: Graph stopped successfully 502: description: Bad Gateway default: @@ -9872,6 +10482,11 @@ paths: description: The UUID of the task graph entry. type: string required: true + - name: root_task_graph_uuid + in: query + description: UUID of the root taskgraph that this graph is assosiated with + type: string + required: false post: description: > Submit a single task graph for execution. @@ -10048,3 +10663,153 @@ paths: description: error response schema: $ref: "#/definitions/Error" + + /assets/{namespace}: + parameters: + - name: namespace + in: path + description: namespace + type: string + required: true + - name: asset_type + in: query + description: asset_type to filter to + type: string + required: false + - name: ownership_level + in: query + description: ownership_level to filter to (owned, shared) + type: string + required: false + - name: depth + in: query + description: depth of assets to be returned + type: string + required: false + - name: search + in: query + description: search string + type: string + required: false + - name: page + in: query + description: pagination offset + type: integer + required: false + - name: per_page + in: query + description: pagination limit + type: integer + required: false + - name: order_by + in: query + description: | + order by a specific property, defaults to `created_at desc` + supported values are created_at, name, asset_type + can also include the order type (asc or desc) separated by space + i.e. `name asc` `name desc` etc. + type: string + required: false + - name: expand + in: query + description: expansion option for the AssetInfo object to be added to the response + type: string + required: false + get: + tags: + - assets + description: List assets in a namespace + operationId: listAssets + responses: + 200: + description: Successful list of assets + schema: + $ref: "#/definitions/AssetListResponse" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /public_assets: + parameters: + - name: asset_type + in: query + description: asset_type to filter to + type: string + required: false + - name: depth + in: query + description: depth of assets to be returned + type: string + required: false + - name: search + in: query + description: search string + type: string + required: false + - name: page + in: query + description: pagination offset + type: integer + required: false + - name: per_page + in: query + description: pagination limit + type: integer + required: false + - name: order_by + in: query + description: | + order by a specific property, defaults to `created_at desc` + supported values are created_at, name, asset_type + can also include the order type (asc or desc) separated by space + i.e. `name asc` `name desc` etc. + type: string + required: false + get: + tags: + - assets + description: List public assets + operationId: listPublicAssets + responses: + 200: + description: Successful list of assets + schema: + $ref: "#/definitions/AssetListResponse" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /assets/{namespace}/change_credentials: + parameters: + - name: namespace + in: path + description: The namespace to send the request on behalf of. + type: string + required: true + post: + tags: + - assets + description: Changes the access credentials to the given assets + operationId: changeAssetCredentials + parameters: + - name: changeCredentialsRequest + in: body + description: aws access credentials to store for a namespace + schema: + $ref: "#/definitions/ChangeAssetCredentialsRequest" + required: true + responses: + 204: + description: Credentials changed successfully + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" diff --git a/src/main/java/io/tiledb/cloud/rest_api/ApiCallback.java b/src/main/java/io/tiledb/cloud/rest_api/ApiCallback.java index dc8ff00..1b8300d 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/ApiCallback.java +++ b/src/main/java/io/tiledb/cloud/rest_api/ApiCallback.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package io.tiledb.cloud.rest_api; + import java.util.Map; import java.util.List; diff --git a/src/main/java/io/tiledb/cloud/rest_api/ApiClient.java b/src/main/java/io/tiledb/cloud/rest_api/ApiClient.java index bd031da..a49d42d 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/ApiClient.java +++ b/src/main/java/io/tiledb/cloud/rest_api/ApiClient.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,12 +13,6 @@ package io.tiledb.cloud.rest_api; -import io.tiledb.cloud.rest_api.auth.ApiKeyAuth; -import io.tiledb.cloud.rest_api.auth.Authentication; -import io.tiledb.cloud.rest_api.auth.HttpBasicAuth; -import io.tiledb.cloud.rest_api.auth.OAuth; -import io.tiledb.cloud.rest_api.auth.OAuthFlow; -import io.tiledb.cloud.rest_api.auth.RetryingOAuth; import okhttp3.*; import okhttp3.internal.http.HttpMethod; import okhttp3.internal.tls.OkHostnameVerifier; @@ -56,6 +50,13 @@ import java.util.regex.Matcher; import java.util.regex.Pattern; +import io.tiledb.cloud.rest_api.auth.Authentication; +import io.tiledb.cloud.rest_api.auth.HttpBasicAuth; +import io.tiledb.cloud.rest_api.auth.ApiKeyAuth; +import io.tiledb.cloud.rest_api.auth.OAuth; +import io.tiledb.cloud.rest_api.auth.RetryingOAuth; +import io.tiledb.cloud.rest_api.auth.OAuthFlow; + /** *

ApiClient class.

*/ @@ -204,7 +205,7 @@ private void init() { json = new JSON(); // Set default User-Agent. - setUserAgent("OpenAPI-Generator/2.2.19/java"); + setUserAgent("OpenAPI-Generator/2.17.51/java"); authentications = new HashMap(); } @@ -350,7 +351,7 @@ public DateFormat getDateFormat() { *

Setter for the field dateFormat.

* * @param dateFormat a {@link java.text.DateFormat} object - * @return a {@link ApiClient} object + * @return a {@link io.tiledb.cloud.rest_api.ApiClient} object */ public ApiClient setDateFormat(DateFormat dateFormat) { this.json.setDateFormat(dateFormat); @@ -361,7 +362,7 @@ public ApiClient setDateFormat(DateFormat dateFormat) { *

Set SqlDateFormat.

* * @param dateFormat a {@link java.text.DateFormat} object - * @return a {@link ApiClient} object + * @return a {@link io.tiledb.cloud.rest_api.ApiClient} object */ public ApiClient setSqlDateFormat(DateFormat dateFormat) { this.json.setSqlDateFormat(dateFormat); @@ -372,7 +373,7 @@ public ApiClient setSqlDateFormat(DateFormat dateFormat) { *

Set OffsetDateTimeFormat.

* * @param dateFormat a {@link java.time.format.DateTimeFormatter} object - * @return a {@link ApiClient} object + * @return a {@link io.tiledb.cloud.rest_api.ApiClient} object */ public ApiClient setOffsetDateTimeFormat(DateTimeFormatter dateFormat) { this.json.setOffsetDateTimeFormat(dateFormat); @@ -383,7 +384,7 @@ public ApiClient setOffsetDateTimeFormat(DateTimeFormatter dateFormat) { *

Set LocalDateFormat.

* * @param dateFormat a {@link java.time.format.DateTimeFormatter} object - * @return a {@link ApiClient} object + * @return a {@link io.tiledb.cloud.rest_api.ApiClient} object */ public ApiClient setLocalDateFormat(DateTimeFormatter dateFormat) { this.json.setLocalDateFormat(dateFormat); @@ -394,7 +395,7 @@ public ApiClient setLocalDateFormat(DateTimeFormatter dateFormat) { *

Set LenientOnJson.

* * @param lenientOnJson a boolean - * @return a {@link ApiClient} object + * @return a {@link io.tiledb.cloud.rest_api.ApiClient} object */ public ApiClient setLenientOnJson(boolean lenientOnJson) { this.json.setLenientOnJson(lenientOnJson); @@ -896,7 +897,7 @@ public String escapeString(String str) { * @param response HTTP response * @param returnType The type of the Java object * @return The deserialized Java object - * @throws ApiException If fail to deserialize response body, i.e. cannot read response body + * @throws io.tiledb.cloud.rest_api.ApiException If fail to deserialize response body, i.e. cannot read response body * or the Content-Type of the response is not supported. */ @SuppressWarnings("unchecked") @@ -957,7 +958,7 @@ public T deserialize(Response response, Type returnType) throws ApiException * @param obj The Java object * @param contentType The request Content-Type * @return The serialized request body - * @throws ApiException If fail to serialize the given object + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the given object */ public RequestBody serialize(Object obj, String contentType) throws ApiException { if (obj instanceof byte[]) { @@ -987,7 +988,7 @@ public RequestBody serialize(Object obj, String contentType) throws ApiException * Download file from the given response. * * @param response An instance of the Response object - * @throws ApiException If fail to read file content from response and write to disk + * @throws io.tiledb.cloud.rest_api.ApiException If fail to read file content from response and write to disk * @return Downloaded file */ public File downloadFileFromResponse(Response response) throws ApiException { @@ -1051,7 +1052,7 @@ public File prepareDownloadFile(Response response) throws IOException { * @param Type * @param call An instance of the Call object * @return ApiResponse<T> - * @throws ApiException If fail to execute the call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to execute the call */ public ApiResponse execute(Call call) throws ApiException { return execute(call, null); @@ -1066,7 +1067,7 @@ public ApiResponse execute(Call call) throws ApiException { * @return ApiResponse object containing response status, headers and * data, which is a Java object deserialized from response body and would be null * when returnType is null. - * @throws ApiException If fail to execute the call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to execute the call */ public ApiResponse execute(Call call, Type returnType) throws ApiException { try { @@ -1130,7 +1131,7 @@ public void onResponse(Call call, Response response) throws IOException { * @param response Response * @param returnType Return type * @return Type - * @throws ApiException If the response has an unsuccessful status code or + * @throws io.tiledb.cloud.rest_api.ApiException If the response has an unsuccessful status code or * fail to deserialize the response body */ public T handleResponse(Response response, Type returnType) throws ApiException { @@ -1177,7 +1178,7 @@ public T handleResponse(Response response, Type returnType) throws ApiExcept * @param authNames The authentications to apply * @param callback Callback for upload/download progress * @return The HTTP call - * @throws ApiException If fail to serialize the request body object + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object */ public Call buildCall(String baseUrl, String path, String method, List queryParams, List collectionQueryParams, Object body, Map headerParams, Map cookieParams, Map formParams, String[] authNames, ApiCallback callback) throws ApiException { Request request = buildRequest(baseUrl, path, method, queryParams, collectionQueryParams, body, headerParams, cookieParams, formParams, authNames, callback); @@ -1200,7 +1201,7 @@ public Call buildCall(String baseUrl, String path, String method, List que * @param authNames The authentications to apply * @param callback Callback for upload/download progress * @return The HTTP request - * @throws ApiException If fail to serialize the request body object + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object */ public Request buildRequest(String baseUrl, String path, String method, List queryParams, List collectionQueryParams, Object body, Map headerParams, Map cookieParams, Map formParams, String[] authNames, ApiCallback callback) throws ApiException { // aggregate queryParams (non-collection) and collectionQueryParams into allQueryParams @@ -1352,7 +1353,7 @@ public void processCookieParams(Map cookieParams, Request.Builde * @param payload HTTP request body * @param method HTTP method * @param uri URI - * @throws ApiException If fails to update the parameters + * @throws io.tiledb.cloud.rest_api.ApiException If fails to update the parameters */ public void updateParamsForAuth(String[] authNames, List queryParams, Map headerParams, Map cookieParams, String payload, String method, URI uri) throws ApiException { @@ -1563,7 +1564,7 @@ private KeyStore newEmptyKeyStore(char[] password) throws GeneralSecurityExcepti * * @param requestBody The HTTP request object * @return The string representation of the HTTP request body - * @throws ApiException If fail to serialize the request body object into a string + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object into a string */ private String requestBodyToString(RequestBody requestBody) throws ApiException { if (requestBody != null) { diff --git a/src/main/java/io/tiledb/cloud/rest_api/ApiException.java b/src/main/java/io/tiledb/cloud/rest_api/ApiException.java index c43e9e4..910ac56 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/ApiException.java +++ b/src/main/java/io/tiledb/cloud/rest_api/ApiException.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,13 +16,12 @@ import java.util.Map; import java.util.List; -import javax.ws.rs.core.GenericType; /** *

ApiException class.

*/ @SuppressWarnings("serial") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class ApiException extends Exception { private int code = 0; private Map> responseHeaders = null; diff --git a/src/main/java/io/tiledb/cloud/rest_api/ApiResponse.java b/src/main/java/io/tiledb/cloud/rest_api/ApiResponse.java index 838d1f3..c217242 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/ApiResponse.java +++ b/src/main/java/io/tiledb/cloud/rest_api/ApiResponse.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/io/tiledb/cloud/rest_api/ArrayApi.java b/src/main/java/io/tiledb/cloud/rest_api/ArrayApi.java new file mode 100644 index 0000000..61cbcfc --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/ArrayApi.java @@ -0,0 +1,6247 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.17.51 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api; + + +import com.google.gson.reflect.TypeToken; + + + +import io.tiledb.cloud.rest_api.model.ArrayActivityLog; +import io.tiledb.cloud.rest_api.model.ArrayBrowserData; +import io.tiledb.cloud.rest_api.model.ArrayBrowserSidebar; +import io.tiledb.cloud.rest_api.model.ArrayConsolidationRequest; +import io.tiledb.cloud.rest_api.model.ArrayEndTimestampData; +import io.tiledb.cloud.rest_api.model.ArrayInfo; +import io.tiledb.cloud.rest_api.model.ArrayInfoUpdate; +import io.tiledb.cloud.rest_api.model.ArrayMetadata; +import io.tiledb.cloud.rest_api.model.ArraySample; +import io.tiledb.cloud.rest_api.model.ArraySchema; +import io.tiledb.cloud.rest_api.model.ArraySharing; +import io.tiledb.cloud.rest_api.model.ArrayVacuumRequest; +import java.math.BigDecimal; +import io.tiledb.cloud.rest_api.model.FragmentInfo; +import io.tiledb.cloud.rest_api.model.FragmentInfoRequest; +import io.tiledb.cloud.rest_api.model.LastAccessedArray; +import io.tiledb.cloud.rest_api.model.LoadArraySchemaRequest; +import io.tiledb.cloud.rest_api.model.LoadArraySchemaResponse; +import io.tiledb.cloud.rest_api.model.LoadEnumerationsRequest; +import io.tiledb.cloud.rest_api.model.LoadEnumerationsResponse; +import io.tiledb.cloud.rest_api.model.MaxBufferSizes; +import io.tiledb.cloud.rest_api.model.NonEmptyDomain; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class ArrayApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public ArrayApi() { + this(Configuration.getDefaultApiClient()); + } + + public ArrayApi(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 arrayActivityLog + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param start Start time of window of fetch logs, unix epoch in seconds (default: seven days + * ago) (optional) + * @param end End time of window of fetch logs, unix epoch in seconds (default: current utc + * timestamp) (optional) + * @param eventTypes Refer to ActivityEventType for possible values (optional) + * @param taskId Array task ID To filter activity to (optional) + * @param hasTaskId Excludes activity log results that do not contain an array task UUID + * (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 log of array activity -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call arrayActivityLogCall( + String namespace, + String array, + Integer start, + Integer end, + String eventTypes, + String taskId, + Boolean hasTaskId, + 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 = "/arrays/{namespace}/{array}/activity" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (start != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("start", start)); + } + + if (end != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("end", end)); + } + + if (eventTypes != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("event_types", eventTypes)); + } + + if (taskId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("task_id", taskId)); + } + + if (hasTaskId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("has_task_id", hasTaskId)); + } + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call arrayActivityLogValidateBeforeCall(String namespace, String array, Integer start, Integer end, String eventTypes, String taskId, Boolean hasTaskId, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling arrayActivityLog(Async)"); + } + + // verify the required parameter 'array' is set + if (array == null) { + throw new ApiException("Missing the required parameter 'array' when calling arrayActivityLog(Async)"); + } + + + okhttp3.Call localVarCall = arrayActivityLogCall(namespace, array, start, end, eventTypes, taskId, hasTaskId, _callback); + return localVarCall; + + } + + /** + * get array activity logs + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param start Start time of window of fetch logs, unix epoch in seconds (default: seven days + * ago) (optional) + * @param end End time of window of fetch logs, unix epoch in seconds (default: current utc + * timestamp) (optional) + * @param eventTypes Refer to ActivityEventType for possible values (optional) + * @param taskId Array task ID To filter activity to (optional) + * @param hasTaskId Excludes activity log results that do not contain an array task UUID + * (optional) + * @return List<ArrayActivityLog> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 log of array activity -
502 Bad Gateway -
0 error response -
+ */ + public List arrayActivityLog( + String namespace, + String array, + Integer start, + Integer end, + String eventTypes, + String taskId, + Boolean hasTaskId) + throws ApiException { + ApiResponse> localVarResp = arrayActivityLogWithHttpInfo(namespace, array, start, end, eventTypes, taskId, hasTaskId); + return localVarResp.getData(); + } + + /** + * get array activity logs + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param start Start time of window of fetch logs, unix epoch in seconds (default: seven days + * ago) (optional) + * @param end End time of window of fetch logs, unix epoch in seconds (default: current utc + * timestamp) (optional) + * @param eventTypes Refer to ActivityEventType for possible values (optional) + * @param taskId Array task ID To filter activity to (optional) + * @param hasTaskId Excludes activity log results that do not contain an array task UUID + * (optional) + * @return ApiResponse<List<ArrayActivityLog>> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 log of array activity -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse> arrayActivityLogWithHttpInfo( + String namespace, + String array, + Integer start, + Integer end, + String eventTypes, + String taskId, + Boolean hasTaskId) + throws ApiException { + okhttp3.Call localVarCall = arrayActivityLogValidateBeforeCall(namespace, array, start, end, eventTypes, taskId, hasTaskId, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) get array activity logs + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param start Start time of window of fetch logs, unix epoch in seconds (default: seven days + * ago) (optional) + * @param end End time of window of fetch logs, unix epoch in seconds (default: current utc + * timestamp) (optional) + * @param eventTypes Refer to ActivityEventType for possible values (optional) + * @param taskId Array task ID To filter activity to (optional) + * @param hasTaskId Excludes activity log results that do not contain an array task UUID + * (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 log of array activity -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call arrayActivityLogAsync( + String namespace, + String array, + Integer start, + Integer end, + String eventTypes, + String taskId, + Boolean hasTaskId, + final ApiCallback> _callback) + throws ApiException { + + okhttp3.Call localVarCall = arrayActivityLogValidateBeforeCall(namespace, array, start, end, eventTypes, taskId, hasTaskId, _callback); + Type localVarReturnType = new TypeToken>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for arraysBrowserOwnedGet + * + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param search search string that will look at name, namespace or description fields (optional) + * @param namespace namespace (optional) + * @param orderby sort by which field valid values include size, name (optional) + * @param permissions permissions valid values include read, read_write, write, admin (optional) + * @param tag tag to search for, more than one can be included (optional) + * @param excludeTag tags to exclude matching array in results, more than one can be included + * (optional) + * @param fileType file_type to search for, more than one can be included (optional) + * @param excludeFileType file_type to exclude matching array in results, more than one can be + * included (optional) + * @param fileProperty file_property key-value pair (comma separated, i.e. key,value) to search + * for, more than one can be included (optional) + * @param withMetadata include the metadata of the array (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Array of array info that are owned directly by user or user's organizations -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call arraysBrowserOwnedGetCall( + Integer page, + Integer perPage, + String search, + String namespace, + String orderby, + String permissions, + List tag, + List excludeTag, + List fileType, + List excludeFileType, + List fileProperty, + Boolean withMetadata, + 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 = "/arrays/browser/owned"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + if (perPage != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("per_page", perPage)); + } + + if (search != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("search", search)); + } + + if (namespace != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("namespace", namespace)); + } + + if (orderby != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orderby", orderby)); + } + + if (permissions != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("permissions", permissions)); + } + + if (tag != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "tag", tag)); + } + + if (excludeTag != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "exclude_tag", excludeTag)); + } + + if (fileType != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "file_type", fileType)); + } + + if (excludeFileType != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "exclude_file_type", excludeFileType)); + } + + if (fileProperty != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "file_property", fileProperty)); + } + + if (withMetadata != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("with_metadata", withMetadata)); + } + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call arraysBrowserOwnedGetValidateBeforeCall(Integer page, Integer perPage, String search, String namespace, String orderby, String permissions, List tag, List excludeTag, List fileType, List excludeFileType, List fileProperty, Boolean withMetadata, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = arraysBrowserOwnedGetCall(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, withMetadata, _callback); + return localVarCall; + + } + + /** + * Fetch a list of all arrays that are owned directly by user or user's organizations + * + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param search search string that will look at name, namespace or description fields (optional) + * @param namespace namespace (optional) + * @param orderby sort by which field valid values include size, name (optional) + * @param permissions permissions valid values include read, read_write, write, admin (optional) + * @param tag tag to search for, more than one can be included (optional) + * @param excludeTag tags to exclude matching array in results, more than one can be included + * (optional) + * @param fileType file_type to search for, more than one can be included (optional) + * @param excludeFileType file_type to exclude matching array in results, more than one can be + * included (optional) + * @param fileProperty file_property key-value pair (comma separated, i.e. key,value) to search + * for, more than one can be included (optional) + * @param withMetadata include the metadata of the array (optional) + * @return ArrayBrowserData + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Array of array info that are owned directly by user or user's organizations -
502 Bad Gateway -
0 error response -
+ */ + public ArrayBrowserData arraysBrowserOwnedGet( + Integer page, + Integer perPage, + String search, + String namespace, + String orderby, + String permissions, + List tag, + List excludeTag, + List fileType, + List excludeFileType, + List fileProperty, + Boolean withMetadata) + throws ApiException { + ApiResponse localVarResp = arraysBrowserOwnedGetWithHttpInfo(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, withMetadata); + return localVarResp.getData(); + } + + /** + * Fetch a list of all arrays that are owned directly by user or user's organizations + * + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param search search string that will look at name, namespace or description fields (optional) + * @param namespace namespace (optional) + * @param orderby sort by which field valid values include size, name (optional) + * @param permissions permissions valid values include read, read_write, write, admin (optional) + * @param tag tag to search for, more than one can be included (optional) + * @param excludeTag tags to exclude matching array in results, more than one can be included + * (optional) + * @param fileType file_type to search for, more than one can be included (optional) + * @param excludeFileType file_type to exclude matching array in results, more than one can be + * included (optional) + * @param fileProperty file_property key-value pair (comma separated, i.e. key,value) to search + * for, more than one can be included (optional) + * @param withMetadata include the metadata of the array (optional) + * @return ApiResponse<ArrayBrowserData> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Array of array info that are owned directly by user or user's organizations -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse arraysBrowserOwnedGetWithHttpInfo( + Integer page, + Integer perPage, + String search, + String namespace, + String orderby, + String permissions, + List tag, + List excludeTag, + List fileType, + List excludeFileType, + List fileProperty, + Boolean withMetadata) + throws ApiException { + okhttp3.Call localVarCall = arraysBrowserOwnedGetValidateBeforeCall(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, withMetadata, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Fetch a list of all arrays that are owned directly by user or user's + * organizations + * + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param search search string that will look at name, namespace or description fields (optional) + * @param namespace namespace (optional) + * @param orderby sort by which field valid values include size, name (optional) + * @param permissions permissions valid values include read, read_write, write, admin (optional) + * @param tag tag to search for, more than one can be included (optional) + * @param excludeTag tags to exclude matching array in results, more than one can be included + * (optional) + * @param fileType file_type to search for, more than one can be included (optional) + * @param excludeFileType file_type to exclude matching array in results, more than one can be + * included (optional) + * @param fileProperty file_property key-value pair (comma separated, i.e. key,value) to search + * for, more than one can be included (optional) + * @param withMetadata include the metadata of the array (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Array of array info that are owned directly by user or user's organizations -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call arraysBrowserOwnedGetAsync( + Integer page, + Integer perPage, + String search, + String namespace, + String orderby, + String permissions, + List tag, + List excludeTag, + List fileType, + List excludeFileType, + List fileProperty, + Boolean withMetadata, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = arraysBrowserOwnedGetValidateBeforeCall(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, withMetadata, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for arraysBrowserOwnedSidebarGet + * + * @param fileType file_type to search for, more than one can be included (optional) + * @param excludeFileType file_type to exclude matching array in results, more than one can be + * included (optional) + * @param fileProperty file_property key-value pair (comma separated, i.e. key,value) to search + * for, more than one can be included (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Array of array info that are owned directly by user or user's organizations -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call arraysBrowserOwnedSidebarGetCall( + List fileType, + List excludeFileType, + List fileProperty, + 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 = "/arrays/browser/owned/sidebar"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (fileType != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "file_type", fileType)); + } + + if (excludeFileType != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "exclude_file_type", excludeFileType)); + } + + if (fileProperty != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "file_property", fileProperty)); + } + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call arraysBrowserOwnedSidebarGetValidateBeforeCall(List fileType, List excludeFileType, List fileProperty, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = arraysBrowserOwnedSidebarGetCall(fileType, excludeFileType, fileProperty, _callback); + return localVarCall; + + } + + /** + * Fetch a sidebar for arrays that are owned directly by user or user's organizations + * + * @param fileType file_type to search for, more than one can be included (optional) + * @param excludeFileType file_type to exclude matching array in results, more than one can be + * included (optional) + * @param fileProperty file_property key-value pair (comma separated, i.e. key,value) to search + * for, more than one can be included (optional) + * @return ArrayBrowserSidebar + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Array of array info that are owned directly by user or user's organizations -
502 Bad Gateway -
0 error response -
+ */ + public ArrayBrowserSidebar arraysBrowserOwnedSidebarGet( + List fileType, List excludeFileType, List fileProperty) + throws ApiException { + ApiResponse localVarResp = arraysBrowserOwnedSidebarGetWithHttpInfo(fileType, excludeFileType, fileProperty); + return localVarResp.getData(); + } + + /** + * Fetch a sidebar for arrays that are owned directly by user or user's organizations + * + * @param fileType file_type to search for, more than one can be included (optional) + * @param excludeFileType file_type to exclude matching array in results, more than one can be + * included (optional) + * @param fileProperty file_property key-value pair (comma separated, i.e. key,value) to search + * for, more than one can be included (optional) + * @return ApiResponse<ArrayBrowserSidebar> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Array of array info that are owned directly by user or user's organizations -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse arraysBrowserOwnedSidebarGetWithHttpInfo( + List fileType, List excludeFileType, List fileProperty) + throws ApiException { + okhttp3.Call localVarCall = arraysBrowserOwnedSidebarGetValidateBeforeCall(fileType, excludeFileType, fileProperty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Fetch a sidebar for arrays that are owned directly by user or user's + * organizations + * + * @param fileType file_type to search for, more than one can be included (optional) + * @param excludeFileType file_type to exclude matching array in results, more than one can be + * included (optional) + * @param fileProperty file_property key-value pair (comma separated, i.e. key,value) to search + * for, more than one can be included (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Array of array info that are owned directly by user or user's organizations -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call arraysBrowserOwnedSidebarGetAsync( + List fileType, + List excludeFileType, + List fileProperty, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = arraysBrowserOwnedSidebarGetValidateBeforeCall(fileType, excludeFileType, fileProperty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for arraysBrowserPublicGet + * + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param search search string that will look at name, namespace or description fields (optional) + * @param namespace namespace (optional) + * @param orderby sort by which field valid values include size, name (optional) + * @param permissions permissions valid values include read, read_write, write, admin (optional) + * @param tag tag to search for, more than one can be included (optional) + * @param excludeTag tags to exclude matching array in results, more than one can be included + * (optional) + * @param fileType file_type to search for, more than one can be included (optional) + * @param excludeFileType file_type to exclude matching array in results, more than one can be + * included (optional) + * @param fileProperty file_property key-value pair (comma separated, i.e. key,value) to search + * for, more than one can be included (optional) + * @param withMetadata include the metadata of the array (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Array of array info that has been shared publically -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call arraysBrowserPublicGetCall( + Integer page, + Integer perPage, + String search, + String namespace, + String orderby, + String permissions, + List tag, + List excludeTag, + List fileType, + List excludeFileType, + List fileProperty, + Boolean withMetadata, + 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 = "/arrays/browser/public"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + if (perPage != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("per_page", perPage)); + } + + if (search != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("search", search)); + } + + if (namespace != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("namespace", namespace)); + } + + if (orderby != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orderby", orderby)); + } + + if (permissions != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("permissions", permissions)); + } + + if (tag != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "tag", tag)); + } + + if (excludeTag != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "exclude_tag", excludeTag)); + } + + if (fileType != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "file_type", fileType)); + } + + if (excludeFileType != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "exclude_file_type", excludeFileType)); + } + + if (fileProperty != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "file_property", fileProperty)); + } + + if (withMetadata != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("with_metadata", withMetadata)); + } + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call arraysBrowserPublicGetValidateBeforeCall(Integer page, Integer perPage, String search, String namespace, String orderby, String permissions, List tag, List excludeTag, List fileType, List excludeFileType, List fileProperty, Boolean withMetadata, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = arraysBrowserPublicGetCall(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, withMetadata, _callback); + return localVarCall; + + } + + /** + * Fetch a list of all arrays that have been shared publically + * + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param search search string that will look at name, namespace or description fields (optional) + * @param namespace namespace (optional) + * @param orderby sort by which field valid values include size, name (optional) + * @param permissions permissions valid values include read, read_write, write, admin (optional) + * @param tag tag to search for, more than one can be included (optional) + * @param excludeTag tags to exclude matching array in results, more than one can be included + * (optional) + * @param fileType file_type to search for, more than one can be included (optional) + * @param excludeFileType file_type to exclude matching array in results, more than one can be + * included (optional) + * @param fileProperty file_property key-value pair (comma separated, i.e. key,value) to search + * for, more than one can be included (optional) + * @param withMetadata include the metadata of the array (optional) + * @return ArrayBrowserData + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Array of array info that has been shared publically -
502 Bad Gateway -
0 error response -
+ */ + public ArrayBrowserData arraysBrowserPublicGet( + Integer page, + Integer perPage, + String search, + String namespace, + String orderby, + String permissions, + List tag, + List excludeTag, + List fileType, + List excludeFileType, + List fileProperty, + Boolean withMetadata) + throws ApiException { + ApiResponse localVarResp = arraysBrowserPublicGetWithHttpInfo(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, withMetadata); + return localVarResp.getData(); + } + + /** + * Fetch a list of all arrays that have been shared publically + * + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param search search string that will look at name, namespace or description fields (optional) + * @param namespace namespace (optional) + * @param orderby sort by which field valid values include size, name (optional) + * @param permissions permissions valid values include read, read_write, write, admin (optional) + * @param tag tag to search for, more than one can be included (optional) + * @param excludeTag tags to exclude matching array in results, more than one can be included + * (optional) + * @param fileType file_type to search for, more than one can be included (optional) + * @param excludeFileType file_type to exclude matching array in results, more than one can be + * included (optional) + * @param fileProperty file_property key-value pair (comma separated, i.e. key,value) to search + * for, more than one can be included (optional) + * @param withMetadata include the metadata of the array (optional) + * @return ApiResponse<ArrayBrowserData> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Array of array info that has been shared publically -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse arraysBrowserPublicGetWithHttpInfo( + Integer page, + Integer perPage, + String search, + String namespace, + String orderby, + String permissions, + List tag, + List excludeTag, + List fileType, + List excludeFileType, + List fileProperty, + Boolean withMetadata) + throws ApiException { + okhttp3.Call localVarCall = arraysBrowserPublicGetValidateBeforeCall(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, withMetadata, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Fetch a list of all arrays that have been shared publically + * + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param search search string that will look at name, namespace or description fields (optional) + * @param namespace namespace (optional) + * @param orderby sort by which field valid values include size, name (optional) + * @param permissions permissions valid values include read, read_write, write, admin (optional) + * @param tag tag to search for, more than one can be included (optional) + * @param excludeTag tags to exclude matching array in results, more than one can be included + * (optional) + * @param fileType file_type to search for, more than one can be included (optional) + * @param excludeFileType file_type to exclude matching array in results, more than one can be + * included (optional) + * @param fileProperty file_property key-value pair (comma separated, i.e. key,value) to search + * for, more than one can be included (optional) + * @param withMetadata include the metadata of the array (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Array of array info that has been shared publically -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call arraysBrowserPublicGetAsync( + Integer page, + Integer perPage, + String search, + String namespace, + String orderby, + String permissions, + List tag, + List excludeTag, + List fileType, + List excludeFileType, + List fileProperty, + Boolean withMetadata, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = arraysBrowserPublicGetValidateBeforeCall(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, withMetadata, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for arraysBrowserPublicSidebarGet + * + * @param fileType file_type to search for, more than one can be included (optional) + * @param excludeFileType file_type to exclude matching array in results, more than one can be + * included (optional) + * @param fileProperty file_property key-value pair (comma separated, i.e. key,value) to search + * for, more than one can be included (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Array of array info that has been shared publically -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call arraysBrowserPublicSidebarGetCall( + List fileType, + List excludeFileType, + List fileProperty, + 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 = "/arrays/browser/public/sidebar"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (fileType != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "file_type", fileType)); + } + + if (excludeFileType != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "exclude_file_type", excludeFileType)); + } + + if (fileProperty != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "file_property", fileProperty)); + } + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call arraysBrowserPublicSidebarGetValidateBeforeCall(List fileType, List excludeFileType, List fileProperty, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = arraysBrowserPublicSidebarGetCall(fileType, excludeFileType, fileProperty, _callback); + return localVarCall; + + } + + /** + * Fetch a sidebar of all arrays that have been shared publically + * + * @param fileType file_type to search for, more than one can be included (optional) + * @param excludeFileType file_type to exclude matching array in results, more than one can be + * included (optional) + * @param fileProperty file_property key-value pair (comma separated, i.e. key,value) to search + * for, more than one can be included (optional) + * @return ArrayBrowserSidebar + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Array of array info that has been shared publically -
502 Bad Gateway -
0 error response -
+ */ + public ArrayBrowserSidebar arraysBrowserPublicSidebarGet( + List fileType, List excludeFileType, List fileProperty) + throws ApiException { + ApiResponse localVarResp = arraysBrowserPublicSidebarGetWithHttpInfo(fileType, excludeFileType, fileProperty); + return localVarResp.getData(); + } + + /** + * Fetch a sidebar of all arrays that have been shared publically + * + * @param fileType file_type to search for, more than one can be included (optional) + * @param excludeFileType file_type to exclude matching array in results, more than one can be + * included (optional) + * @param fileProperty file_property key-value pair (comma separated, i.e. key,value) to search + * for, more than one can be included (optional) + * @return ApiResponse<ArrayBrowserSidebar> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Array of array info that has been shared publically -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse arraysBrowserPublicSidebarGetWithHttpInfo( + List fileType, List excludeFileType, List fileProperty) + throws ApiException { + okhttp3.Call localVarCall = arraysBrowserPublicSidebarGetValidateBeforeCall(fileType, excludeFileType, fileProperty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Fetch a sidebar of all arrays that have been shared publically + * + * @param fileType file_type to search for, more than one can be included (optional) + * @param excludeFileType file_type to exclude matching array in results, more than one can be + * included (optional) + * @param fileProperty file_property key-value pair (comma separated, i.e. key,value) to search + * for, more than one can be included (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Array of array info that has been shared publically -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call arraysBrowserPublicSidebarGetAsync( + List fileType, + List excludeFileType, + List fileProperty, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = arraysBrowserPublicSidebarGetValidateBeforeCall(fileType, excludeFileType, fileProperty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for arraysBrowserSharedGet + * + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param search search string that will look at name, namespace or description fields (optional) + * @param namespace namespace (optional) + * @param orderby sort by which field valid values include size, name (optional) + * @param permissions permissions valid values include read, read_write, write, admin (optional) + * @param tag tag to search for, more than one can be included (optional) + * @param excludeTag tags to exclude matching array in results, more than one can be included + * (optional) + * @param fileType file_type to search for, more than one can be included (optional) + * @param excludeFileType file_type to exclude matching array in results, more than one can be + * included (optional) + * @param fileProperty file_property key-value pair (comma separated, i.e. key,value) to search + * for, more than one can be included (optional) + * @param sharedTo namespaces to filter results of where there arrays were shared to (optional) + * @param withMetadata include the metadata of the array (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Array of array info that has been shared with the user -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call arraysBrowserSharedGetCall( + Integer page, + Integer perPage, + String search, + String namespace, + String orderby, + String permissions, + List tag, + List excludeTag, + List fileType, + List excludeFileType, + List fileProperty, + List sharedTo, + Boolean withMetadata, + 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 = "/arrays/browser/shared"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + if (perPage != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("per_page", perPage)); + } + + if (search != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("search", search)); + } + + if (namespace != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("namespace", namespace)); + } + + if (orderby != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orderby", orderby)); + } + + if (permissions != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("permissions", permissions)); + } + + if (tag != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "tag", tag)); + } + + if (excludeTag != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "exclude_tag", excludeTag)); + } + + if (fileType != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "file_type", fileType)); + } + + if (excludeFileType != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "exclude_file_type", excludeFileType)); + } + + if (fileProperty != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "file_property", fileProperty)); + } + + if (sharedTo != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "shared_to", sharedTo)); + } + + if (withMetadata != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("with_metadata", withMetadata)); + } + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call arraysBrowserSharedGetValidateBeforeCall(Integer page, Integer perPage, String search, String namespace, String orderby, String permissions, List tag, List excludeTag, List fileType, List excludeFileType, List fileProperty, List sharedTo, Boolean withMetadata, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = arraysBrowserSharedGetCall(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, sharedTo, withMetadata, _callback); + return localVarCall; + + } + + /** + * Fetch a list of all arrays that have been shared with the user + * + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param search search string that will look at name, namespace or description fields (optional) + * @param namespace namespace (optional) + * @param orderby sort by which field valid values include size, name (optional) + * @param permissions permissions valid values include read, read_write, write, admin (optional) + * @param tag tag to search for, more than one can be included (optional) + * @param excludeTag tags to exclude matching array in results, more than one can be included + * (optional) + * @param fileType file_type to search for, more than one can be included (optional) + * @param excludeFileType file_type to exclude matching array in results, more than one can be + * included (optional) + * @param fileProperty file_property key-value pair (comma separated, i.e. key,value) to search + * for, more than one can be included (optional) + * @param sharedTo namespaces to filter results of where there arrays were shared to (optional) + * @param withMetadata include the metadata of the array (optional) + * @return ArrayBrowserData + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Array of array info that has been shared with the user -
502 Bad Gateway -
0 error response -
+ */ + public ArrayBrowserData arraysBrowserSharedGet( + Integer page, + Integer perPage, + String search, + String namespace, + String orderby, + String permissions, + List tag, + List excludeTag, + List fileType, + List excludeFileType, + List fileProperty, + List sharedTo, + Boolean withMetadata) + throws ApiException { + ApiResponse localVarResp = arraysBrowserSharedGetWithHttpInfo(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, sharedTo, withMetadata); + return localVarResp.getData(); + } + + /** + * Fetch a list of all arrays that have been shared with the user + * + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param search search string that will look at name, namespace or description fields (optional) + * @param namespace namespace (optional) + * @param orderby sort by which field valid values include size, name (optional) + * @param permissions permissions valid values include read, read_write, write, admin (optional) + * @param tag tag to search for, more than one can be included (optional) + * @param excludeTag tags to exclude matching array in results, more than one can be included + * (optional) + * @param fileType file_type to search for, more than one can be included (optional) + * @param excludeFileType file_type to exclude matching array in results, more than one can be + * included (optional) + * @param fileProperty file_property key-value pair (comma separated, i.e. key,value) to search + * for, more than one can be included (optional) + * @param sharedTo namespaces to filter results of where there arrays were shared to (optional) + * @param withMetadata include the metadata of the array (optional) + * @return ApiResponse<ArrayBrowserData> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Array of array info that has been shared with the user -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse arraysBrowserSharedGetWithHttpInfo( + Integer page, + Integer perPage, + String search, + String namespace, + String orderby, + String permissions, + List tag, + List excludeTag, + List fileType, + List excludeFileType, + List fileProperty, + List sharedTo, + Boolean withMetadata) + throws ApiException { + okhttp3.Call localVarCall = arraysBrowserSharedGetValidateBeforeCall(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, sharedTo, withMetadata, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Fetch a list of all arrays that have been shared with the user + * + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param search search string that will look at name, namespace or description fields (optional) + * @param namespace namespace (optional) + * @param orderby sort by which field valid values include size, name (optional) + * @param permissions permissions valid values include read, read_write, write, admin (optional) + * @param tag tag to search for, more than one can be included (optional) + * @param excludeTag tags to exclude matching array in results, more than one can be included + * (optional) + * @param fileType file_type to search for, more than one can be included (optional) + * @param excludeFileType file_type to exclude matching array in results, more than one can be + * included (optional) + * @param fileProperty file_property key-value pair (comma separated, i.e. key,value) to search + * for, more than one can be included (optional) + * @param sharedTo namespaces to filter results of where there arrays were shared to (optional) + * @param withMetadata include the metadata of the array (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Array of array info that has been shared with the user -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call arraysBrowserSharedGetAsync( + Integer page, + Integer perPage, + String search, + String namespace, + String orderby, + String permissions, + List tag, + List excludeTag, + List fileType, + List excludeFileType, + List fileProperty, + List sharedTo, + Boolean withMetadata, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = arraysBrowserSharedGetValidateBeforeCall(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, sharedTo, withMetadata, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for arraysBrowserSharedSidebarGet + * + * @param fileType file_type to search for, more than one can be included (optional) + * @param excludeFileType file_type to exclude matching array in results, more than one can be + * included (optional) + * @param fileProperty file_property key-value pair (comma separated, i.e. key,value) to search + * for, more than one can be included (optional) + * @param sharedTo namespaces to filter results of where there groups were shared to (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Array of array info that has been shared with the user -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call arraysBrowserSharedSidebarGetCall( + List fileType, + List excludeFileType, + List fileProperty, + List sharedTo, + 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 = "/arrays/browser/shared/sidebar"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (fileType != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "file_type", fileType)); + } + + if (excludeFileType != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "exclude_file_type", excludeFileType)); + } + + if (fileProperty != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "file_property", fileProperty)); + } + + if (sharedTo != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "shared_to", sharedTo)); + } + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call arraysBrowserSharedSidebarGetValidateBeforeCall(List fileType, List excludeFileType, List fileProperty, List sharedTo, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = arraysBrowserSharedSidebarGetCall(fileType, excludeFileType, fileProperty, sharedTo, _callback); + return localVarCall; + + } + + /** + * Fetch a list of all arrays that have been shared with the user + * + * @param fileType file_type to search for, more than one can be included (optional) + * @param excludeFileType file_type to exclude matching array in results, more than one can be + * included (optional) + * @param fileProperty file_property key-value pair (comma separated, i.e. key,value) to search + * for, more than one can be included (optional) + * @param sharedTo namespaces to filter results of where there groups were shared to (optional) + * @return ArrayBrowserSidebar + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Array of array info that has been shared with the user -
502 Bad Gateway -
0 error response -
+ */ + public ArrayBrowserSidebar arraysBrowserSharedSidebarGet( + List fileType, + List excludeFileType, + List fileProperty, + List sharedTo) + throws ApiException { + ApiResponse localVarResp = arraysBrowserSharedSidebarGetWithHttpInfo(fileType, excludeFileType, fileProperty, sharedTo); + return localVarResp.getData(); + } + + /** + * Fetch a list of all arrays that have been shared with the user + * + * @param fileType file_type to search for, more than one can be included (optional) + * @param excludeFileType file_type to exclude matching array in results, more than one can be + * included (optional) + * @param fileProperty file_property key-value pair (comma separated, i.e. key,value) to search + * for, more than one can be included (optional) + * @param sharedTo namespaces to filter results of where there groups were shared to (optional) + * @return ApiResponse<ArrayBrowserSidebar> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Array of array info that has been shared with the user -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse arraysBrowserSharedSidebarGetWithHttpInfo( + List fileType, + List excludeFileType, + List fileProperty, + List sharedTo) + throws ApiException { + okhttp3.Call localVarCall = arraysBrowserSharedSidebarGetValidateBeforeCall(fileType, excludeFileType, fileProperty, sharedTo, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Fetch a list of all arrays that have been shared with the user + * + * @param fileType file_type to search for, more than one can be included (optional) + * @param excludeFileType file_type to exclude matching array in results, more than one can be + * included (optional) + * @param fileProperty file_property key-value pair (comma separated, i.e. key,value) to search + * for, more than one can be included (optional) + * @param sharedTo namespaces to filter results of where there groups were shared to (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Array of array info that has been shared with the user -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call arraysBrowserSharedSidebarGetAsync( + List fileType, + List excludeFileType, + List fileProperty, + List sharedTo, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = arraysBrowserSharedSidebarGetValidateBeforeCall(fileType, excludeFileType, fileProperty, sharedTo, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for arraysNamespaceArrayEndTimestampsGet + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 list of timestamps in milliseconds, paginated -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call arraysNamespaceArrayEndTimestampsGetCall( + String namespace, String array, Integer page, Integer perPage, 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 = "/arrays/{namespace}/{array}/end_timestamps" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + if (perPage != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("per_page", perPage)); + } + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call arraysNamespaceArrayEndTimestampsGetValidateBeforeCall(String namespace, String array, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling arraysNamespaceArrayEndTimestampsGet(Async)"); + } + + // verify the required parameter 'array' is set + if (array == null) { + throw new ApiException("Missing the required parameter 'array' when calling arraysNamespaceArrayEndTimestampsGet(Async)"); + } + + + okhttp3.Call localVarCall = arraysNamespaceArrayEndTimestampsGetCall(namespace, array, page, perPage, _callback); + return localVarCall; + + } + + /** + * retrieve a list of timestamps from the array fragment info listing in milliseconds, paginated + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @return ArrayEndTimestampData + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 list of timestamps in milliseconds, paginated -
502 Bad Gateway -
0 error response -
+ */ + public ArrayEndTimestampData arraysNamespaceArrayEndTimestampsGet( + String namespace, String array, Integer page, Integer perPage) throws ApiException { + ApiResponse localVarResp = arraysNamespaceArrayEndTimestampsGetWithHttpInfo(namespace, array, page, perPage); + return localVarResp.getData(); + } + + /** + * retrieve a list of timestamps from the array fragment info listing in milliseconds, paginated + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @return ApiResponse<ArrayEndTimestampData> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 list of timestamps in milliseconds, paginated -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse arraysNamespaceArrayEndTimestampsGetWithHttpInfo( + String namespace, String array, Integer page, Integer perPage) throws ApiException { + okhttp3.Call localVarCall = arraysNamespaceArrayEndTimestampsGetValidateBeforeCall(namespace, array, page, perPage, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) retrieve a list of timestamps from the array fragment info listing in + * milliseconds, paginated + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 list of timestamps in milliseconds, paginated -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call arraysNamespaceArrayEndTimestampsGetAsync( + String namespace, + String array, + Integer page, + Integer perPage, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = arraysNamespaceArrayEndTimestampsGetValidateBeforeCall(namespace, array, page, perPage, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for consolidateArray + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param consolidateRequest Consolidate Request (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 array consolidated successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call consolidateArrayCall( + String namespace, + String array, + ArrayConsolidationRequest consolidateRequest, + 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 = consolidateRequest; + + // create path and map variables + String localVarPath = "/arrays/{namespace}/{array}/consolidate" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.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); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call consolidateArrayValidateBeforeCall(String namespace, String array, ArrayConsolidationRequest consolidateRequest, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling consolidateArray(Async)"); + } + + // verify the required parameter 'array' is set + if (array == null) { + throw new ApiException("Missing the required parameter 'array' when calling consolidateArray(Async)"); + } + + // verify the required parameter 'consolidateRequest' is set + if (consolidateRequest == null) { + throw new ApiException("Missing the required parameter 'consolidateRequest' when calling consolidateArray(Async)"); + } + + + okhttp3.Call localVarCall = consolidateArrayCall(namespace, array, consolidateRequest, _callback); + return localVarCall; + + } + + /** + * consolidate an array at a specified URI + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param consolidateRequest Consolidate Request (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 array consolidated successfully -
502 Bad Gateway -
0 error response -
+ */ + public void consolidateArray( + String namespace, String array, ArrayConsolidationRequest consolidateRequest) + throws ApiException { + consolidateArrayWithHttpInfo(namespace, array, consolidateRequest); + } + + /** + * consolidate an array at a specified URI + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param consolidateRequest Consolidate Request (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 array consolidated successfully -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse consolidateArrayWithHttpInfo( + String namespace, String array, ArrayConsolidationRequest consolidateRequest) + throws ApiException { + okhttp3.Call localVarCall = consolidateArrayValidateBeforeCall(namespace, array, consolidateRequest, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) consolidate an array at a specified URI + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param consolidateRequest Consolidate Request (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 array consolidated successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call consolidateArrayAsync( + String namespace, + String array, + ArrayConsolidationRequest consolidateRequest, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = consolidateArrayValidateBeforeCall(namespace, array, consolidateRequest, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for createArray + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param contentType Content Type of input and return mime (required) + * @param arraySchema ArraySchema being created (required) + * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for + * creation (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 schema created successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call createArrayCall( + String namespace, + String array, + String contentType, + ArraySchema arraySchema, + String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, + 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 = arraySchema; + + // create path and map variables + String localVarPath = "/arrays/{namespace}/{array}" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (contentType != null) { + localVarHeaderParams.put("Content-Type", localVarApiClient.parameterToString(contentType)); + } + + if (X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME != null) { + localVarHeaderParams.put("X-TILEDB-CLOUD-ACCESS-CREDENTIALS-NAME", localVarApiClient.parameterToString(X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME)); + } + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createArrayValidateBeforeCall(String namespace, String array, String contentType, ArraySchema arraySchema, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling createArray(Async)"); + } + + // verify the required parameter 'array' is set + if (array == null) { + throw new ApiException("Missing the required parameter 'array' when calling createArray(Async)"); + } + + // verify the required parameter 'contentType' is set + if (contentType == null) { + throw new ApiException("Missing the required parameter 'contentType' when calling createArray(Async)"); + } + + // verify the required parameter 'arraySchema' is set + if (arraySchema == null) { + throw new ApiException("Missing the required parameter 'arraySchema' when calling createArray(Async)"); + } + + + okhttp3.Call localVarCall = createArrayCall(namespace, array, contentType, arraySchema, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, _callback); + return localVarCall; + + } + + /** + * create a array schema at a specified URI registered to a group/project + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param contentType Content Type of input and return mime (required) + * @param arraySchema ArraySchema being created (required) + * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for + * creation (optional) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 schema created successfully -
502 Bad Gateway -
0 error response -
+ */ + public void createArray( + String namespace, + String array, + String contentType, + ArraySchema arraySchema, + String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME) + throws ApiException { + createArrayWithHttpInfo(namespace, array, contentType, arraySchema, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME); + } + + /** + * create a array schema at a specified URI registered to a group/project + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param contentType Content Type of input and return mime (required) + * @param arraySchema ArraySchema being created (required) + * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for + * creation (optional) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 schema created successfully -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse createArrayWithHttpInfo( + String namespace, + String array, + String contentType, + ArraySchema arraySchema, + String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME) + throws ApiException { + okhttp3.Call localVarCall = createArrayValidateBeforeCall(namespace, array, contentType, arraySchema, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) create a array schema at a specified URI registered to a group/project + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param contentType Content Type of input and return mime (required) + * @param arraySchema ArraySchema being created (required) + * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for + * creation (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 schema created successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call createArrayAsync( + String namespace, + String array, + String contentType, + ArraySchema arraySchema, + String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = createArrayValidateBeforeCall(namespace, array, contentType, arraySchema, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for deleteArray + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param contentType Content Type of input and return mime (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 delete array successful -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call deleteArrayCall( + String namespace, String array, String contentType, 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 = "/arrays/{namespace}/{array}" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (contentType != null) { + localVarHeaderParams.put("Content-Type", localVarApiClient.parameterToString(contentType)); + } + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteArrayValidateBeforeCall(String namespace, String array, String contentType, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteArray(Async)"); + } + + // verify the required parameter 'array' is set + if (array == null) { + throw new ApiException("Missing the required parameter 'array' when calling deleteArray(Async)"); + } + + // verify the required parameter 'contentType' is set + if (contentType == null) { + throw new ApiException("Missing the required parameter 'contentType' when calling deleteArray(Async)"); + } + + + okhttp3.Call localVarCall = deleteArrayCall(namespace, array, contentType, _callback); + return localVarCall; + + } + + /** + * delete a array + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param contentType Content Type of input and return mime (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 delete array successful -
502 Bad Gateway -
0 error response -
+ */ + public void deleteArray(String namespace, String array, String contentType) throws ApiException { + deleteArrayWithHttpInfo(namespace, array, contentType); + } + + /** + * delete a array + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param contentType Content Type of input and return mime (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 delete array successful -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse deleteArrayWithHttpInfo( + String namespace, String array, String contentType) throws ApiException { + okhttp3.Call localVarCall = deleteArrayValidateBeforeCall(namespace, array, contentType, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) delete a array + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param contentType Content Type of input and return mime (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 delete array successful -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call deleteArrayAsync( + String namespace, String array, String contentType, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = deleteArrayValidateBeforeCall(namespace, array, contentType, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for deregisterArray + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 deregistered array successful -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call deregisterArrayCall( + String namespace, String array, 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 = "/arrays/{namespace}/{array}/deregister" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deregisterArrayValidateBeforeCall(String namespace, String array, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deregisterArray(Async)"); + } + + // verify the required parameter 'array' is set + if (array == null) { + throw new ApiException("Missing the required parameter 'array' when calling deregisterArray(Async)"); + } + + + okhttp3.Call localVarCall = deregisterArrayCall(namespace, array, _callback); + return localVarCall; + + } + + /** + * deregister a array + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 deregistered array successful -
502 Bad Gateway -
0 error response -
+ */ + public void deregisterArray(String namespace, String array) throws ApiException { + deregisterArrayWithHttpInfo(namespace, array); + } + + /** + * deregister a array + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 deregistered array successful -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse deregisterArrayWithHttpInfo(String namespace, String array) + throws ApiException { + okhttp3.Call localVarCall = deregisterArrayValidateBeforeCall(namespace, array, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) deregister a array + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 deregistered array successful -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call deregisterArrayAsync( + String namespace, String array, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deregisterArrayValidateBeforeCall(namespace, array, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for fragmentInfo + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param contentType Content Type of input and return mime (required) + * @param fragmentInfoRequest ArraySchema being created (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + *
Status Code Description Response Headers
200 fragment info -
0 error response -
+ */ + public okhttp3.Call fragmentInfoCall( + String namespace, + String array, + String contentType, + FragmentInfoRequest fragmentInfoRequest, + 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 = fragmentInfoRequest; + + // create path and map variables + String localVarPath = "/arrays/{namespace}/{array}/fragment_info" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (contentType != null) { + localVarHeaderParams.put("Content-Type", localVarApiClient.parameterToString(contentType)); + } + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call fragmentInfoValidateBeforeCall(String namespace, String array, String contentType, FragmentInfoRequest fragmentInfoRequest, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling fragmentInfo(Async)"); + } + + // verify the required parameter 'array' is set + if (array == null) { + throw new ApiException("Missing the required parameter 'array' when calling fragmentInfo(Async)"); + } + + // verify the required parameter 'contentType' is set + if (contentType == null) { + throw new ApiException("Missing the required parameter 'contentType' when calling fragmentInfo(Async)"); + } + + // verify the required parameter 'fragmentInfoRequest' is set + if (fragmentInfoRequest == null) { + throw new ApiException("Missing the required parameter 'fragmentInfoRequest' when calling fragmentInfo(Async)"); + } + + + okhttp3.Call localVarCall = fragmentInfoCall(namespace, array, contentType, fragmentInfoRequest, _callback); + return localVarCall; + + } + + /** + * fetch an array's fragment info + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param contentType Content Type of input and return mime (required) + * @param fragmentInfoRequest ArraySchema being created (required) + * @return FragmentInfo + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + *
Status Code Description Response Headers
200 fragment info -
0 error response -
+ */ + public FragmentInfo fragmentInfo( + String namespace, String array, String contentType, FragmentInfoRequest fragmentInfoRequest) + throws ApiException { + ApiResponse localVarResp = fragmentInfoWithHttpInfo(namespace, array, contentType, fragmentInfoRequest); + return localVarResp.getData(); + } + + /** + * fetch an array's fragment info + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param contentType Content Type of input and return mime (required) + * @param fragmentInfoRequest ArraySchema being created (required) + * @return ApiResponse<FragmentInfo> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + *
Status Code Description Response Headers
200 fragment info -
0 error response -
+ */ + public ApiResponse fragmentInfoWithHttpInfo( + String namespace, String array, String contentType, FragmentInfoRequest fragmentInfoRequest) + throws ApiException { + okhttp3.Call localVarCall = fragmentInfoValidateBeforeCall(namespace, array, contentType, fragmentInfoRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) fetch an array's fragment info + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param contentType Content Type of input and return mime (required) + * @param fragmentInfoRequest ArraySchema being created (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + *
Status Code Description Response Headers
200 fragment info -
0 error response -
+ */ + public okhttp3.Call fragmentInfoAsync( + String namespace, + String array, + String contentType, + FragmentInfoRequest fragmentInfoRequest, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = fragmentInfoValidateBeforeCall(namespace, array, contentType, fragmentInfoRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getActivityLogById + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param id ID of the activity (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 array activity -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getActivityLogByIdCall( + String namespace, String array, String id, 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 = "/arrays/{namespace}/{array}/activity/{id}" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())) + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getActivityLogByIdValidateBeforeCall(String namespace, String array, String id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling getActivityLogById(Async)"); + } + + // verify the required parameter 'array' is set + if (array == null) { + throw new ApiException("Missing the required parameter 'array' when calling getActivityLogById(Async)"); + } + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling getActivityLogById(Async)"); + } + + + okhttp3.Call localVarCall = getActivityLogByIdCall(namespace, array, id, _callback); + return localVarCall; + + } + + /** + * get activity log by ID + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param id ID of the activity (required) + * @return ArrayActivityLog + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 array activity -
502 Bad Gateway -
0 error response -
+ */ + public ArrayActivityLog getActivityLogById(String namespace, String array, String id) + throws ApiException { + ApiResponse localVarResp = getActivityLogByIdWithHttpInfo(namespace, array, id); + return localVarResp.getData(); + } + + /** + * get activity log by ID + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param id ID of the activity (required) + * @return ApiResponse<ArrayActivityLog> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 array activity -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse getActivityLogByIdWithHttpInfo( + String namespace, String array, String id) throws ApiException { + okhttp3.Call localVarCall = getActivityLogByIdValidateBeforeCall(namespace, array, id, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) get activity log by ID + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param id ID of the activity (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 array activity -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getActivityLogByIdAsync( + String namespace, String array, String id, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = getActivityLogByIdValidateBeforeCall(namespace, array, id, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getAllArrayMetadata + * + * @param publicShare Public share values can be one of exclude, only (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 array metadata for all arrays user has access to -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getAllArrayMetadataCall(String publicShare, 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 = "/arrays"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (publicShare != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("public_share", publicShare)); + } + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAllArrayMetadataValidateBeforeCall(String publicShare, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = getAllArrayMetadataCall(publicShare, _callback); + return localVarCall; + + } + + /** + * get all array metadata user has access to + * + * @param publicShare Public share values can be one of exclude, only (optional) + * @return List<ArrayInfo> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 array metadata for all arrays user has access to -
502 Bad Gateway -
0 error response -
+ */ + public List getAllArrayMetadata(String publicShare) throws ApiException { + ApiResponse> localVarResp = getAllArrayMetadataWithHttpInfo(publicShare); + return localVarResp.getData(); + } + + /** + * get all array metadata user has access to + * + * @param publicShare Public share values can be one of exclude, only (optional) + * @return ApiResponse<List<ArrayInfo>> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 array metadata for all arrays user has access to -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse> getAllArrayMetadataWithHttpInfo(String publicShare) + throws ApiException { + okhttp3.Call localVarCall = getAllArrayMetadataValidateBeforeCall(publicShare, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) get all array metadata user has access to + * + * @param publicShare Public share values can be one of exclude, only (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 array metadata for all arrays user has access to -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getAllArrayMetadataAsync( + String publicShare, final ApiCallback> _callback) throws ApiException { + + okhttp3.Call localVarCall = getAllArrayMetadataValidateBeforeCall(publicShare, _callback); + Type localVarReturnType = new TypeToken>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getArray + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param contentType Content Type of input and return mime (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 get ArraySchema -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getArrayCall( + String namespace, String array, String contentType, 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 = "/arrays/{namespace}/{array}" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (contentType != null) { + localVarHeaderParams.put("Content-Type", localVarApiClient.parameterToString(contentType)); + } + + final String[] localVarAccepts = { + "application/json", "application/capnp" + }; + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getArrayValidateBeforeCall(String namespace, String array, String contentType, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling getArray(Async)"); + } + + // verify the required parameter 'array' is set + if (array == null) { + throw new ApiException("Missing the required parameter 'array' when calling getArray(Async)"); + } + + // verify the required parameter 'contentType' is set + if (contentType == null) { + throw new ApiException("Missing the required parameter 'contentType' when calling getArray(Async)"); + } + + + okhttp3.Call localVarCall = getArrayCall(namespace, array, contentType, _callback); + return localVarCall; + + } + + /** + * get an ArraySchema using a url encoded uri + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param contentType Content Type of input and return mime (required) + * @return ArraySchema + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 get ArraySchema -
502 Bad Gateway -
0 error response -
+ */ + public ArraySchema getArray(String namespace, String array, String contentType) + throws ApiException { + ApiResponse localVarResp = getArrayWithHttpInfo(namespace, array, contentType); + return localVarResp.getData(); + } + + /** + * get an ArraySchema using a url encoded uri + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param contentType Content Type of input and return mime (required) + * @return ApiResponse<ArraySchema> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 get ArraySchema -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse getArrayWithHttpInfo( + String namespace, String array, String contentType) throws ApiException { + okhttp3.Call localVarCall = getArrayValidateBeforeCall(namespace, array, contentType, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) get an ArraySchema using a url encoded uri + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param contentType Content Type of input and return mime (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 get ArraySchema -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getArrayAsync( + String namespace, String array, String contentType, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = getArrayValidateBeforeCall(namespace, array, contentType, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getArrayMaxBufferSizes + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param subarray CSV string of subarray to get max buffer sizes for (required) + * @param contentType Content Type of input and return mime (required) + * @param xPayer Name of organization or user who should be charged for this request (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 get the max buffer sizes of an array for a subarray -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getArrayMaxBufferSizesCall( + String namespace, + String array, + String subarray, + String contentType, + String xPayer, + 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 = "/arrays/{namespace}/{array}/max_buffer_sizes" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (subarray != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("subarray", subarray)); + } + + if (contentType != null) { + localVarHeaderParams.put("Content-Type", localVarApiClient.parameterToString(contentType)); + } + + if (xPayer != null) { + localVarHeaderParams.put("X-Payer", localVarApiClient.parameterToString(xPayer)); + } + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getArrayMaxBufferSizesValidateBeforeCall(String namespace, String array, String subarray, String contentType, String xPayer, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling getArrayMaxBufferSizes(Async)"); + } + + // verify the required parameter 'array' is set + if (array == null) { + throw new ApiException("Missing the required parameter 'array' when calling getArrayMaxBufferSizes(Async)"); + } + + // verify the required parameter 'subarray' is set + if (subarray == null) { + throw new ApiException("Missing the required parameter 'subarray' when calling getArrayMaxBufferSizes(Async)"); + } + + // verify the required parameter 'contentType' is set + if (contentType == null) { + throw new ApiException("Missing the required parameter 'contentType' when calling getArrayMaxBufferSizes(Async)"); + } + + + okhttp3.Call localVarCall = getArrayMaxBufferSizesCall(namespace, array, subarray, contentType, xPayer, _callback); + return localVarCall; + + } + + /** + * get the max buffer sizes of an array for a subarray + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param subarray CSV string of subarray to get max buffer sizes for (required) + * @param contentType Content Type of input and return mime (required) + * @param xPayer Name of organization or user who should be charged for this request (optional) + * @return MaxBufferSizes + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 get the max buffer sizes of an array for a subarray -
502 Bad Gateway -
0 error response -
+ */ + public MaxBufferSizes getArrayMaxBufferSizes( + String namespace, String array, String subarray, String contentType, String xPayer) + throws ApiException { + ApiResponse localVarResp = getArrayMaxBufferSizesWithHttpInfo(namespace, array, subarray, contentType, xPayer); + return localVarResp.getData(); + } + + /** + * get the max buffer sizes of an array for a subarray + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param subarray CSV string of subarray to get max buffer sizes for (required) + * @param contentType Content Type of input and return mime (required) + * @param xPayer Name of organization or user who should be charged for this request (optional) + * @return ApiResponse<MaxBufferSizes> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 get the max buffer sizes of an array for a subarray -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse getArrayMaxBufferSizesWithHttpInfo( + String namespace, String array, String subarray, String contentType, String xPayer) + throws ApiException { + okhttp3.Call localVarCall = getArrayMaxBufferSizesValidateBeforeCall(namespace, array, subarray, contentType, xPayer, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) get the max buffer sizes of an array for a subarray + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param subarray CSV string of subarray to get max buffer sizes for (required) + * @param contentType Content Type of input and return mime (required) + * @param xPayer Name of organization or user who should be charged for this request (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 get the max buffer sizes of an array for a subarray -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getArrayMaxBufferSizesAsync( + String namespace, + String array, + String subarray, + String contentType, + String xPayer, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = getArrayMaxBufferSizesValidateBeforeCall(namespace, array, subarray, contentType, xPayer, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getArrayMetaDataJson + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param length (optional) limit character length of returned values (optional) + * @param endTimestamp Milliseconds since Unix epoch, metadata will use open_at functionality to + * open array at the specific timestamp (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 get array metadata -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getArrayMetaDataJsonCall( + String namespace, + String array, + Integer length, + Integer endTimestamp, + 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 = "/arrays/{namespace}/{array}/metadata_json" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (length != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("length", length)); + } + + if (endTimestamp != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("end_timestamp", endTimestamp)); + } + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getArrayMetaDataJsonValidateBeforeCall(String namespace, String array, Integer length, Integer endTimestamp, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling getArrayMetaDataJson(Async)"); + } + + // verify the required parameter 'array' is set + if (array == null) { + throw new ApiException("Missing the required parameter 'array' when calling getArrayMetaDataJson(Async)"); + } + + + okhttp3.Call localVarCall = getArrayMetaDataJsonCall(namespace, array, length, endTimestamp, _callback); + return localVarCall; + + } + + /** + * get metadata from the array in JSON format + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param length (optional) limit character length of returned values (optional) + * @param endTimestamp Milliseconds since Unix epoch, metadata will use open_at functionality to + * open array at the specific timestamp (optional) + * @return Object + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 get array metadata -
502 Bad Gateway -
0 error response -
+ */ + public Object getArrayMetaDataJson( + String namespace, String array, Integer length, Integer endTimestamp) throws ApiException { + ApiResponse localVarResp = getArrayMetaDataJsonWithHttpInfo(namespace, array, length, endTimestamp); + return localVarResp.getData(); + } + + /** + * get metadata from the array in JSON format + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param length (optional) limit character length of returned values (optional) + * @param endTimestamp Milliseconds since Unix epoch, metadata will use open_at functionality to + * open array at the specific timestamp (optional) + * @return ApiResponse<Object> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 get array metadata -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse getArrayMetaDataJsonWithHttpInfo( + String namespace, String array, Integer length, Integer endTimestamp) throws ApiException { + okhttp3.Call localVarCall = getArrayMetaDataJsonValidateBeforeCall(namespace, array, length, endTimestamp, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) get metadata from the array in JSON format + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param length (optional) limit character length of returned values (optional) + * @param endTimestamp Milliseconds since Unix epoch, metadata will use open_at functionality to + * open array at the specific timestamp (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 get array metadata -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getArrayMetaDataJsonAsync( + String namespace, + String array, + Integer length, + Integer endTimestamp, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = getArrayMetaDataJsonValidateBeforeCall(namespace, array, length, endTimestamp, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getArrayMetadata + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 array metadata for an array -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getArrayMetadataCall( + String namespace, String array, 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 = "/arrays/{namespace}/{array}/metadata" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getArrayMetadataValidateBeforeCall(String namespace, String array, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling getArrayMetadata(Async)"); + } + + // verify the required parameter 'array' is set + if (array == null) { + throw new ApiException("Missing the required parameter 'array' when calling getArrayMetadata(Async)"); + } + + + okhttp3.Call localVarCall = getArrayMetadataCall(namespace, array, _callback); + return localVarCall; + + } + + /** + * get metadata on an array + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @return ArrayInfo + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 array metadata for an array -
502 Bad Gateway -
0 error response -
+ */ + public ArrayInfo getArrayMetadata(String namespace, String array) throws ApiException { + ApiResponse localVarResp = getArrayMetadataWithHttpInfo(namespace, array); + return localVarResp.getData(); + } + + /** + * get metadata on an array + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @return ApiResponse<ArrayInfo> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 array metadata for an array -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse getArrayMetadataWithHttpInfo(String namespace, String array) + throws ApiException { + okhttp3.Call localVarCall = getArrayMetadataValidateBeforeCall(namespace, array, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) get metadata on an array + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 array metadata for an array -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getArrayMetadataAsync( + String namespace, String array, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getArrayMetadataValidateBeforeCall(namespace, array, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getArrayMetadataCapnp + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 array metadata for an array -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getArrayMetadataCapnpCall( + String namespace, String array, 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 = "/arrays/{namespace}/{array}/array_metadata" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.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", "application/capnp" + }; + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getArrayMetadataCapnpValidateBeforeCall(String namespace, String array, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling getArrayMetadataCapnp(Async)"); + } + + // verify the required parameter 'array' is set + if (array == null) { + throw new ApiException("Missing the required parameter 'array' when calling getArrayMetadataCapnp(Async)"); + } + + + okhttp3.Call localVarCall = getArrayMetadataCapnpCall(namespace, array, _callback); + return localVarCall; + + } + + /** + * get metadata on an array + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @return ArrayMetadata + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 array metadata for an array -
502 Bad Gateway -
0 error response -
+ */ + public ArrayMetadata getArrayMetadataCapnp(String namespace, String array) throws ApiException { + ApiResponse localVarResp = getArrayMetadataCapnpWithHttpInfo(namespace, array); + return localVarResp.getData(); + } + + /** + * get metadata on an array + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @return ApiResponse<ArrayMetadata> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 array metadata for an array -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse getArrayMetadataCapnpWithHttpInfo( + String namespace, String array) throws ApiException { + okhttp3.Call localVarCall = getArrayMetadataCapnpValidateBeforeCall(namespace, array, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) get metadata on an array + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 array metadata for an array -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getArrayMetadataCapnpAsync( + String namespace, String array, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = getArrayMetadataCapnpValidateBeforeCall(namespace, array, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getArrayNonEmptyDomain + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param contentType Content Type of input and return mime (required) + * @param xPayer Name of organization or user who should be charged for this request (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 get the non empty domain of an array -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getArrayNonEmptyDomainCall( + String namespace, + String array, + String contentType, + String xPayer, + 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 = "/arrays/{namespace}/{array}/non_empty_domain" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (contentType != null) { + localVarHeaderParams.put("Content-Type", localVarApiClient.parameterToString(contentType)); + } + + if (xPayer != null) { + localVarHeaderParams.put("X-Payer", localVarApiClient.parameterToString(xPayer)); + } + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getArrayNonEmptyDomainValidateBeforeCall(String namespace, String array, String contentType, String xPayer, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling getArrayNonEmptyDomain(Async)"); + } + + // verify the required parameter 'array' is set + if (array == null) { + throw new ApiException("Missing the required parameter 'array' when calling getArrayNonEmptyDomain(Async)"); + } + + // verify the required parameter 'contentType' is set + if (contentType == null) { + throw new ApiException("Missing the required parameter 'contentType' when calling getArrayNonEmptyDomain(Async)"); + } + + + okhttp3.Call localVarCall = getArrayNonEmptyDomainCall(namespace, array, contentType, xPayer, _callback); + return localVarCall; + + } + + /** + * get the non empty domain of an array + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param contentType Content Type of input and return mime (required) + * @param xPayer Name of organization or user who should be charged for this request (optional) + * @return NonEmptyDomain + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 get the non empty domain of an array -
502 Bad Gateway -
0 error response -
+ */ + public NonEmptyDomain getArrayNonEmptyDomain( + String namespace, String array, String contentType, String xPayer) throws ApiException { + ApiResponse localVarResp = getArrayNonEmptyDomainWithHttpInfo(namespace, array, contentType, xPayer); + return localVarResp.getData(); + } + + /** + * get the non empty domain of an array + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param contentType Content Type of input and return mime (required) + * @param xPayer Name of organization or user who should be charged for this request (optional) + * @return ApiResponse<NonEmptyDomain> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 get the non empty domain of an array -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse getArrayNonEmptyDomainWithHttpInfo( + String namespace, String array, String contentType, String xPayer) throws ApiException { + okhttp3.Call localVarCall = getArrayNonEmptyDomainValidateBeforeCall(namespace, array, contentType, xPayer, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) get the non empty domain of an array + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param contentType Content Type of input and return mime (required) + * @param xPayer Name of organization or user who should be charged for this request (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 get the non empty domain of an array -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getArrayNonEmptyDomainAsync( + String namespace, + String array, + String contentType, + String xPayer, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = getArrayNonEmptyDomainValidateBeforeCall(namespace, array, contentType, xPayer, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getArrayNonEmptyDomainJson + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 get array non-empty domaim -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getArrayNonEmptyDomainJsonCall( + String namespace, String array, 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 = "/arrays/{namespace}/{array}/non_empty_domain_json" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getArrayNonEmptyDomainJsonValidateBeforeCall(String namespace, String array, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling getArrayNonEmptyDomainJson(Async)"); + } + + // verify the required parameter 'array' is set + if (array == null) { + throw new ApiException("Missing the required parameter 'array' when calling getArrayNonEmptyDomainJson(Async)"); + } + + + okhttp3.Call localVarCall = getArrayNonEmptyDomainJsonCall(namespace, array, _callback); + return localVarCall; + + } + + /** + * get non-empty domain from the array in json format + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @return Object + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 get array non-empty domaim -
502 Bad Gateway -
0 error response -
+ */ + public Object getArrayNonEmptyDomainJson(String namespace, String array) throws ApiException { + ApiResponse localVarResp = getArrayNonEmptyDomainJsonWithHttpInfo(namespace, array); + return localVarResp.getData(); + } + + /** + * get non-empty domain from the array in json format + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @return ApiResponse<Object> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 get array non-empty domaim -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse getArrayNonEmptyDomainJsonWithHttpInfo(String namespace, String array) + throws ApiException { + okhttp3.Call localVarCall = getArrayNonEmptyDomainJsonValidateBeforeCall(namespace, array, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) get non-empty domain from the array in json format + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 get array non-empty domaim -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getArrayNonEmptyDomainJsonAsync( + String namespace, String array, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getArrayNonEmptyDomainJsonValidateBeforeCall(namespace, array, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getArraySampleData + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param samples Number of sample results to return (optional, default to 5.0) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 get array sample data -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getArraySampleDataCall( + String namespace, String array, BigDecimal samples, 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 = "/arrays/{namespace}/{array}/sample" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (samples != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("samples", samples)); + } + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getArraySampleDataValidateBeforeCall(String namespace, String array, BigDecimal samples, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling getArraySampleData(Async)"); + } + + // verify the required parameter 'array' is set + if (array == null) { + throw new ApiException("Missing the required parameter 'array' when calling getArraySampleData(Async)"); + } + + + okhttp3.Call localVarCall = getArraySampleDataCall(namespace, array, samples, _callback); + return localVarCall; + + } + + /** + * get an sample set of data from the array + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param samples Number of sample results to return (optional, default to 5.0) + * @return ArraySample + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 get array sample data -
502 Bad Gateway -
0 error response -
+ */ + public ArraySample getArraySampleData(String namespace, String array, BigDecimal samples) + throws ApiException { + ApiResponse localVarResp = getArraySampleDataWithHttpInfo(namespace, array, samples); + return localVarResp.getData(); + } + + /** + * get an sample set of data from the array + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param samples Number of sample results to return (optional, default to 5.0) + * @return ApiResponse<ArraySample> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 get array sample data -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse getArraySampleDataWithHttpInfo( + String namespace, String array, BigDecimal samples) throws ApiException { + okhttp3.Call localVarCall = getArraySampleDataValidateBeforeCall(namespace, array, samples, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) get an sample set of data from the array + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param samples Number of sample results to return (optional, default to 5.0) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 get array sample data -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getArraySampleDataAsync( + String namespace, String array, BigDecimal samples, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = getArraySampleDataValidateBeforeCall(namespace, array, samples, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getArraySharingPolicies + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 List of all specific sharing policies -
404 Array does not exist or user does not have permissions to view array-sharing policies -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getArraySharingPoliciesCall( + String namespace, String array, 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 = "/arrays/{namespace}/{array}/share" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getArraySharingPoliciesValidateBeforeCall(String namespace, String array, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling getArraySharingPolicies(Async)"); + } + + // verify the required parameter 'array' is set + if (array == null) { + throw new ApiException("Missing the required parameter 'array' when calling getArraySharingPolicies(Async)"); + } + + + okhttp3.Call localVarCall = getArraySharingPoliciesCall(namespace, array, _callback); + return localVarCall; + + } + + /** + * Get all sharing details of the array + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @return List<ArraySharing> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 List of all specific sharing policies -
404 Array does not exist or user does not have permissions to view array-sharing policies -
502 Bad Gateway -
0 error response -
+ */ + public List getArraySharingPolicies(String namespace, String array) + throws ApiException { + ApiResponse> localVarResp = getArraySharingPoliciesWithHttpInfo(namespace, array); + return localVarResp.getData(); + } + + /** + * Get all sharing details of the array + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @return ApiResponse<List<ArraySharing>> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 List of all specific sharing policies -
404 Array does not exist or user does not have permissions to view array-sharing policies -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse> getArraySharingPoliciesWithHttpInfo( + String namespace, String array) throws ApiException { + okhttp3.Call localVarCall = getArraySharingPoliciesValidateBeforeCall(namespace, array, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Get all sharing details of the array + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 List of all specific sharing policies -
404 Array does not exist or user does not have permissions to view array-sharing policies -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getArraySharingPoliciesAsync( + String namespace, String array, final ApiCallback> _callback) + throws ApiException { + + okhttp3.Call localVarCall = getArraySharingPoliciesValidateBeforeCall(namespace, array, _callback); + Type localVarReturnType = new TypeToken>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getArraysInNamespace + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param withMetadata include the metadata of the arrays (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 array metadata for all arrays in a namespace -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getArraysInNamespaceCall( + String namespace, Boolean withMetadata, 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 = "/arrays/{namespace}" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (withMetadata != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("with_metadata", withMetadata)); + } + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getArraysInNamespaceValidateBeforeCall(String namespace, Boolean withMetadata, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling getArraysInNamespace(Async)"); + } + + + okhttp3.Call localVarCall = getArraysInNamespaceCall(namespace, withMetadata, _callback); + return localVarCall; + + } + + /** + * get metadata on all arrays in a namespace + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param withMetadata include the metadata of the arrays (optional) + * @return List<ArrayInfo> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 array metadata for all arrays in a namespace -
502 Bad Gateway -
0 error response -
+ */ + public List getArraysInNamespace(String namespace, Boolean withMetadata) + throws ApiException { + ApiResponse> localVarResp = getArraysInNamespaceWithHttpInfo(namespace, withMetadata); + return localVarResp.getData(); + } + + /** + * get metadata on all arrays in a namespace + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param withMetadata include the metadata of the arrays (optional) + * @return ApiResponse<List<ArrayInfo>> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 array metadata for all arrays in a namespace -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse> getArraysInNamespaceWithHttpInfo( + String namespace, Boolean withMetadata) throws ApiException { + okhttp3.Call localVarCall = getArraysInNamespaceValidateBeforeCall(namespace, withMetadata, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) get metadata on all arrays in a namespace + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param withMetadata include the metadata of the arrays (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 array metadata for all arrays in a namespace -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getArraysInNamespaceAsync( + String namespace, Boolean withMetadata, final ApiCallback> _callback) + throws ApiException { + + okhttp3.Call localVarCall = getArraysInNamespaceValidateBeforeCall(namespace, withMetadata, _callback); + Type localVarReturnType = new TypeToken>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getFragmentEndTimestamp + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param endTimestamp Milliseconds since Unix epoch (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 fragment end_timestamp on an array -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getFragmentEndTimestampCall( + String namespace, String array, Integer endTimestamp, 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 = "/arrays/{namespace}/{array}/fragment_end_timestamp" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (endTimestamp != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("end_timestamp", endTimestamp)); + } + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getFragmentEndTimestampValidateBeforeCall(String namespace, String array, Integer endTimestamp, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling getFragmentEndTimestamp(Async)"); + } + + // verify the required parameter 'array' is set + if (array == null) { + throw new ApiException("Missing the required parameter 'array' when calling getFragmentEndTimestamp(Async)"); + } + + + okhttp3.Call localVarCall = getFragmentEndTimestampCall(namespace, array, endTimestamp, _callback); + return localVarCall; + + } + + /** + * Get fragment end_timestamp on an array, will search for the closest end_timestamp to the + * timestamp asked + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param endTimestamp Milliseconds since Unix epoch (optional) + * @return Integer + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 fragment end_timestamp on an array -
502 Bad Gateway -
0 error response -
+ */ + public Integer getFragmentEndTimestamp(String namespace, String array, Integer endTimestamp) + throws ApiException { + ApiResponse localVarResp = getFragmentEndTimestampWithHttpInfo(namespace, array, endTimestamp); + return localVarResp.getData(); + } + + /** + * Get fragment end_timestamp on an array, will search for the closest end_timestamp to the + * timestamp asked + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param endTimestamp Milliseconds since Unix epoch (optional) + * @return ApiResponse<Integer> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 fragment end_timestamp on an array -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse getFragmentEndTimestampWithHttpInfo( + String namespace, String array, Integer endTimestamp) throws ApiException { + okhttp3.Call localVarCall = getFragmentEndTimestampValidateBeforeCall(namespace, array, endTimestamp, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Get fragment end_timestamp on an array, will search for the closest + * end_timestamp to the timestamp asked + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param endTimestamp Milliseconds since Unix epoch (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 fragment end_timestamp on an array -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getFragmentEndTimestampAsync( + String namespace, String array, Integer endTimestamp, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = getFragmentEndTimestampValidateBeforeCall(namespace, array, endTimestamp, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getLastAccessedArrays + * + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 gets last accessed arrays -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getLastAccessedArraysCall(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 = "/arrays/last_accessed"; + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getLastAccessedArraysValidateBeforeCall(final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = getLastAccessedArraysCall(_callback); + return localVarCall; + + } + + /** + * @return List<LastAccessedArray> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 gets last accessed arrays -
502 Bad Gateway -
0 error response -
+ */ + public List getLastAccessedArrays() throws ApiException { + ApiResponse> localVarResp = getLastAccessedArraysWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * @return ApiResponse<List<LastAccessedArray>> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 gets last accessed arrays -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse> getLastAccessedArraysWithHttpInfo() + throws ApiException { + okhttp3.Call localVarCall = getLastAccessedArraysValidateBeforeCall(null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 gets last accessed arrays -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getLastAccessedArraysAsync( + final ApiCallback> _callback) throws ApiException { + + okhttp3.Call localVarCall = getLastAccessedArraysValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for loadArraySchema + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param loadArraySchemaRequest Load Array Schema Request (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 array schemas returned successfully -
404 Array does not exist or user does not have permissions to access it -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call loadArraySchemaCall( + String namespace, + String array, + LoadArraySchemaRequest loadArraySchemaRequest, + 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 = loadArraySchemaRequest; + + // create path and map variables + String localVarPath = "/arrays/{namespace}/{array}/schema" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.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); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call loadArraySchemaValidateBeforeCall(String namespace, String array, LoadArraySchemaRequest loadArraySchemaRequest, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling loadArraySchema(Async)"); + } + + // verify the required parameter 'array' is set + if (array == null) { + throw new ApiException("Missing the required parameter 'array' when calling loadArraySchema(Async)"); + } + + // verify the required parameter 'loadArraySchemaRequest' is set + if (loadArraySchemaRequest == null) { + throw new ApiException("Missing the required parameter 'loadArraySchemaRequest' when calling loadArraySchema(Async)"); + } + + + okhttp3.Call localVarCall = loadArraySchemaCall(namespace, array, loadArraySchemaRequest, _callback); + return localVarCall; + + } + + /** + * request to get the array schema + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param loadArraySchemaRequest Load Array Schema Request (required) + * @return LoadArraySchemaResponse + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 array schemas returned successfully -
404 Array does not exist or user does not have permissions to access it -
502 Bad Gateway -
0 error response -
+ */ + public LoadArraySchemaResponse loadArraySchema( + String namespace, String array, LoadArraySchemaRequest loadArraySchemaRequest) + throws ApiException { + ApiResponse localVarResp = loadArraySchemaWithHttpInfo(namespace, array, loadArraySchemaRequest); + return localVarResp.getData(); + } + + /** + * request to get the array schema + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param loadArraySchemaRequest Load Array Schema Request (required) + * @return ApiResponse<LoadArraySchemaResponse> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 array schemas returned successfully -
404 Array does not exist or user does not have permissions to access it -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse loadArraySchemaWithHttpInfo( + String namespace, String array, LoadArraySchemaRequest loadArraySchemaRequest) + throws ApiException { + okhttp3.Call localVarCall = loadArraySchemaValidateBeforeCall(namespace, array, loadArraySchemaRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) request to get the array schema + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param loadArraySchemaRequest Load Array Schema Request (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 array schemas returned successfully -
404 Array does not exist or user does not have permissions to access it -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call loadArraySchemaAsync( + String namespace, + String array, + LoadArraySchemaRequest loadArraySchemaRequest, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = loadArraySchemaValidateBeforeCall(namespace, array, loadArraySchemaRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for loadEnumerations + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param loadEnumerationsRequest Load Enumerations Request (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 enumerations returned successfully -
404 Array does not exist or user does not have permissions to access it -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call loadEnumerationsCall( + String namespace, + String array, + LoadEnumerationsRequest loadEnumerationsRequest, + 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 = loadEnumerationsRequest; + + // create path and map variables + String localVarPath = "/arrays/{namespace}/{array}/enumerations" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.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); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call loadEnumerationsValidateBeforeCall(String namespace, String array, LoadEnumerationsRequest loadEnumerationsRequest, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling loadEnumerations(Async)"); + } + + // verify the required parameter 'array' is set + if (array == null) { + throw new ApiException("Missing the required parameter 'array' when calling loadEnumerations(Async)"); + } + + // verify the required parameter 'loadEnumerationsRequest' is set + if (loadEnumerationsRequest == null) { + throw new ApiException("Missing the required parameter 'loadEnumerationsRequest' when calling loadEnumerations(Async)"); + } + + + okhttp3.Call localVarCall = loadEnumerationsCall(namespace, array, loadEnumerationsRequest, _callback); + return localVarCall; + + } + + /** + * request to get the enumerations of the arrays' attributes + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param loadEnumerationsRequest Load Enumerations Request (required) + * @return LoadEnumerationsResponse + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 enumerations returned successfully -
404 Array does not exist or user does not have permissions to access it -
502 Bad Gateway -
0 error response -
+ */ + public LoadEnumerationsResponse loadEnumerations( + String namespace, String array, LoadEnumerationsRequest loadEnumerationsRequest) + throws ApiException { + ApiResponse localVarResp = loadEnumerationsWithHttpInfo(namespace, array, loadEnumerationsRequest); + return localVarResp.getData(); + } + + /** + * request to get the enumerations of the arrays' attributes + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param loadEnumerationsRequest Load Enumerations Request (required) + * @return ApiResponse<LoadEnumerationsResponse> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 enumerations returned successfully -
404 Array does not exist or user does not have permissions to access it -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse loadEnumerationsWithHttpInfo( + String namespace, String array, LoadEnumerationsRequest loadEnumerationsRequest) + throws ApiException { + okhttp3.Call localVarCall = loadEnumerationsValidateBeforeCall(namespace, array, loadEnumerationsRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) request to get the enumerations of the arrays' attributes + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param loadEnumerationsRequest Load Enumerations Request (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 enumerations returned successfully -
404 Array does not exist or user does not have permissions to access it -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call loadEnumerationsAsync( + String namespace, + String array, + LoadEnumerationsRequest loadEnumerationsRequest, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = loadEnumerationsValidateBeforeCall(namespace, array, loadEnumerationsRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for registerArray + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param arrayMetadata metadata associated with array (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 array registered successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call registerArrayCall( + String namespace, String array, ArrayInfoUpdate arrayMetadata, 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 = arrayMetadata; + + // create path and map variables + String localVarPath = "/arrays/{namespace}/{array}/register" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.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); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call registerArrayValidateBeforeCall(String namespace, String array, ArrayInfoUpdate arrayMetadata, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling registerArray(Async)"); + } + + // verify the required parameter 'array' is set + if (array == null) { + throw new ApiException("Missing the required parameter 'array' when calling registerArray(Async)"); + } + + // verify the required parameter 'arrayMetadata' is set + if (arrayMetadata == null) { + throw new ApiException("Missing the required parameter 'arrayMetadata' when calling registerArray(Async)"); + } + + + okhttp3.Call localVarCall = registerArrayCall(namespace, array, arrayMetadata, _callback); + return localVarCall; + + } + + /** + * register an array at a specified URI registered to the given namespace + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param arrayMetadata metadata associated with array (required) + * @return ArrayInfo + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 array registered successfully -
502 Bad Gateway -
0 error response -
+ */ + public ArrayInfo registerArray(String namespace, String array, ArrayInfoUpdate arrayMetadata) + throws ApiException { + ApiResponse localVarResp = registerArrayWithHttpInfo(namespace, array, arrayMetadata); + return localVarResp.getData(); + } + + /** + * register an array at a specified URI registered to the given namespace + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param arrayMetadata metadata associated with array (required) + * @return ApiResponse<ArrayInfo> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 array registered successfully -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse registerArrayWithHttpInfo( + String namespace, String array, ArrayInfoUpdate arrayMetadata) throws ApiException { + okhttp3.Call localVarCall = registerArrayValidateBeforeCall(namespace, array, arrayMetadata, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) register an array at a specified URI registered to the given namespace + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param arrayMetadata metadata associated with array (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 array registered successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call registerArrayAsync( + String namespace, + String array, + ArrayInfoUpdate arrayMetadata, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = registerArrayValidateBeforeCall(namespace, array, arrayMetadata, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for shareArray + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param arraySharing Namespace and list of permissions to share with. An empty list of + * permissions will remove the namespace; if permissions already exist they will be deleted + * then new ones added. In the event of a failure, the new policies will be rolled back to + * prevent partial policies, and it's likely the array will not be shared with the + * namespace at all. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
204 Array shared successfully -
404 Array does not exist or user does not have permissions to share array -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call shareArrayCall( + String namespace, String array, ArraySharing arraySharing, 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 = arraySharing; + + // create path and map variables + String localVarPath = "/arrays/{namespace}/{array}/share" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.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); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call shareArrayValidateBeforeCall(String namespace, String array, ArraySharing arraySharing, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling shareArray(Async)"); + } + + // verify the required parameter 'array' is set + if (array == null) { + throw new ApiException("Missing the required parameter 'array' when calling shareArray(Async)"); + } + + // verify the required parameter 'arraySharing' is set + if (arraySharing == null) { + throw new ApiException("Missing the required parameter 'arraySharing' when calling shareArray(Async)"); + } + + + okhttp3.Call localVarCall = shareArrayCall(namespace, array, arraySharing, _callback); + return localVarCall; + + } + + /** + * Share an array with a user + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param arraySharing Namespace and list of permissions to share with. An empty list of + * permissions will remove the namespace; if permissions already exist they will be deleted + * then new ones added. In the event of a failure, the new policies will be rolled back to + * prevent partial policies, and it's likely the array will not be shared with the + * namespace at all. (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
204 Array shared successfully -
404 Array does not exist or user does not have permissions to share array -
502 Bad Gateway -
0 error response -
+ */ + public void shareArray(String namespace, String array, ArraySharing arraySharing) + throws ApiException { + shareArrayWithHttpInfo(namespace, array, arraySharing); + } + + /** + * Share an array with a user + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param arraySharing Namespace and list of permissions to share with. An empty list of + * permissions will remove the namespace; if permissions already exist they will be deleted + * then new ones added. In the event of a failure, the new policies will be rolled back to + * prevent partial policies, and it's likely the array will not be shared with the + * namespace at all. (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
204 Array shared successfully -
404 Array does not exist or user does not have permissions to share array -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse shareArrayWithHttpInfo( + String namespace, String array, ArraySharing arraySharing) throws ApiException { + okhttp3.Call localVarCall = shareArrayValidateBeforeCall(namespace, array, arraySharing, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) Share an array with a user + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param arraySharing Namespace and list of permissions to share with. An empty list of + * permissions will remove the namespace; if permissions already exist they will be deleted + * then new ones added. In the event of a failure, the new policies will be rolled back to + * prevent partial policies, and it's likely the array will not be shared with the + * namespace at all. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
204 Array shared successfully -
404 Array does not exist or user does not have permissions to share array -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call shareArrayAsync( + String namespace, String array, ArraySharing arraySharing, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = shareArrayValidateBeforeCall(namespace, array, arraySharing, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for updateArrayMetadata + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param arrayMetadata array metadata to update (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 array metadata updated successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call updateArrayMetadataCall( + String namespace, String array, ArrayInfoUpdate arrayMetadata, 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 = arrayMetadata; + + // create path and map variables + String localVarPath = "/arrays/{namespace}/{array}/metadata" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.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); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateArrayMetadataValidateBeforeCall(String namespace, String array, ArrayInfoUpdate arrayMetadata, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling updateArrayMetadata(Async)"); + } + + // verify the required parameter 'array' is set + if (array == null) { + throw new ApiException("Missing the required parameter 'array' when calling updateArrayMetadata(Async)"); + } + + // verify the required parameter 'arrayMetadata' is set + if (arrayMetadata == null) { + throw new ApiException("Missing the required parameter 'arrayMetadata' when calling updateArrayMetadata(Async)"); + } + + + okhttp3.Call localVarCall = updateArrayMetadataCall(namespace, array, arrayMetadata, _callback); + return localVarCall; + + } + + /** + * update metadata on an array + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param arrayMetadata array metadata to update (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 array metadata updated successfully -
502 Bad Gateway -
0 error response -
+ */ + public void updateArrayMetadata(String namespace, String array, ArrayInfoUpdate arrayMetadata) + throws ApiException { + updateArrayMetadataWithHttpInfo(namespace, array, arrayMetadata); + } + + /** + * update metadata on an array + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param arrayMetadata array metadata to update (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 array metadata updated successfully -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse updateArrayMetadataWithHttpInfo( + String namespace, String array, ArrayInfoUpdate arrayMetadata) throws ApiException { + okhttp3.Call localVarCall = updateArrayMetadataValidateBeforeCall(namespace, array, arrayMetadata, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) update metadata on an array + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param arrayMetadata array metadata to update (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 array metadata updated successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call updateArrayMetadataAsync( + String namespace, + String array, + ArrayInfoUpdate arrayMetadata, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = updateArrayMetadataValidateBeforeCall(namespace, array, arrayMetadata, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for updateArrayMetadataCapnp + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param arrayMetadataEntries List of metadata entries (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 array metadata updated successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call updateArrayMetadataCapnpCall( + String namespace, + String array, + ArrayMetadata arrayMetadataEntries, + 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 = arrayMetadataEntries; + + // create path and map variables + String localVarPath = "/arrays/{namespace}/{array}/array_metadata" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.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", "application/capnp" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json", "application/capnp" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateArrayMetadataCapnpValidateBeforeCall(String namespace, String array, ArrayMetadata arrayMetadataEntries, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling updateArrayMetadataCapnp(Async)"); + } + + // verify the required parameter 'array' is set + if (array == null) { + throw new ApiException("Missing the required parameter 'array' when calling updateArrayMetadataCapnp(Async)"); + } + + // verify the required parameter 'arrayMetadataEntries' is set + if (arrayMetadataEntries == null) { + throw new ApiException("Missing the required parameter 'arrayMetadataEntries' when calling updateArrayMetadataCapnp(Async)"); + } + + + okhttp3.Call localVarCall = updateArrayMetadataCapnpCall(namespace, array, arrayMetadataEntries, _callback); + return localVarCall; + + } + + /** + * update metadata on an array + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param arrayMetadataEntries List of metadata entries (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 array metadata updated successfully -
502 Bad Gateway -
0 error response -
+ */ + public void updateArrayMetadataCapnp( + String namespace, String array, ArrayMetadata arrayMetadataEntries) throws ApiException { + updateArrayMetadataCapnpWithHttpInfo(namespace, array, arrayMetadataEntries); + } + + /** + * update metadata on an array + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param arrayMetadataEntries List of metadata entries (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 array metadata updated successfully -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse updateArrayMetadataCapnpWithHttpInfo( + String namespace, String array, ArrayMetadata arrayMetadataEntries) throws ApiException { + okhttp3.Call localVarCall = updateArrayMetadataCapnpValidateBeforeCall(namespace, array, arrayMetadataEntries, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) update metadata on an array + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param arrayMetadataEntries List of metadata entries (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 array metadata updated successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call updateArrayMetadataCapnpAsync( + String namespace, + String array, + ArrayMetadata arrayMetadataEntries, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = updateArrayMetadataCapnpValidateBeforeCall(namespace, array, arrayMetadataEntries, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for vacuumArray + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param vaccumRequest Vaccum Request (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 array vacuumed successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call vacuumArrayCall( + String namespace, String array, ArrayVacuumRequest vaccumRequest, 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 = vaccumRequest; + + // create path and map variables + String localVarPath = "/arrays/{namespace}/{array}/vacuum" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.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); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call vacuumArrayValidateBeforeCall(String namespace, String array, ArrayVacuumRequest vaccumRequest, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling vacuumArray(Async)"); + } + + // verify the required parameter 'array' is set + if (array == null) { + throw new ApiException("Missing the required parameter 'array' when calling vacuumArray(Async)"); + } + + // verify the required parameter 'vaccumRequest' is set + if (vaccumRequest == null) { + throw new ApiException("Missing the required parameter 'vaccumRequest' when calling vacuumArray(Async)"); + } + + + okhttp3.Call localVarCall = vacuumArrayCall(namespace, array, vaccumRequest, _callback); + return localVarCall; + + } + + /** + * vacuum an array at a specified URI + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param vaccumRequest Vaccum Request (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 array vacuumed successfully -
502 Bad Gateway -
0 error response -
+ */ + public void vacuumArray(String namespace, String array, ArrayVacuumRequest vaccumRequest) + throws ApiException { + vacuumArrayWithHttpInfo(namespace, array, vaccumRequest); + } + + /** + * vacuum an array at a specified URI + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param vaccumRequest Vaccum Request (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 array vacuumed successfully -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse vacuumArrayWithHttpInfo( + String namespace, String array, ArrayVacuumRequest vaccumRequest) throws ApiException { + okhttp3.Call localVarCall = vacuumArrayValidateBeforeCall(namespace, array, vaccumRequest, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) vacuum an array at a specified URI + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param vaccumRequest Vaccum Request (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 array vacuumed successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call vacuumArrayAsync( + String namespace, + String array, + ArrayVacuumRequest vaccumRequest, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = vacuumArrayValidateBeforeCall(namespace, array, vaccumRequest, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } +} diff --git a/src/main/java/io/tiledb/cloud/rest_api/ArrayTasksApi.java b/src/main/java/io/tiledb/cloud/rest_api/ArrayTasksApi.java new file mode 100644 index 0000000..8c4453a --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/ArrayTasksApi.java @@ -0,0 +1,220 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.17.51 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api; + + +import com.google.gson.reflect.TypeToken; + + + +import io.tiledb.cloud.rest_api.model.ArrayTaskBrowserSidebar; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class ArrayTasksApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public ArrayTasksApi() { + this(Configuration.getDefaultApiClient()); + } + + public ArrayTasksApi(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 getArrayTasksSidebar + * + * @param start Fetch tasks created after this time, unix epoch in seconds, default 7 days ago + * (optional) + * @param end Fetch tasks created before this time, unix epoch in seconds, default now (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 sidebar metadata for task definitions for all arrays user has access to -
404 array tasks not found -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getArrayTasksSidebarCall( + Integer start, Integer end, 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 = "/tasks/sidebar"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (start != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("start", start)); + } + + if (end != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("end", end)); + } + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getArrayTasksSidebarValidateBeforeCall(Integer start, Integer end, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = getArrayTasksSidebarCall(start, end, _callback); + return localVarCall; + + } + + /** + * @param start Fetch tasks created after this time, unix epoch in seconds, default 7 days ago + * (optional) + * @param end Fetch tasks created before this time, unix epoch in seconds, default now (optional) + * @return ArrayTaskBrowserSidebar + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 sidebar metadata for task definitions for all arrays user has access to -
404 array tasks not found -
502 Bad Gateway -
0 error response -
+ */ + public ArrayTaskBrowserSidebar getArrayTasksSidebar(Integer start, Integer end) + throws ApiException { + ApiResponse localVarResp = getArrayTasksSidebarWithHttpInfo(start, end); + return localVarResp.getData(); + } + + /** + * @param start Fetch tasks created after this time, unix epoch in seconds, default 7 days ago + * (optional) + * @param end Fetch tasks created before this time, unix epoch in seconds, default now (optional) + * @return ApiResponse<ArrayTaskBrowserSidebar> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 sidebar metadata for task definitions for all arrays user has access to -
404 array tasks not found -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse getArrayTasksSidebarWithHttpInfo( + Integer start, Integer end) throws ApiException { + okhttp3.Call localVarCall = getArrayTasksSidebarValidateBeforeCall(start, end, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param start Fetch tasks created after this time, unix epoch in seconds, default 7 days ago + * (optional) + * @param end Fetch tasks created before this time, unix epoch in seconds, default now (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 sidebar metadata for task definitions for all arrays user has access to -
404 array tasks not found -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getArrayTasksSidebarAsync( + Integer start, Integer end, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = getArrayTasksSidebarValidateBeforeCall(start, end, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/src/main/java/io/tiledb/cloud/rest_api/AssetsApi.java b/src/main/java/io/tiledb/cloud/rest_api/AssetsApi.java new file mode 100644 index 0000000..d9b57cc --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/AssetsApi.java @@ -0,0 +1,681 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.17.51 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api; + + +import com.google.gson.reflect.TypeToken; + + + +import io.tiledb.cloud.rest_api.model.AssetListResponse; +import io.tiledb.cloud.rest_api.model.ChangeAssetCredentialsRequest; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class AssetsApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public AssetsApi() { + this(Configuration.getDefaultApiClient()); + } + + public AssetsApi(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 changeAssetCredentials + * + * @param namespace The namespace to send the request on behalf of. (required) + * @param changeCredentialsRequest aws access credentials to store for a namespace (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 Credentials changed successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call changeAssetCredentialsCall( + String namespace, + ChangeAssetCredentialsRequest changeCredentialsRequest, + 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 = changeCredentialsRequest; + + // create path and map variables + String localVarPath = "/assets/{namespace}/change_credentials" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.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); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call changeAssetCredentialsValidateBeforeCall(String namespace, ChangeAssetCredentialsRequest changeCredentialsRequest, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling changeAssetCredentials(Async)"); + } + + // verify the required parameter 'changeCredentialsRequest' is set + if (changeCredentialsRequest == null) { + throw new ApiException("Missing the required parameter 'changeCredentialsRequest' when calling changeAssetCredentials(Async)"); + } + + + okhttp3.Call localVarCall = changeAssetCredentialsCall(namespace, changeCredentialsRequest, _callback); + return localVarCall; + + } + + /** + * Changes the access credentials to the given assets + * + * @param namespace The namespace to send the request on behalf of. (required) + * @param changeCredentialsRequest aws access credentials to store for a namespace (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 Credentials changed successfully -
502 Bad Gateway -
0 error response -
+ */ + public void changeAssetCredentials( + String namespace, ChangeAssetCredentialsRequest changeCredentialsRequest) + throws ApiException { + changeAssetCredentialsWithHttpInfo(namespace, changeCredentialsRequest); + } + + /** + * Changes the access credentials to the given assets + * + * @param namespace The namespace to send the request on behalf of. (required) + * @param changeCredentialsRequest aws access credentials to store for a namespace (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 Credentials changed successfully -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse changeAssetCredentialsWithHttpInfo( + String namespace, ChangeAssetCredentialsRequest changeCredentialsRequest) + throws ApiException { + okhttp3.Call localVarCall = changeAssetCredentialsValidateBeforeCall(namespace, changeCredentialsRequest, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) Changes the access credentials to the given assets + * + * @param namespace The namespace to send the request on behalf of. (required) + * @param changeCredentialsRequest aws access credentials to store for a namespace (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 Credentials changed successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call changeAssetCredentialsAsync( + String namespace, + ChangeAssetCredentialsRequest changeCredentialsRequest, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = changeAssetCredentialsValidateBeforeCall(namespace, changeCredentialsRequest, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for listAssets + * + * @param namespace namespace (required) + * @param assetType asset_type to filter to (optional) + * @param ownershipLevel ownership_level to filter to (owned, shared) (optional) + * @param depth depth of assets to be returned (optional) + * @param search search string (optional) + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param orderBy order by a specific property, defaults to `created_at desc` supported + * values are created_at, name, asset_type can also include the order type (asc or desc) + * separated by space i.e. `name asc` `name desc` etc. (optional) + * @param expand expansion option for the AssetInfo object to be added to the response (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Successful list of assets -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call listAssetsCall( + String namespace, + String assetType, + String ownershipLevel, + String depth, + String search, + Integer page, + Integer perPage, + String orderBy, + String expand, + 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 = "/assets/{namespace}" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (assetType != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("asset_type", assetType)); + } + + if (ownershipLevel != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ownership_level", ownershipLevel)); + } + + if (depth != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("depth", depth)); + } + + if (search != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("search", search)); + } + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + if (perPage != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("per_page", perPage)); + } + + if (orderBy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("order_by", orderBy)); + } + + if (expand != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("expand", expand)); + } + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listAssetsValidateBeforeCall(String namespace, String assetType, String ownershipLevel, String depth, String search, Integer page, Integer perPage, String orderBy, String expand, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling listAssets(Async)"); + } + + + okhttp3.Call localVarCall = listAssetsCall(namespace, assetType, ownershipLevel, depth, search, page, perPage, orderBy, expand, _callback); + return localVarCall; + + } + + /** + * List assets in a namespace + * + * @param namespace namespace (required) + * @param assetType asset_type to filter to (optional) + * @param ownershipLevel ownership_level to filter to (owned, shared) (optional) + * @param depth depth of assets to be returned (optional) + * @param search search string (optional) + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param orderBy order by a specific property, defaults to `created_at desc` supported + * values are created_at, name, asset_type can also include the order type (asc or desc) + * separated by space i.e. `name asc` `name desc` etc. (optional) + * @param expand expansion option for the AssetInfo object to be added to the response (optional) + * @return AssetListResponse + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Successful list of assets -
502 Bad Gateway -
0 error response -
+ */ + public AssetListResponse listAssets( + String namespace, + String assetType, + String ownershipLevel, + String depth, + String search, + Integer page, + Integer perPage, + String orderBy, + String expand) + throws ApiException { + ApiResponse localVarResp = listAssetsWithHttpInfo(namespace, assetType, ownershipLevel, depth, search, page, perPage, orderBy, expand); + return localVarResp.getData(); + } + + /** + * List assets in a namespace + * + * @param namespace namespace (required) + * @param assetType asset_type to filter to (optional) + * @param ownershipLevel ownership_level to filter to (owned, shared) (optional) + * @param depth depth of assets to be returned (optional) + * @param search search string (optional) + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param orderBy order by a specific property, defaults to `created_at desc` supported + * values are created_at, name, asset_type can also include the order type (asc or desc) + * separated by space i.e. `name asc` `name desc` etc. (optional) + * @param expand expansion option for the AssetInfo object to be added to the response (optional) + * @return ApiResponse<AssetListResponse> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Successful list of assets -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse listAssetsWithHttpInfo( + String namespace, + String assetType, + String ownershipLevel, + String depth, + String search, + Integer page, + Integer perPage, + String orderBy, + String expand) + throws ApiException { + okhttp3.Call localVarCall = listAssetsValidateBeforeCall(namespace, assetType, ownershipLevel, depth, search, page, perPage, orderBy, expand, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) List assets in a namespace + * + * @param namespace namespace (required) + * @param assetType asset_type to filter to (optional) + * @param ownershipLevel ownership_level to filter to (owned, shared) (optional) + * @param depth depth of assets to be returned (optional) + * @param search search string (optional) + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param orderBy order by a specific property, defaults to `created_at desc` supported + * values are created_at, name, asset_type can also include the order type (asc or desc) + * separated by space i.e. `name asc` `name desc` etc. (optional) + * @param expand expansion option for the AssetInfo object to be added to the response (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Successful list of assets -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call listAssetsAsync( + String namespace, + String assetType, + String ownershipLevel, + String depth, + String search, + Integer page, + Integer perPage, + String orderBy, + String expand, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = listAssetsValidateBeforeCall(namespace, assetType, ownershipLevel, depth, search, page, perPage, orderBy, expand, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listPublicAssets + * + * @param assetType asset_type to filter to (optional) + * @param depth depth of assets to be returned (optional) + * @param search search string (optional) + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param orderBy order by a specific property, defaults to `created_at desc` supported + * values are created_at, name, asset_type can also include the order type (asc or desc) + * separated by space i.e. `name asc` `name desc` etc. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Successful list of assets -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call listPublicAssetsCall( + String assetType, + String depth, + String search, + Integer page, + Integer perPage, + String orderBy, + 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 = "/public_assets"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (assetType != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("asset_type", assetType)); + } + + if (depth != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("depth", depth)); + } + + if (search != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("search", search)); + } + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + if (perPage != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("per_page", perPage)); + } + + if (orderBy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("order_by", orderBy)); + } + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listPublicAssetsValidateBeforeCall(String assetType, String depth, String search, Integer page, Integer perPage, String orderBy, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = listPublicAssetsCall(assetType, depth, search, page, perPage, orderBy, _callback); + return localVarCall; + + } + + /** + * List public assets + * + * @param assetType asset_type to filter to (optional) + * @param depth depth of assets to be returned (optional) + * @param search search string (optional) + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param orderBy order by a specific property, defaults to `created_at desc` supported + * values are created_at, name, asset_type can also include the order type (asc or desc) + * separated by space i.e. `name asc` `name desc` etc. (optional) + * @return AssetListResponse + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Successful list of assets -
502 Bad Gateway -
0 error response -
+ */ + public AssetListResponse listPublicAssets( + String assetType, String depth, String search, Integer page, Integer perPage, String orderBy) + throws ApiException { + ApiResponse localVarResp = listPublicAssetsWithHttpInfo(assetType, depth, search, page, perPage, orderBy); + return localVarResp.getData(); + } + + /** + * List public assets + * + * @param assetType asset_type to filter to (optional) + * @param depth depth of assets to be returned (optional) + * @param search search string (optional) + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param orderBy order by a specific property, defaults to `created_at desc` supported + * values are created_at, name, asset_type can also include the order type (asc or desc) + * separated by space i.e. `name asc` `name desc` etc. (optional) + * @return ApiResponse<AssetListResponse> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Successful list of assets -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse listPublicAssetsWithHttpInfo( + String assetType, String depth, String search, Integer page, Integer perPage, String orderBy) + throws ApiException { + okhttp3.Call localVarCall = listPublicAssetsValidateBeforeCall(assetType, depth, search, page, perPage, orderBy, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) List public assets + * + * @param assetType asset_type to filter to (optional) + * @param depth depth of assets to be returned (optional) + * @param search search string (optional) + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param orderBy order by a specific property, defaults to `created_at desc` supported + * values are created_at, name, asset_type can also include the order type (asc or desc) + * separated by space i.e. `name asc` `name desc` etc. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Successful list of assets -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call listPublicAssetsAsync( + String assetType, + String depth, + String search, + Integer page, + Integer perPage, + String orderBy, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = listPublicAssetsValidateBeforeCall(assetType, depth, search, page, perPage, orderBy, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/src/main/java/io/tiledb/cloud/rest_api/Configuration.java b/src/main/java/io/tiledb/cloud/rest_api/Configuration.java index fd82662..6073d96 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/Configuration.java +++ b/src/main/java/io/tiledb/cloud/rest_api/Configuration.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,7 +13,7 @@ package io.tiledb.cloud.rest_api; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class Configuration { private static ApiClient defaultApiClient = new ApiClient(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/FavoritesApi.java b/src/main/java/io/tiledb/cloud/rest_api/FavoritesApi.java new file mode 100644 index 0000000..d7389b2 --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/FavoritesApi.java @@ -0,0 +1,3003 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.17.51 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api; + + +import com.google.gson.reflect.TypeToken; + + + +import io.tiledb.cloud.rest_api.model.ArrayFavorite; +import io.tiledb.cloud.rest_api.model.ArrayFavoritesData; +import io.tiledb.cloud.rest_api.model.MLModelFavorite; +import io.tiledb.cloud.rest_api.model.MLModelFavoritesData; +import io.tiledb.cloud.rest_api.model.NotebookFavorite; +import io.tiledb.cloud.rest_api.model.NotebookFavoritesData; +import io.tiledb.cloud.rest_api.model.UDFFavorite; +import io.tiledb.cloud.rest_api.model.UDFFavoritesData; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class FavoritesApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public FavoritesApi() { + this(Configuration.getDefaultApiClient()); + } + + public FavoritesApi(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 addArrayFavorite + * + * @param namespace The namespace of the array (required) + * @param name The name of the array (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 Item added to favorites successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call addArrayFavoriteCall( + String namespace, String name, 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 = "/arrays/favorites/{namespace}/{name}" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addArrayFavoriteValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling addArrayFavorite(Async)"); + } + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling addArrayFavorite(Async)"); + } + + + okhttp3.Call localVarCall = addArrayFavoriteCall(namespace, name, _callback); + return localVarCall; + + } + + /** + * Add a new array favorite + * + * @param namespace The namespace of the array (required) + * @param name The name of the array (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 Item added to favorites successfully -
502 Bad Gateway -
0 error response -
+ */ + public void addArrayFavorite(String namespace, String name) throws ApiException { + addArrayFavoriteWithHttpInfo(namespace, name); + } + + /** + * Add a new array favorite + * + * @param namespace The namespace of the array (required) + * @param name The name of the array (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 Item added to favorites successfully -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse addArrayFavoriteWithHttpInfo(String namespace, String name) + throws ApiException { + okhttp3.Call localVarCall = addArrayFavoriteValidateBeforeCall(namespace, name, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) Add a new array favorite + * + * @param namespace The namespace of the array (required) + * @param name The name of the array (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 Item added to favorites successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call addArrayFavoriteAsync( + String namespace, String name, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addArrayFavoriteValidateBeforeCall(namespace, name, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for addMLModelFavorite + * + * @param namespace The namespace of the ML model (required) + * @param name The name of the ML model (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 Item added to favorites successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call addMLModelFavoriteCall( + String namespace, String name, 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 = "/ml_models/favorites/{namespace}/{name}" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addMLModelFavoriteValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling addMLModelFavorite(Async)"); + } + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling addMLModelFavorite(Async)"); + } + + + okhttp3.Call localVarCall = addMLModelFavoriteCall(namespace, name, _callback); + return localVarCall; + + } + + /** + * Add a new ML model favorite + * + * @param namespace The namespace of the ML model (required) + * @param name The name of the ML model (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 Item added to favorites successfully -
502 Bad Gateway -
0 error response -
+ */ + public void addMLModelFavorite(String namespace, String name) throws ApiException { + addMLModelFavoriteWithHttpInfo(namespace, name); + } + + /** + * Add a new ML model favorite + * + * @param namespace The namespace of the ML model (required) + * @param name The name of the ML model (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 Item added to favorites successfully -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse addMLModelFavoriteWithHttpInfo(String namespace, String name) + throws ApiException { + okhttp3.Call localVarCall = addMLModelFavoriteValidateBeforeCall(namespace, name, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) Add a new ML model favorite + * + * @param namespace The namespace of the ML model (required) + * @param name The name of the ML model (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 Item added to favorites successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call addMLModelFavoriteAsync( + String namespace, String name, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addMLModelFavoriteValidateBeforeCall(namespace, name, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for addNotebookFavorite + * + * @param namespace The namespace of the notebook (required) + * @param name The name of the notebook (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 Item added to favorites successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call addNotebookFavoriteCall( + String namespace, String name, 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 = "/notebooks/favorites/{namespace}/{name}" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addNotebookFavoriteValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling addNotebookFavorite(Async)"); + } + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling addNotebookFavorite(Async)"); + } + + + okhttp3.Call localVarCall = addNotebookFavoriteCall(namespace, name, _callback); + return localVarCall; + + } + + /** + * Add a new notebook favorite + * + * @param namespace The namespace of the notebook (required) + * @param name The name of the notebook (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 Item added to favorites successfully -
502 Bad Gateway -
0 error response -
+ */ + public void addNotebookFavorite(String namespace, String name) throws ApiException { + addNotebookFavoriteWithHttpInfo(namespace, name); + } + + /** + * Add a new notebook favorite + * + * @param namespace The namespace of the notebook (required) + * @param name The name of the notebook (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 Item added to favorites successfully -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse addNotebookFavoriteWithHttpInfo(String namespace, String name) + throws ApiException { + okhttp3.Call localVarCall = addNotebookFavoriteValidateBeforeCall(namespace, name, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) Add a new notebook favorite + * + * @param namespace The namespace of the notebook (required) + * @param name The name of the notebook (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 Item added to favorites successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call addNotebookFavoriteAsync( + String namespace, String name, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addNotebookFavoriteValidateBeforeCall(namespace, name, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for addUDFFavorite + * + * @param namespace The namespace of the UDF (required) + * @param name The name of the UDF (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 Item added to favorites successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call addUDFFavoriteCall(String namespace, String name, 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 = "/udfs/favorites/{namespace}/{name}" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addUDFFavoriteValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling addUDFFavorite(Async)"); + } + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling addUDFFavorite(Async)"); + } + + + okhttp3.Call localVarCall = addUDFFavoriteCall(namespace, name, _callback); + return localVarCall; + + } + + /** + * Add a new UDF favorite + * + * @param namespace The namespace of the UDF (required) + * @param name The name of the UDF (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 Item added to favorites successfully -
502 Bad Gateway -
0 error response -
+ */ + public void addUDFFavorite(String namespace, String name) throws ApiException { + addUDFFavoriteWithHttpInfo(namespace, name); + } + + /** + * Add a new UDF favorite + * + * @param namespace The namespace of the UDF (required) + * @param name The name of the UDF (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 Item added to favorites successfully -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse addUDFFavoriteWithHttpInfo(String namespace, String name) + throws ApiException { + okhttp3.Call localVarCall = addUDFFavoriteValidateBeforeCall(namespace, name, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) Add a new UDF favorite + * + * @param namespace The namespace of the UDF (required) + * @param name The name of the UDF (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 Item added to favorites successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call addUDFFavoriteAsync( + String namespace, String name, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = addUDFFavoriteValidateBeforeCall(namespace, name, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for deleteArrayFavorite + * + * @param namespace The namespace of the array (required) + * @param name The name of the array (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 array favorite item deleted successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call deleteArrayFavoriteCall( + String namespace, String name, 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 = "/arrays/favorites/{namespace}/{name}" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteArrayFavoriteValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteArrayFavorite(Async)"); + } + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteArrayFavorite(Async)"); + } + + + okhttp3.Call localVarCall = deleteArrayFavoriteCall(namespace, name, _callback); + return localVarCall; + + } + + /** + * Delete specific array favorite + * + * @param namespace The namespace of the array (required) + * @param name The name of the array (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 array favorite item deleted successfully -
502 Bad Gateway -
0 error response -
+ */ + public void deleteArrayFavorite(String namespace, String name) throws ApiException { + deleteArrayFavoriteWithHttpInfo(namespace, name); + } + + /** + * Delete specific array favorite + * + * @param namespace The namespace of the array (required) + * @param name The name of the array (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 array favorite item deleted successfully -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse deleteArrayFavoriteWithHttpInfo(String namespace, String name) + throws ApiException { + okhttp3.Call localVarCall = deleteArrayFavoriteValidateBeforeCall(namespace, name, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) Delete specific array favorite + * + * @param namespace The namespace of the array (required) + * @param name The name of the array (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 array favorite item deleted successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call deleteArrayFavoriteAsync( + String namespace, String name, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteArrayFavoriteValidateBeforeCall(namespace, name, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for deleteMLModelFavorite + * + * @param namespace The namespace of the ML model (required) + * @param name The name of the ML model (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 ML model favorite item deleted successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call deleteMLModelFavoriteCall( + String namespace, String name, 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 = "/ml_models/favorites/{namespace}/{name}" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteMLModelFavoriteValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteMLModelFavorite(Async)"); + } + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteMLModelFavorite(Async)"); + } + + + okhttp3.Call localVarCall = deleteMLModelFavoriteCall(namespace, name, _callback); + return localVarCall; + + } + + /** + * Delete specific ML model favorite + * + * @param namespace The namespace of the ML model (required) + * @param name The name of the ML model (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 ML model favorite item deleted successfully -
502 Bad Gateway -
0 error response -
+ */ + public void deleteMLModelFavorite(String namespace, String name) throws ApiException { + deleteMLModelFavoriteWithHttpInfo(namespace, name); + } + + /** + * Delete specific ML model favorite + * + * @param namespace The namespace of the ML model (required) + * @param name The name of the ML model (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 ML model favorite item deleted successfully -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse deleteMLModelFavoriteWithHttpInfo(String namespace, String name) + throws ApiException { + okhttp3.Call localVarCall = deleteMLModelFavoriteValidateBeforeCall(namespace, name, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) Delete specific ML model favorite + * + * @param namespace The namespace of the ML model (required) + * @param name The name of the ML model (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 ML model favorite item deleted successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call deleteMLModelFavoriteAsync( + String namespace, String name, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteMLModelFavoriteValidateBeforeCall(namespace, name, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for deleteNotebookFavorite + * + * @param namespace The namespace of the notebook (required) + * @param name The name of the notebook (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 notebook favorite item deleted successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call deleteNotebookFavoriteCall( + String namespace, String name, 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 = "/notebooks/favorites/{namespace}/{name}" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteNotebookFavoriteValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteNotebookFavorite(Async)"); + } + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteNotebookFavorite(Async)"); + } + + + okhttp3.Call localVarCall = deleteNotebookFavoriteCall(namespace, name, _callback); + return localVarCall; + + } + + /** + * Delete specific notebook favorite + * + * @param namespace The namespace of the notebook (required) + * @param name The name of the notebook (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 notebook favorite item deleted successfully -
502 Bad Gateway -
0 error response -
+ */ + public void deleteNotebookFavorite(String namespace, String name) throws ApiException { + deleteNotebookFavoriteWithHttpInfo(namespace, name); + } + + /** + * Delete specific notebook favorite + * + * @param namespace The namespace of the notebook (required) + * @param name The name of the notebook (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 notebook favorite item deleted successfully -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse deleteNotebookFavoriteWithHttpInfo(String namespace, String name) + throws ApiException { + okhttp3.Call localVarCall = deleteNotebookFavoriteValidateBeforeCall(namespace, name, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) Delete specific notebook favorite + * + * @param namespace The namespace of the notebook (required) + * @param name The name of the notebook (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 notebook favorite item deleted successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call deleteNotebookFavoriteAsync( + String namespace, String name, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteNotebookFavoriteValidateBeforeCall(namespace, name, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for deleteUDFFavorite + * + * @param namespace The namespace of the UDF (required) + * @param name The name of the UDF (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 UDF favorite item deleted successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call deleteUDFFavoriteCall( + String namespace, String name, 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 = "/udfs/favorites/{namespace}/{name}" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteUDFFavoriteValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteUDFFavorite(Async)"); + } + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteUDFFavorite(Async)"); + } + + + okhttp3.Call localVarCall = deleteUDFFavoriteCall(namespace, name, _callback); + return localVarCall; + + } + + /** + * Delete specific UDF favorite + * + * @param namespace The namespace of the UDF (required) + * @param name The name of the UDF (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 UDF favorite item deleted successfully -
502 Bad Gateway -
0 error response -
+ */ + public void deleteUDFFavorite(String namespace, String name) throws ApiException { + deleteUDFFavoriteWithHttpInfo(namespace, name); + } + + /** + * Delete specific UDF favorite + * + * @param namespace The namespace of the UDF (required) + * @param name The name of the UDF (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 UDF favorite item deleted successfully -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse deleteUDFFavoriteWithHttpInfo(String namespace, String name) + throws ApiException { + okhttp3.Call localVarCall = deleteUDFFavoriteValidateBeforeCall(namespace, name, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) Delete specific UDF favorite + * + * @param namespace The namespace of the UDF (required) + * @param name The name of the UDF (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 UDF favorite item deleted successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call deleteUDFFavoriteAsync( + String namespace, String name, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteUDFFavoriteValidateBeforeCall(namespace, name, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for getArrayFavorite + * + * @param namespace The namespace of the array (required) + * @param name The name of the array (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getArrayFavoriteCall( + String namespace, String name, 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 = "/arrays/favorites/{namespace}/{name}" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getArrayFavoriteValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling getArrayFavorite(Async)"); + } + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling getArrayFavorite(Async)"); + } + + + okhttp3.Call localVarCall = getArrayFavoriteCall(namespace, name, _callback); + return localVarCall; + + } + + /** + * Fetch array favorite of a specific array + * + * @param namespace The namespace of the array (required) + * @param name The name of the array (required) + * @return ArrayFavorite + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
502 Bad Gateway -
0 error response -
+ */ + public ArrayFavorite getArrayFavorite(String namespace, String name) throws ApiException { + ApiResponse localVarResp = getArrayFavoriteWithHttpInfo(namespace, name); + return localVarResp.getData(); + } + + /** + * Fetch array favorite of a specific array + * + * @param namespace The namespace of the array (required) + * @param name The name of the array (required) + * @return ApiResponse<ArrayFavorite> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse getArrayFavoriteWithHttpInfo(String namespace, String name) + throws ApiException { + okhttp3.Call localVarCall = getArrayFavoriteValidateBeforeCall(namespace, name, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Fetch array favorite of a specific array + * + * @param namespace The namespace of the array (required) + * @param name The name of the array (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getArrayFavoriteAsync( + String namespace, String name, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = getArrayFavoriteValidateBeforeCall(namespace, name, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getMLModelFavorite + * + * @param namespace The namespace of the ML model (required) + * @param name The name of the ML model (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getMLModelFavoriteCall( + String namespace, String name, 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 = "/ml_models/favorites/{namespace}/{name}" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getMLModelFavoriteValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling getMLModelFavorite(Async)"); + } + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling getMLModelFavorite(Async)"); + } + + + okhttp3.Call localVarCall = getMLModelFavoriteCall(namespace, name, _callback); + return localVarCall; + + } + + /** + * Fetch ML model favorite of a specific ML model + * + * @param namespace The namespace of the ML model (required) + * @param name The name of the ML model (required) + * @return MLModelFavorite + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
502 Bad Gateway -
0 error response -
+ */ + public MLModelFavorite getMLModelFavorite(String namespace, String name) throws ApiException { + ApiResponse localVarResp = getMLModelFavoriteWithHttpInfo(namespace, name); + return localVarResp.getData(); + } + + /** + * Fetch ML model favorite of a specific ML model + * + * @param namespace The namespace of the ML model (required) + * @param name The name of the ML model (required) + * @return ApiResponse<MLModelFavorite> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse getMLModelFavoriteWithHttpInfo(String namespace, String name) + throws ApiException { + okhttp3.Call localVarCall = getMLModelFavoriteValidateBeforeCall(namespace, name, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Fetch ML model favorite of a specific ML model + * + * @param namespace The namespace of the ML model (required) + * @param name The name of the ML model (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getMLModelFavoriteAsync( + String namespace, String name, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = getMLModelFavoriteValidateBeforeCall(namespace, name, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getNotebookFavorite + * + * @param namespace The namespace of the notebook (required) + * @param name The name of the notebook (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getNotebookFavoriteCall( + String namespace, String name, 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 = "/notebooks/favorites/{namespace}/{name}" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getNotebookFavoriteValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling getNotebookFavorite(Async)"); + } + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling getNotebookFavorite(Async)"); + } + + + okhttp3.Call localVarCall = getNotebookFavoriteCall(namespace, name, _callback); + return localVarCall; + + } + + /** + * Fetch notebook favorite of a specific notebook + * + * @param namespace The namespace of the notebook (required) + * @param name The name of the notebook (required) + * @return NotebookFavorite + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
502 Bad Gateway -
0 error response -
+ */ + public NotebookFavorite getNotebookFavorite(String namespace, String name) throws ApiException { + ApiResponse localVarResp = getNotebookFavoriteWithHttpInfo(namespace, name); + return localVarResp.getData(); + } + + /** + * Fetch notebook favorite of a specific notebook + * + * @param namespace The namespace of the notebook (required) + * @param name The name of the notebook (required) + * @return ApiResponse<NotebookFavorite> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse getNotebookFavoriteWithHttpInfo( + String namespace, String name) throws ApiException { + okhttp3.Call localVarCall = getNotebookFavoriteValidateBeforeCall(namespace, name, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Fetch notebook favorite of a specific notebook + * + * @param namespace The namespace of the notebook (required) + * @param name The name of the notebook (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getNotebookFavoriteAsync( + String namespace, String name, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = getNotebookFavoriteValidateBeforeCall(namespace, name, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getUDFFavorite + * + * @param namespace The namespace of the UDF (required) + * @param name The name of the UDF (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getUDFFavoriteCall(String namespace, String name, 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 = "/udfs/favorites/{namespace}/{name}" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getUDFFavoriteValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling getUDFFavorite(Async)"); + } + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling getUDFFavorite(Async)"); + } + + + okhttp3.Call localVarCall = getUDFFavoriteCall(namespace, name, _callback); + return localVarCall; + + } + + /** + * Fetch UDF favorite of a specific UDF + * + * @param namespace The namespace of the UDF (required) + * @param name The name of the UDF (required) + * @return UDFFavorite + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
502 Bad Gateway -
0 error response -
+ */ + public UDFFavorite getUDFFavorite(String namespace, String name) throws ApiException { + ApiResponse localVarResp = getUDFFavoriteWithHttpInfo(namespace, name); + return localVarResp.getData(); + } + + /** + * Fetch UDF favorite of a specific UDF + * + * @param namespace The namespace of the UDF (required) + * @param name The name of the UDF (required) + * @return ApiResponse<UDFFavorite> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse getUDFFavoriteWithHttpInfo(String namespace, String name) + throws ApiException { + okhttp3.Call localVarCall = getUDFFavoriteValidateBeforeCall(namespace, name, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Fetch UDF favorite of a specific UDF + * + * @param namespace The namespace of the UDF (required) + * @param name The name of the UDF (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 OK -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getUDFFavoriteAsync( + String namespace, String name, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getUDFFavoriteValidateBeforeCall(namespace, name, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listArrayFavorites + * + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Available array favorites are returned -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call listArrayFavoritesCall( + Integer page, Integer perPage, 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 = "/arrays/favorites"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + if (perPage != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("per_page", perPage)); + } + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listArrayFavoritesValidateBeforeCall(Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = listArrayFavoritesCall(page, perPage, _callback); + return localVarCall; + + } + + /** + * Fetch a page of array favorites of connected user + * + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @return ArrayFavoritesData + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Available array favorites are returned -
502 Bad Gateway -
0 error response -
+ */ + public ArrayFavoritesData listArrayFavorites(Integer page, Integer perPage) throws ApiException { + ApiResponse localVarResp = listArrayFavoritesWithHttpInfo(page, perPage); + return localVarResp.getData(); + } + + /** + * Fetch a page of array favorites of connected user + * + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @return ApiResponse<ArrayFavoritesData> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Available array favorites are returned -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse listArrayFavoritesWithHttpInfo( + Integer page, Integer perPage) throws ApiException { + okhttp3.Call localVarCall = listArrayFavoritesValidateBeforeCall(page, perPage, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Fetch a page of array favorites of connected user + * + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Available array favorites are returned -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call listArrayFavoritesAsync( + Integer page, Integer perPage, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = listArrayFavoritesValidateBeforeCall(page, perPage, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listArrayFavoritesUUIDs + * + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Available favorites array uuids are returned -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call listArrayFavoritesUUIDsCall(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 = "/arrays/favorites/uuids"; + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listArrayFavoritesUUIDsValidateBeforeCall(final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = listArrayFavoritesUUIDsCall(_callback); + return localVarCall; + + } + + /** + * Fetch all favorite array uuids of connected user + * + * @return List<ArrayFavorite> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Available favorites array uuids are returned -
502 Bad Gateway -
0 error response -
+ */ + public List listArrayFavoritesUUIDs() throws ApiException { + ApiResponse> localVarResp = listArrayFavoritesUUIDsWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * Fetch all favorite array uuids of connected user + * + * @return ApiResponse<List<ArrayFavorite>> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Available favorites array uuids are returned -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse> listArrayFavoritesUUIDsWithHttpInfo() + throws ApiException { + okhttp3.Call localVarCall = listArrayFavoritesUUIDsValidateBeforeCall(null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Fetch all favorite array uuids of connected user + * + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Available favorites array uuids are returned -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call listArrayFavoritesUUIDsAsync(final ApiCallback> _callback) + throws ApiException { + + okhttp3.Call localVarCall = listArrayFavoritesUUIDsValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listMLModelFavorites + * + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Available ML models favorites are returned -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call listMLModelFavoritesCall( + Integer page, Integer perPage, 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 = "/ml_models/favorites"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + if (perPage != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("per_page", perPage)); + } + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listMLModelFavoritesValidateBeforeCall(Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = listMLModelFavoritesCall(page, perPage, _callback); + return localVarCall; + + } + + /** + * Fetch a page of ML models favorites of connected user + * + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @return MLModelFavoritesData + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Available ML models favorites are returned -
502 Bad Gateway -
0 error response -
+ */ + public MLModelFavoritesData listMLModelFavorites(Integer page, Integer perPage) + throws ApiException { + ApiResponse localVarResp = listMLModelFavoritesWithHttpInfo(page, perPage); + return localVarResp.getData(); + } + + /** + * Fetch a page of ML models favorites of connected user + * + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @return ApiResponse<MLModelFavoritesData> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Available ML models favorites are returned -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse listMLModelFavoritesWithHttpInfo( + Integer page, Integer perPage) throws ApiException { + okhttp3.Call localVarCall = listMLModelFavoritesValidateBeforeCall(page, perPage, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Fetch a page of ML models favorites of connected user + * + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Available ML models favorites are returned -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call listMLModelFavoritesAsync( + Integer page, Integer perPage, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = listMLModelFavoritesValidateBeforeCall(page, perPage, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listMLModelFavoritesUUIDs + * + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Available favorites ML model uuids are returned -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call listMLModelFavoritesUUIDsCall(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 = "/ml_models/favorites/uuids"; + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listMLModelFavoritesUUIDsValidateBeforeCall(final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = listMLModelFavoritesUUIDsCall(_callback); + return localVarCall; + + } + + /** + * Fetch all favorite ML models uuids of connected user + * + * @return List<MLModelFavorite> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Available favorites ML model uuids are returned -
502 Bad Gateway -
0 error response -
+ */ + public List listMLModelFavoritesUUIDs() throws ApiException { + ApiResponse> localVarResp = listMLModelFavoritesUUIDsWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * Fetch all favorite ML models uuids of connected user + * + * @return ApiResponse<List<MLModelFavorite>> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Available favorites ML model uuids are returned -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse> listMLModelFavoritesUUIDsWithHttpInfo() + throws ApiException { + okhttp3.Call localVarCall = listMLModelFavoritesUUIDsValidateBeforeCall(null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Fetch all favorite ML models uuids of connected user + * + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Available favorites ML model uuids are returned -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call listMLModelFavoritesUUIDsAsync( + final ApiCallback> _callback) throws ApiException { + + okhttp3.Call localVarCall = listMLModelFavoritesUUIDsValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listNotebookFavorites + * + * @param isDashboard return only dashboards (optional) + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Available notebook favorites are returned -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call listNotebookFavoritesCall( + Boolean isDashboard, Integer page, Integer perPage, 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 = "/notebooks/favorites"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (isDashboard != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("is_dashboard", isDashboard)); + } + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + if (perPage != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("per_page", perPage)); + } + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listNotebookFavoritesValidateBeforeCall(Boolean isDashboard, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = listNotebookFavoritesCall(isDashboard, page, perPage, _callback); + return localVarCall; + + } + + /** + * Fetch a page of notebook favorites of connected user + * + * @param isDashboard return only dashboards (optional) + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @return NotebookFavoritesData + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Available notebook favorites are returned -
502 Bad Gateway -
0 error response -
+ */ + public NotebookFavoritesData listNotebookFavorites( + Boolean isDashboard, Integer page, Integer perPage) throws ApiException { + ApiResponse localVarResp = listNotebookFavoritesWithHttpInfo(isDashboard, page, perPage); + return localVarResp.getData(); + } + + /** + * Fetch a page of notebook favorites of connected user + * + * @param isDashboard return only dashboards (optional) + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @return ApiResponse<NotebookFavoritesData> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Available notebook favorites are returned -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse listNotebookFavoritesWithHttpInfo( + Boolean isDashboard, Integer page, Integer perPage) throws ApiException { + okhttp3.Call localVarCall = listNotebookFavoritesValidateBeforeCall(isDashboard, page, perPage, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Fetch a page of notebook favorites of connected user + * + * @param isDashboard return only dashboards (optional) + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Available notebook favorites are returned -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call listNotebookFavoritesAsync( + Boolean isDashboard, + Integer page, + Integer perPage, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = listNotebookFavoritesValidateBeforeCall(isDashboard, page, perPage, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listNotebookFavoritesUUIDs + * + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Available favorites notebook uuids are returned -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call listNotebookFavoritesUUIDsCall(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 = "/notebooks/favorites/uuids"; + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listNotebookFavoritesUUIDsValidateBeforeCall(final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = listNotebookFavoritesUUIDsCall(_callback); + return localVarCall; + + } + + /** + * Fetch all favorite notebook uuids of connected user + * + * @return List<NotebookFavorite> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Available favorites notebook uuids are returned -
502 Bad Gateway -
0 error response -
+ */ + public List listNotebookFavoritesUUIDs() throws ApiException { + ApiResponse> localVarResp = listNotebookFavoritesUUIDsWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * Fetch all favorite notebook uuids of connected user + * + * @return ApiResponse<List<NotebookFavorite>> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Available favorites notebook uuids are returned -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse> listNotebookFavoritesUUIDsWithHttpInfo() + throws ApiException { + okhttp3.Call localVarCall = listNotebookFavoritesUUIDsValidateBeforeCall(null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Fetch all favorite notebook uuids of connected user + * + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Available favorites notebook uuids are returned -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call listNotebookFavoritesUUIDsAsync( + final ApiCallback> _callback) throws ApiException { + + okhttp3.Call localVarCall = listNotebookFavoritesUUIDsValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listUDFFavorites + * + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Available UDF favorites are returned -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call listUDFFavoritesCall( + Integer page, Integer perPage, 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 = "/udfs/favorites"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + if (perPage != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("per_page", perPage)); + } + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listUDFFavoritesValidateBeforeCall(Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = listUDFFavoritesCall(page, perPage, _callback); + return localVarCall; + + } + + /** + * Fetch a page of UDF favorites of connected user + * + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @return UDFFavoritesData + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Available UDF favorites are returned -
502 Bad Gateway -
0 error response -
+ */ + public UDFFavoritesData listUDFFavorites(Integer page, Integer perPage) throws ApiException { + ApiResponse localVarResp = listUDFFavoritesWithHttpInfo(page, perPage); + return localVarResp.getData(); + } + + /** + * Fetch a page of UDF favorites of connected user + * + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @return ApiResponse<UDFFavoritesData> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Available UDF favorites are returned -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse listUDFFavoritesWithHttpInfo(Integer page, Integer perPage) + throws ApiException { + okhttp3.Call localVarCall = listUDFFavoritesValidateBeforeCall(page, perPage, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Fetch a page of UDF favorites of connected user + * + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Available UDF favorites are returned -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call listUDFFavoritesAsync( + Integer page, Integer perPage, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = listUDFFavoritesValidateBeforeCall(page, perPage, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listUDFFavoritesUUIDs + * + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Available favorites UDF uuids are returned -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call listUDFFavoritesUUIDsCall(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 = "/udfs/favorites/uuids"; + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listUDFFavoritesUUIDsValidateBeforeCall(final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = listUDFFavoritesUUIDsCall(_callback); + return localVarCall; + + } + + /** + * Fetch all favorite UDF uuids of connected user + * + * @return List<UDFFavorite> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Available favorites UDF uuids are returned -
502 Bad Gateway -
0 error response -
+ */ + public List listUDFFavoritesUUIDs() throws ApiException { + ApiResponse> localVarResp = listUDFFavoritesUUIDsWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * Fetch all favorite UDF uuids of connected user + * + * @return ApiResponse<List<UDFFavorite>> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Available favorites UDF uuids are returned -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse> listUDFFavoritesUUIDsWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = listUDFFavoritesUUIDsValidateBeforeCall(null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Fetch all favorite UDF uuids of connected user + * + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Available favorites UDF uuids are returned -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call listUDFFavoritesUUIDsAsync(final ApiCallback> _callback) + throws ApiException { + + okhttp3.Call localVarCall = listUDFFavoritesUUIDsValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/src/main/java/io/tiledb/cloud/rest_api/FilesApi.java b/src/main/java/io/tiledb/cloud/rest_api/FilesApi.java new file mode 100644 index 0000000..4a16d36 --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/FilesApi.java @@ -0,0 +1,618 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.17.51 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api; + + +import com.google.gson.reflect.TypeToken; + + + +import java.io.File; +import io.tiledb.cloud.rest_api.model.FileCreate; +import io.tiledb.cloud.rest_api.model.FileCreated; +import io.tiledb.cloud.rest_api.model.FileExport; +import io.tiledb.cloud.rest_api.model.FileExported; +import io.tiledb.cloud.rest_api.model.FileUploaded; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class FilesApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public FilesApi() { + this(Configuration.getDefaultApiClient()); + } + + public FilesApi(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 handleCreateFile + * + * @param namespace The namespace of the file (required) + * @param fileCreate Input/Output information to create a new TileDB file (required) + * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for + * creation (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
201 File created -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call handleCreateFileCall( + String namespace, + FileCreate fileCreate, + String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, + 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 = fileCreate; + + // create path and map variables + String localVarPath = "/files/{namespace}" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME != null) { + localVarHeaderParams.put("X-TILEDB-CLOUD-ACCESS-CREDENTIALS-NAME", localVarApiClient.parameterToString(X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME)); + } + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call handleCreateFileValidateBeforeCall(String namespace, FileCreate fileCreate, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling handleCreateFile(Async)"); + } + + // verify the required parameter 'fileCreate' is set + if (fileCreate == null) { + throw new ApiException("Missing the required parameter 'fileCreate' when calling handleCreateFile(Async)"); + } + + + okhttp3.Call localVarCall = handleCreateFileCall(namespace, fileCreate, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, _callback); + return localVarCall; + + } + + /** + * Create a tiledb file at the specified location + * + * @param namespace The namespace of the file (required) + * @param fileCreate Input/Output information to create a new TileDB file (required) + * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for + * creation (optional) + * @return FileCreated + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
201 File created -
502 Bad Gateway -
0 error response -
+ */ + public FileCreated handleCreateFile( + String namespace, FileCreate fileCreate, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME) + throws ApiException { + ApiResponse localVarResp = handleCreateFileWithHttpInfo(namespace, fileCreate, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME); + return localVarResp.getData(); + } + + /** + * Create a tiledb file at the specified location + * + * @param namespace The namespace of the file (required) + * @param fileCreate Input/Output information to create a new TileDB file (required) + * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for + * creation (optional) + * @return ApiResponse<FileCreated> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
201 File created -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse handleCreateFileWithHttpInfo( + String namespace, FileCreate fileCreate, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME) + throws ApiException { + okhttp3.Call localVarCall = handleCreateFileValidateBeforeCall(namespace, fileCreate, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Create a tiledb file at the specified location + * + * @param namespace The namespace of the file (required) + * @param fileCreate Input/Output information to create a new TileDB file (required) + * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for + * creation (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
201 File created -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call handleCreateFileAsync( + String namespace, + FileCreate fileCreate, + String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = handleCreateFileValidateBeforeCall(namespace, fileCreate, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for handleExportFile + * + * @param namespace The namespace of the file (required) + * @param _file The file identifier (required) + * @param fileExport Export configuration information (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
201 File exported -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call handleExportFileCall( + String namespace, String _file, FileExport fileExport, 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 = fileExport; + + // create path and map variables + String localVarPath = "/files/{namespace}/{file}/export" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "file" + "\\}", localVarApiClient.escapeString(_file.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); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call handleExportFileValidateBeforeCall(String namespace, String _file, FileExport fileExport, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling handleExportFile(Async)"); + } + + // verify the required parameter '_file' is set + if (_file == null) { + throw new ApiException("Missing the required parameter '_file' when calling handleExportFile(Async)"); + } + + // verify the required parameter 'fileExport' is set + if (fileExport == null) { + throw new ApiException("Missing the required parameter 'fileExport' when calling handleExportFile(Async)"); + } + + + okhttp3.Call localVarCall = handleExportFileCall(namespace, _file, fileExport, _callback); + return localVarCall; + + } + + /** + * Export a TileDB File back to its original file format + * + * @param namespace The namespace of the file (required) + * @param _file The file identifier (required) + * @param fileExport Export configuration information (required) + * @return FileExported + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
201 File exported -
502 Bad Gateway -
0 error response -
+ */ + public FileExported handleExportFile(String namespace, String _file, FileExport fileExport) + throws ApiException { + ApiResponse localVarResp = handleExportFileWithHttpInfo(namespace, _file, fileExport); + return localVarResp.getData(); + } + + /** + * Export a TileDB File back to its original file format + * + * @param namespace The namespace of the file (required) + * @param _file The file identifier (required) + * @param fileExport Export configuration information (required) + * @return ApiResponse<FileExported> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
201 File exported -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse handleExportFileWithHttpInfo( + String namespace, String _file, FileExport fileExport) throws ApiException { + okhttp3.Call localVarCall = handleExportFileValidateBeforeCall(namespace, _file, fileExport, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Export a TileDB File back to its original file format + * + * @param namespace The namespace of the file (required) + * @param _file The file identifier (required) + * @param fileExport Export configuration information (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
201 File exported -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call handleExportFileAsync( + String namespace, + String _file, + FileExport fileExport, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = handleExportFileValidateBeforeCall(namespace, _file, fileExport, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for handleUploadFile + * + * @param namespace The namespace of the file (required) + * @param inputFile the file to upload (required) + * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for + * creation (optional) + * @param outputUri output location of the TileDB File (optional) + * @param name name to set for registered file (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
201 File uploaded -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call handleUploadFileCall( + String namespace, + File inputFile, + String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, + String outputUri, + String name, + 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 = "/files/{namespace}/upload" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (inputFile != null) { + localVarFormParams.put("input_file", inputFile); + } + + if (outputUri != null) { + localVarFormParams.put("output_uri", outputUri); + } + + if (name != null) { + localVarFormParams.put("name", name); + } + + if (X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME != null) { + localVarHeaderParams.put("X-TILEDB-CLOUD-ACCESS-CREDENTIALS-NAME", localVarApiClient.parameterToString(X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME)); + } + + 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); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call handleUploadFileValidateBeforeCall(String namespace, File inputFile, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, String outputUri, String name, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling handleUploadFile(Async)"); + } + + // verify the required parameter 'inputFile' is set + if (inputFile == null) { + throw new ApiException("Missing the required parameter 'inputFile' when calling handleUploadFile(Async)"); + } + + + okhttp3.Call localVarCall = handleUploadFileCall(namespace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name, _callback); + return localVarCall; + + } + + /** + * Upload a tiledb file at the specified location + * + * @param namespace The namespace of the file (required) + * @param inputFile the file to upload (required) + * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for + * creation (optional) + * @param outputUri output location of the TileDB File (optional) + * @param name name to set for registered file (optional) + * @return FileUploaded + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
201 File uploaded -
502 Bad Gateway -
0 error response -
+ */ + public FileUploaded handleUploadFile( + String namespace, + File inputFile, + String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, + String outputUri, + String name) + throws ApiException { + ApiResponse localVarResp = handleUploadFileWithHttpInfo(namespace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name); + return localVarResp.getData(); + } + + /** + * Upload a tiledb file at the specified location + * + * @param namespace The namespace of the file (required) + * @param inputFile the file to upload (required) + * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for + * creation (optional) + * @param outputUri output location of the TileDB File (optional) + * @param name name to set for registered file (optional) + * @return ApiResponse<FileUploaded> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
201 File uploaded -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse handleUploadFileWithHttpInfo( + String namespace, + File inputFile, + String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, + String outputUri, + String name) + throws ApiException { + okhttp3.Call localVarCall = handleUploadFileValidateBeforeCall(namespace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Upload a tiledb file at the specified location + * + * @param namespace The namespace of the file (required) + * @param inputFile the file to upload (required) + * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for + * creation (optional) + * @param outputUri output location of the TileDB File (optional) + * @param name name to set for registered file (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
201 File uploaded -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call handleUploadFileAsync( + String namespace, + File inputFile, + String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, + String outputUri, + String name, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = handleUploadFileValidateBeforeCall(namespace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/src/main/java/io/tiledb/cloud/rest_api/GroupsApi.java b/src/main/java/io/tiledb/cloud/rest_api/GroupsApi.java new file mode 100644 index 0000000..f5ed7e0 --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/GroupsApi.java @@ -0,0 +1,3237 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.17.51 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api; + + +import com.google.gson.reflect.TypeToken; + + + +import io.tiledb.cloud.rest_api.model.GroupBrowserData; +import io.tiledb.cloud.rest_api.model.GroupBrowserFilterData; +import io.tiledb.cloud.rest_api.model.GroupChanges; +import io.tiledb.cloud.rest_api.model.GroupContentActivityResponse; +import io.tiledb.cloud.rest_api.model.GroupContents; +import io.tiledb.cloud.rest_api.model.GroupContentsFilterData; +import io.tiledb.cloud.rest_api.model.GroupCreate; +import io.tiledb.cloud.rest_api.model.GroupInfo; +import io.tiledb.cloud.rest_api.model.GroupRegister; +import io.tiledb.cloud.rest_api.model.GroupSharing; +import io.tiledb.cloud.rest_api.model.GroupSharingRequest; +import io.tiledb.cloud.rest_api.model.GroupUpdate; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class GroupsApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public GroupsApi() { + this(Configuration.getDefaultApiClient()); + } + + public GroupsApi(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 changeGroupContents + * + * @param groupNamespace The namespace of the group (required) + * @param groupName The unique name or id of the group (required) + * @param groupChanges (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 all changes applied successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call changeGroupContentsCall( + String groupNamespace, + String groupName, + GroupChanges groupChanges, + 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 = groupChanges; + + // create path and map variables + String localVarPath = "/groups/{group_namespace}/{group_name}/contents" + .replaceAll("\\{" + "group_namespace" + "\\}", localVarApiClient.escapeString(groupNamespace.toString())) + .replaceAll("\\{" + "group_name" + "\\}", localVarApiClient.escapeString(groupName.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); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call changeGroupContentsValidateBeforeCall(String groupNamespace, String groupName, GroupChanges groupChanges, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'groupNamespace' is set + if (groupNamespace == null) { + throw new ApiException("Missing the required parameter 'groupNamespace' when calling changeGroupContents(Async)"); + } + + // verify the required parameter 'groupName' is set + if (groupName == null) { + throw new ApiException("Missing the required parameter 'groupName' when calling changeGroupContents(Async)"); + } + + + okhttp3.Call localVarCall = changeGroupContentsCall(groupNamespace, groupName, groupChanges, _callback); + return localVarCall; + + } + + /** + * Changes the contents of the group by adding/removing members. + * + * @param groupNamespace The namespace of the group (required) + * @param groupName The unique name or id of the group (required) + * @param groupChanges (optional) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 all changes applied successfully -
502 Bad Gateway -
0 error response -
+ */ + public void changeGroupContents( + String groupNamespace, String groupName, GroupChanges groupChanges) throws ApiException { + changeGroupContentsWithHttpInfo(groupNamespace, groupName, groupChanges); + } + + /** + * Changes the contents of the group by adding/removing members. + * + * @param groupNamespace The namespace of the group (required) + * @param groupName The unique name or id of the group (required) + * @param groupChanges (optional) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 all changes applied successfully -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse changeGroupContentsWithHttpInfo( + String groupNamespace, String groupName, GroupChanges groupChanges) throws ApiException { + okhttp3.Call localVarCall = changeGroupContentsValidateBeforeCall(groupNamespace, groupName, groupChanges, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) Changes the contents of the group by adding/removing members. + * + * @param groupNamespace The namespace of the group (required) + * @param groupName The unique name or id of the group (required) + * @param groupChanges (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 all changes applied successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call changeGroupContentsAsync( + String groupNamespace, + String groupName, + GroupChanges groupChanges, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = changeGroupContentsValidateBeforeCall(groupNamespace, groupName, groupChanges, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for createGroup + * + * @param namespace The namespace of the group (required) + * @param groupCreate (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 group created successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call createGroupCall( + String namespace, GroupCreate groupCreate, 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 = groupCreate; + + // create path and map variables + String localVarPath = "/groups/{namespace}/create" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.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); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createGroupValidateBeforeCall(String namespace, GroupCreate groupCreate, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling createGroup(Async)"); + } + + + okhttp3.Call localVarCall = createGroupCall(namespace, groupCreate, _callback); + return localVarCall; + + } + + /** + * Creates a new group in the namespace. + * + * @param namespace The namespace of the group (required) + * @param groupCreate (optional) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 group created successfully -
502 Bad Gateway -
0 error response -
+ */ + public void createGroup(String namespace, GroupCreate groupCreate) throws ApiException { + createGroupWithHttpInfo(namespace, groupCreate); + } + + /** + * Creates a new group in the namespace. + * + * @param namespace The namespace of the group (required) + * @param groupCreate (optional) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 group created successfully -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse createGroupWithHttpInfo(String namespace, GroupCreate groupCreate) + throws ApiException { + okhttp3.Call localVarCall = createGroupValidateBeforeCall(namespace, groupCreate, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) Creates a new group in the namespace. + * + * @param namespace The namespace of the group (required) + * @param groupCreate (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 group created successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call createGroupAsync( + String namespace, GroupCreate groupCreate, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = createGroupValidateBeforeCall(namespace, groupCreate, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for deleteGroup + * + * @param groupNamespace The namespace of the group (required) + * @param groupName The unique name or id of the group (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 group deleted successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call deleteGroupCall( + String groupNamespace, String groupName, 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 = "/groups/{group_namespace}/{group_name}" + .replaceAll("\\{" + "group_namespace" + "\\}", localVarApiClient.escapeString(groupNamespace.toString())) + .replaceAll("\\{" + "group_name" + "\\}", localVarApiClient.escapeString(groupName.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteGroupValidateBeforeCall(String groupNamespace, String groupName, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'groupNamespace' is set + if (groupNamespace == null) { + throw new ApiException("Missing the required parameter 'groupNamespace' when calling deleteGroup(Async)"); + } + + // verify the required parameter 'groupName' is set + if (groupName == null) { + throw new ApiException("Missing the required parameter 'groupName' when calling deleteGroup(Async)"); + } + + + okhttp3.Call localVarCall = deleteGroupCall(groupNamespace, groupName, _callback); + return localVarCall; + + } + + /** + * Deletes the group. The assets are not deleted nor are not relocated to any other group + * + * @param groupNamespace The namespace of the group (required) + * @param groupName The unique name or id of the group (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 group deleted successfully -
502 Bad Gateway -
0 error response -
+ */ + public void deleteGroup(String groupNamespace, String groupName) throws ApiException { + deleteGroupWithHttpInfo(groupNamespace, groupName); + } + + /** + * Deletes the group. The assets are not deleted nor are not relocated to any other group + * + * @param groupNamespace The namespace of the group (required) + * @param groupName The unique name or id of the group (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 group deleted successfully -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse deleteGroupWithHttpInfo(String groupNamespace, String groupName) + throws ApiException { + okhttp3.Call localVarCall = deleteGroupValidateBeforeCall(groupNamespace, groupName, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) Deletes the group. The assets are not deleted nor are not relocated to any + * other group + * + * @param groupNamespace The namespace of the group (required) + * @param groupName The unique name or id of the group (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 group deleted successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call deleteGroupAsync( + String groupNamespace, String groupName, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = deleteGroupValidateBeforeCall(groupNamespace, groupName, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for getGroup + * + * @param groupNamespace The namespace of the group (required) + * @param groupName The unique name or id of the group (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 the group metadata -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getGroupCall( + String groupNamespace, String groupName, 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 = "/groups/{group_namespace}/{group_name}" + .replaceAll("\\{" + "group_namespace" + "\\}", localVarApiClient.escapeString(groupNamespace.toString())) + .replaceAll("\\{" + "group_name" + "\\}", localVarApiClient.escapeString(groupName.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getGroupValidateBeforeCall(String groupNamespace, String groupName, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'groupNamespace' is set + if (groupNamespace == null) { + throw new ApiException("Missing the required parameter 'groupNamespace' when calling getGroup(Async)"); + } + + // verify the required parameter 'groupName' is set + if (groupName == null) { + throw new ApiException("Missing the required parameter 'groupName' when calling getGroup(Async)"); + } + + + okhttp3.Call localVarCall = getGroupCall(groupNamespace, groupName, _callback); + return localVarCall; + + } + + /** + * Returns the the group + * + * @param groupNamespace The namespace of the group (required) + * @param groupName The unique name or id of the group (required) + * @return GroupInfo + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 the group metadata -
502 Bad Gateway -
0 error response -
+ */ + public GroupInfo getGroup(String groupNamespace, String groupName) throws ApiException { + ApiResponse localVarResp = getGroupWithHttpInfo(groupNamespace, groupName); + return localVarResp.getData(); + } + + /** + * Returns the the group + * + * @param groupNamespace The namespace of the group (required) + * @param groupName The unique name or id of the group (required) + * @return ApiResponse<GroupInfo> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 the group metadata -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse getGroupWithHttpInfo(String groupNamespace, String groupName) + throws ApiException { + okhttp3.Call localVarCall = getGroupValidateBeforeCall(groupNamespace, groupName, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Returns the the group + * + * @param groupNamespace The namespace of the group (required) + * @param groupName The unique name or id of the group (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 the group metadata -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getGroupAsync( + String groupNamespace, String groupName, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = getGroupValidateBeforeCall(groupNamespace, groupName, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getGroupActivity + * + * @param groupNamespace The namespace of the group (required) + * @param groupName The unique name or id of the group (required) + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Activity logs of group contents along with the pagination metadata -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getGroupActivityCall( + String groupNamespace, + String groupName, + Integer page, + Integer perPage, + 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 = "/groups/{group_namespace}/{group_name}/content_activity" + .replaceAll("\\{" + "group_namespace" + "\\}", localVarApiClient.escapeString(groupNamespace.toString())) + .replaceAll("\\{" + "group_name" + "\\}", localVarApiClient.escapeString(groupName.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + if (perPage != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("per_page", perPage)); + } + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getGroupActivityValidateBeforeCall(String groupNamespace, String groupName, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'groupNamespace' is set + if (groupNamespace == null) { + throw new ApiException("Missing the required parameter 'groupNamespace' when calling getGroupActivity(Async)"); + } + + // verify the required parameter 'groupName' is set + if (groupName == null) { + throw new ApiException("Missing the required parameter 'groupName' when calling getGroupActivity(Async)"); + } + + + okhttp3.Call localVarCall = getGroupActivityCall(groupNamespace, groupName, page, perPage, _callback); + return localVarCall; + + } + + /** + * Returns the activity of group content + * + * @param groupNamespace The namespace of the group (required) + * @param groupName The unique name or id of the group (required) + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @return GroupContentActivityResponse + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Activity logs of group contents along with the pagination metadata -
502 Bad Gateway -
0 error response -
+ */ + public GroupContentActivityResponse getGroupActivity( + String groupNamespace, String groupName, Integer page, Integer perPage) throws ApiException { + ApiResponse localVarResp = getGroupActivityWithHttpInfo(groupNamespace, groupName, page, perPage); + return localVarResp.getData(); + } + + /** + * Returns the activity of group content + * + * @param groupNamespace The namespace of the group (required) + * @param groupName The unique name or id of the group (required) + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @return ApiResponse<GroupContentActivityResponse> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Activity logs of group contents along with the pagination metadata -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse getGroupActivityWithHttpInfo( + String groupNamespace, String groupName, Integer page, Integer perPage) throws ApiException { + okhttp3.Call localVarCall = getGroupActivityValidateBeforeCall(groupNamespace, groupName, page, perPage, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Returns the activity of group content + * + * @param groupNamespace The namespace of the group (required) + * @param groupName The unique name or id of the group (required) + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Activity logs of group contents along with the pagination metadata -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getGroupActivityAsync( + String groupNamespace, + String groupName, + Integer page, + Integer perPage, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = getGroupActivityValidateBeforeCall(groupNamespace, groupName, page, perPage, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getGroupContents + * + * @param groupNamespace The namespace of the group (required) + * @param groupName The unique name or id of the group (required) + * @param page pagination offset for assets (optional) + * @param perPage pagination limit for assets (optional) + * @param namespace namespace to search for (optional) + * @param search search string that will look at name, namespace or description fields (optional) + * @param orderby sort by which field valid values include last_accessed, size, name (optional) + * @param tag tag to search for, more than one can be included (optional) + * @param excludeTag tags to exclude matching array in results, more than one can be included + * (optional) + * @param memberType member type to search for, more than one can be included (optional) + * @param excludeMemberType member type to exclude matching groups in results, more than one can + * be included (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 the group contents -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getGroupContentsCall( + String groupNamespace, + String groupName, + Integer page, + Integer perPage, + String namespace, + String search, + String orderby, + List tag, + List excludeTag, + List memberType, + List excludeMemberType, + 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 = "/groups/{group_namespace}/{group_name}/contents" + .replaceAll("\\{" + "group_namespace" + "\\}", localVarApiClient.escapeString(groupNamespace.toString())) + .replaceAll("\\{" + "group_name" + "\\}", localVarApiClient.escapeString(groupName.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + if (perPage != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("per_page", perPage)); + } + + if (namespace != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("namespace", namespace)); + } + + if (search != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("search", search)); + } + + if (orderby != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orderby", orderby)); + } + + if (tag != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "tag", tag)); + } + + if (excludeTag != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "exclude_tag", excludeTag)); + } + + if (memberType != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "member_type", memberType)); + } + + if (excludeMemberType != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "exclude_member_type", excludeMemberType)); + } + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getGroupContentsValidateBeforeCall(String groupNamespace, String groupName, Integer page, Integer perPage, String namespace, String search, String orderby, List tag, List excludeTag, List memberType, List excludeMemberType, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'groupNamespace' is set + if (groupNamespace == null) { + throw new ApiException("Missing the required parameter 'groupNamespace' when calling getGroupContents(Async)"); + } + + // verify the required parameter 'groupName' is set + if (groupName == null) { + throw new ApiException("Missing the required parameter 'groupName' when calling getGroupContents(Async)"); + } + + + okhttp3.Call localVarCall = getGroupContentsCall(groupNamespace, groupName, page, perPage, namespace, search, orderby, tag, excludeTag, memberType, excludeMemberType, _callback); + return localVarCall; + + } + + /** + * Returns the contents of the group + * + * @param groupNamespace The namespace of the group (required) + * @param groupName The unique name or id of the group (required) + * @param page pagination offset for assets (optional) + * @param perPage pagination limit for assets (optional) + * @param namespace namespace to search for (optional) + * @param search search string that will look at name, namespace or description fields (optional) + * @param orderby sort by which field valid values include last_accessed, size, name (optional) + * @param tag tag to search for, more than one can be included (optional) + * @param excludeTag tags to exclude matching array in results, more than one can be included + * (optional) + * @param memberType member type to search for, more than one can be included (optional) + * @param excludeMemberType member type to exclude matching groups in results, more than one can + * be included (optional) + * @return GroupContents + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 the group contents -
502 Bad Gateway -
0 error response -
+ */ + public GroupContents getGroupContents( + String groupNamespace, + String groupName, + Integer page, + Integer perPage, + String namespace, + String search, + String orderby, + List tag, + List excludeTag, + List memberType, + List excludeMemberType) + throws ApiException { + ApiResponse localVarResp = getGroupContentsWithHttpInfo(groupNamespace, groupName, page, perPage, namespace, search, orderby, tag, excludeTag, memberType, excludeMemberType); + return localVarResp.getData(); + } + + /** + * Returns the contents of the group + * + * @param groupNamespace The namespace of the group (required) + * @param groupName The unique name or id of the group (required) + * @param page pagination offset for assets (optional) + * @param perPage pagination limit for assets (optional) + * @param namespace namespace to search for (optional) + * @param search search string that will look at name, namespace or description fields (optional) + * @param orderby sort by which field valid values include last_accessed, size, name (optional) + * @param tag tag to search for, more than one can be included (optional) + * @param excludeTag tags to exclude matching array in results, more than one can be included + * (optional) + * @param memberType member type to search for, more than one can be included (optional) + * @param excludeMemberType member type to exclude matching groups in results, more than one can + * be included (optional) + * @return ApiResponse<GroupContents> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 the group contents -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse getGroupContentsWithHttpInfo( + String groupNamespace, + String groupName, + Integer page, + Integer perPage, + String namespace, + String search, + String orderby, + List tag, + List excludeTag, + List memberType, + List excludeMemberType) + throws ApiException { + okhttp3.Call localVarCall = getGroupContentsValidateBeforeCall(groupNamespace, groupName, page, perPage, namespace, search, orderby, tag, excludeTag, memberType, excludeMemberType, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Returns the contents of the group + * + * @param groupNamespace The namespace of the group (required) + * @param groupName The unique name or id of the group (required) + * @param page pagination offset for assets (optional) + * @param perPage pagination limit for assets (optional) + * @param namespace namespace to search for (optional) + * @param search search string that will look at name, namespace or description fields (optional) + * @param orderby sort by which field valid values include last_accessed, size, name (optional) + * @param tag tag to search for, more than one can be included (optional) + * @param excludeTag tags to exclude matching array in results, more than one can be included + * (optional) + * @param memberType member type to search for, more than one can be included (optional) + * @param excludeMemberType member type to exclude matching groups in results, more than one can + * be included (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 the group contents -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getGroupContentsAsync( + String groupNamespace, + String groupName, + Integer page, + Integer perPage, + String namespace, + String search, + String orderby, + List tag, + List excludeTag, + List memberType, + List excludeMemberType, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = getGroupContentsValidateBeforeCall(groupNamespace, groupName, page, perPage, namespace, search, orderby, tag, excludeTag, memberType, excludeMemberType, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getGroupSharingPolicies + * + * @param groupNamespace The namespace of the group (required) + * @param groupName The unique name or id of the group (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 List of all specific sharing policies -
404 Group does not exist or user does not have permissions to view group-sharing policies -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getGroupSharingPoliciesCall( + String groupNamespace, String groupName, 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 = "/groups/{group_namespace}/{group_name}/share" + .replaceAll("\\{" + "group_namespace" + "\\}", localVarApiClient.escapeString(groupNamespace.toString())) + .replaceAll("\\{" + "group_name" + "\\}", localVarApiClient.escapeString(groupName.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getGroupSharingPoliciesValidateBeforeCall(String groupNamespace, String groupName, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'groupNamespace' is set + if (groupNamespace == null) { + throw new ApiException("Missing the required parameter 'groupNamespace' when calling getGroupSharingPolicies(Async)"); + } + + // verify the required parameter 'groupName' is set + if (groupName == null) { + throw new ApiException("Missing the required parameter 'groupName' when calling getGroupSharingPolicies(Async)"); + } + + + okhttp3.Call localVarCall = getGroupSharingPoliciesCall(groupNamespace, groupName, _callback); + return localVarCall; + + } + + /** + * Get all sharing details of the group + * + * @param groupNamespace The namespace of the group (required) + * @param groupName The unique name or id of the group (required) + * @return List<GroupSharing> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 List of all specific sharing policies -
404 Group does not exist or user does not have permissions to view group-sharing policies -
502 Bad Gateway -
0 error response -
+ */ + public List getGroupSharingPolicies(String groupNamespace, String groupName) + throws ApiException { + ApiResponse> localVarResp = getGroupSharingPoliciesWithHttpInfo(groupNamespace, groupName); + return localVarResp.getData(); + } + + /** + * Get all sharing details of the group + * + * @param groupNamespace The namespace of the group (required) + * @param groupName The unique name or id of the group (required) + * @return ApiResponse<List<GroupSharing>> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 List of all specific sharing policies -
404 Group does not exist or user does not have permissions to view group-sharing policies -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse> getGroupSharingPoliciesWithHttpInfo( + String groupNamespace, String groupName) throws ApiException { + okhttp3.Call localVarCall = getGroupSharingPoliciesValidateBeforeCall(groupNamespace, groupName, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Get all sharing details of the group + * + * @param groupNamespace The namespace of the group (required) + * @param groupName The unique name or id of the group (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 List of all specific sharing policies -
404 Group does not exist or user does not have permissions to view group-sharing policies -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getGroupSharingPoliciesAsync( + String groupNamespace, String groupName, final ApiCallback> _callback) + throws ApiException { + + okhttp3.Call localVarCall = getGroupSharingPoliciesValidateBeforeCall(groupNamespace, groupName, _callback); + Type localVarReturnType = new TypeToken>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for groupsBrowserOwnedFiltersGet + * + * @param namespace namespace (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Filter data -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call groupsBrowserOwnedFiltersGetCall( + String namespace, 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 = "/groups/browser/owned/filters"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (namespace != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("namespace", namespace)); + } + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call groupsBrowserOwnedFiltersGetValidateBeforeCall(String namespace, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = groupsBrowserOwnedFiltersGetCall(namespace, _callback); + return localVarCall; + + } + + /** + * Fetch data to initialize filters for the groups browser + * + * @param namespace namespace (optional) + * @return GroupBrowserFilterData + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Filter data -
502 Bad Gateway -
0 error response -
+ */ + public GroupBrowserFilterData groupsBrowserOwnedFiltersGet(String namespace) throws ApiException { + ApiResponse localVarResp = groupsBrowserOwnedFiltersGetWithHttpInfo(namespace); + return localVarResp.getData(); + } + + /** + * Fetch data to initialize filters for the groups browser + * + * @param namespace namespace (optional) + * @return ApiResponse<GroupBrowserFilterData> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Filter data -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse groupsBrowserOwnedFiltersGetWithHttpInfo( + String namespace) throws ApiException { + okhttp3.Call localVarCall = groupsBrowserOwnedFiltersGetValidateBeforeCall(namespace, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Fetch data to initialize filters for the groups browser + * + * @param namespace namespace (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Filter data -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call groupsBrowserOwnedFiltersGetAsync( + String namespace, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = groupsBrowserOwnedFiltersGetValidateBeforeCall(namespace, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for groupsBrowserPublicFiltersGet + * + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Filter data -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call groupsBrowserPublicFiltersGetCall(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 = "/groups/browser/public/filters"; + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call groupsBrowserPublicFiltersGetValidateBeforeCall(final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = groupsBrowserPublicFiltersGetCall(_callback); + return localVarCall; + + } + + /** + * Fetch data to initialize filters for the groups browser + * + * @return GroupBrowserFilterData + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Filter data -
502 Bad Gateway -
0 error response -
+ */ + public GroupBrowserFilterData groupsBrowserPublicFiltersGet() throws ApiException { + ApiResponse localVarResp = groupsBrowserPublicFiltersGetWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * Fetch data to initialize filters for the groups browser + * + * @return ApiResponse<GroupBrowserFilterData> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Filter data -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse groupsBrowserPublicFiltersGetWithHttpInfo() + throws ApiException { + okhttp3.Call localVarCall = groupsBrowserPublicFiltersGetValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Fetch data to initialize filters for the groups browser + * + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Filter data -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call groupsBrowserPublicFiltersGetAsync( + final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = groupsBrowserPublicFiltersGetValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for groupsBrowserSharedFiltersGet + * + * @param namespace namespace (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Filter data -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call groupsBrowserSharedFiltersGetCall( + String namespace, 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 = "/groups/browser/shared/filters"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (namespace != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("namespace", namespace)); + } + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call groupsBrowserSharedFiltersGetValidateBeforeCall(String namespace, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = groupsBrowserSharedFiltersGetCall(namespace, _callback); + return localVarCall; + + } + + /** + * Fetch data to initialize filters for the groups browser + * + * @param namespace namespace (optional) + * @return GroupBrowserFilterData + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Filter data -
502 Bad Gateway -
0 error response -
+ */ + public GroupBrowserFilterData groupsBrowserSharedFiltersGet(String namespace) + throws ApiException { + ApiResponse localVarResp = groupsBrowserSharedFiltersGetWithHttpInfo(namespace); + return localVarResp.getData(); + } + + /** + * Fetch data to initialize filters for the groups browser + * + * @param namespace namespace (optional) + * @return ApiResponse<GroupBrowserFilterData> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Filter data -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse groupsBrowserSharedFiltersGetWithHttpInfo( + String namespace) throws ApiException { + okhttp3.Call localVarCall = groupsBrowserSharedFiltersGetValidateBeforeCall(namespace, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Fetch data to initialize filters for the groups browser + * + * @param namespace namespace (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Filter data -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call groupsBrowserSharedFiltersGetAsync( + String namespace, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = groupsBrowserSharedFiltersGetValidateBeforeCall(namespace, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for groupsGroupNamespaceGroupNameContentsFiltersGet + * + * @param groupNamespace The namespace of the group (required) + * @param groupName The unique name or id of the group (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Filter data -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call groupsGroupNamespaceGroupNameContentsFiltersGetCall( + String groupNamespace, String groupName, 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 = "/groups/{group_namespace}/{group_name}/contents/filters" + .replaceAll("\\{" + "group_namespace" + "\\}", localVarApiClient.escapeString(groupNamespace.toString())) + .replaceAll("\\{" + "group_name" + "\\}", localVarApiClient.escapeString(groupName.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call groupsGroupNamespaceGroupNameContentsFiltersGetValidateBeforeCall(String groupNamespace, String groupName, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'groupNamespace' is set + if (groupNamespace == null) { + throw new ApiException("Missing the required parameter 'groupNamespace' when calling groupsGroupNamespaceGroupNameContentsFiltersGet(Async)"); + } + + // verify the required parameter 'groupName' is set + if (groupName == null) { + throw new ApiException("Missing the required parameter 'groupName' when calling groupsGroupNamespaceGroupNameContentsFiltersGet(Async)"); + } + + + okhttp3.Call localVarCall = groupsGroupNamespaceGroupNameContentsFiltersGetCall(groupNamespace, groupName, _callback); + return localVarCall; + + } + + /** + * Fetch data to initialize filters for the group contents + * + * @param groupNamespace The namespace of the group (required) + * @param groupName The unique name or id of the group (required) + * @return GroupContentsFilterData + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Filter data -
502 Bad Gateway -
0 error response -
+ */ + public GroupContentsFilterData groupsGroupNamespaceGroupNameContentsFiltersGet( + String groupNamespace, String groupName) throws ApiException { + ApiResponse localVarResp = groupsGroupNamespaceGroupNameContentsFiltersGetWithHttpInfo(groupNamespace, groupName); + return localVarResp.getData(); + } + + /** + * Fetch data to initialize filters for the group contents + * + * @param groupNamespace The namespace of the group (required) + * @param groupName The unique name or id of the group (required) + * @return ApiResponse<GroupContentsFilterData> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Filter data -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse + groupsGroupNamespaceGroupNameContentsFiltersGetWithHttpInfo( + String groupNamespace, String groupName) throws ApiException { + okhttp3.Call localVarCall = groupsGroupNamespaceGroupNameContentsFiltersGetValidateBeforeCall(groupNamespace, groupName, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Fetch data to initialize filters for the group contents + * + * @param groupNamespace The namespace of the group (required) + * @param groupName The unique name or id of the group (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Filter data -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call groupsGroupNamespaceGroupNameContentsFiltersGetAsync( + String groupNamespace, String groupName, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = groupsGroupNamespaceGroupNameContentsFiltersGetValidateBeforeCall(groupNamespace, groupName, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listOwnedGroups + * + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param groupType filter by a specific group type (optional) + * @param search search string that will look at name, namespace or description fields (optional) + * @param namespace namespace (optional) + * @param orderby sort by which field valid values include last_accessed, size, name (optional) + * @param permissions permissions valid values include read, read_write, write, admin (optional) + * @param tag tag to search for, more than one can be included (optional) + * @param excludeTag tags to exclude matching array in results, more than one can be included + * (optional) + * @param flat if true, ignores the nesting of groups and searches all of them (optional) + * @param parent search only the children of the groups with this uuid (optional) + * @param withMetadata include the metadata of the groups (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 the group contents -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call listOwnedGroupsCall( + Integer page, + Integer perPage, + String groupType, + String search, + String namespace, + String orderby, + String permissions, + List tag, + List excludeTag, + Boolean flat, + String parent, + Boolean withMetadata, + 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 = "/groups/browser/owned"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + if (perPage != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("per_page", perPage)); + } + + if (groupType != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("group_type", groupType)); + } + + if (search != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("search", search)); + } + + if (namespace != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("namespace", namespace)); + } + + if (orderby != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orderby", orderby)); + } + + if (permissions != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("permissions", permissions)); + } + + if (tag != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "tag", tag)); + } + + if (excludeTag != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "exclude_tag", excludeTag)); + } + + if (flat != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("flat", flat)); + } + + if (parent != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("parent", parent)); + } + + if (withMetadata != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("with_metadata", withMetadata)); + } + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listOwnedGroupsValidateBeforeCall(Integer page, Integer perPage, String groupType, String search, String namespace, String orderby, String permissions, List tag, List excludeTag, Boolean flat, String parent, Boolean withMetadata, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = listOwnedGroupsCall(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, withMetadata, _callback); + return localVarCall; + + } + + /** + * Returns one page of owned groups. + * + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param groupType filter by a specific group type (optional) + * @param search search string that will look at name, namespace or description fields (optional) + * @param namespace namespace (optional) + * @param orderby sort by which field valid values include last_accessed, size, name (optional) + * @param permissions permissions valid values include read, read_write, write, admin (optional) + * @param tag tag to search for, more than one can be included (optional) + * @param excludeTag tags to exclude matching array in results, more than one can be included + * (optional) + * @param flat if true, ignores the nesting of groups and searches all of them (optional) + * @param parent search only the children of the groups with this uuid (optional) + * @param withMetadata include the metadata of the groups (optional) + * @return GroupBrowserData + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 the group contents -
502 Bad Gateway -
0 error response -
+ */ + public GroupBrowserData listOwnedGroups( + Integer page, + Integer perPage, + String groupType, + String search, + String namespace, + String orderby, + String permissions, + List tag, + List excludeTag, + Boolean flat, + String parent, + Boolean withMetadata) + throws ApiException { + ApiResponse localVarResp = listOwnedGroupsWithHttpInfo(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, withMetadata); + return localVarResp.getData(); + } + + /** + * Returns one page of owned groups. + * + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param groupType filter by a specific group type (optional) + * @param search search string that will look at name, namespace or description fields (optional) + * @param namespace namespace (optional) + * @param orderby sort by which field valid values include last_accessed, size, name (optional) + * @param permissions permissions valid values include read, read_write, write, admin (optional) + * @param tag tag to search for, more than one can be included (optional) + * @param excludeTag tags to exclude matching array in results, more than one can be included + * (optional) + * @param flat if true, ignores the nesting of groups and searches all of them (optional) + * @param parent search only the children of the groups with this uuid (optional) + * @param withMetadata include the metadata of the groups (optional) + * @return ApiResponse<GroupBrowserData> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 the group contents -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse listOwnedGroupsWithHttpInfo( + Integer page, + Integer perPage, + String groupType, + String search, + String namespace, + String orderby, + String permissions, + List tag, + List excludeTag, + Boolean flat, + String parent, + Boolean withMetadata) + throws ApiException { + okhttp3.Call localVarCall = listOwnedGroupsValidateBeforeCall(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, withMetadata, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Returns one page of owned groups. + * + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param groupType filter by a specific group type (optional) + * @param search search string that will look at name, namespace or description fields (optional) + * @param namespace namespace (optional) + * @param orderby sort by which field valid values include last_accessed, size, name (optional) + * @param permissions permissions valid values include read, read_write, write, admin (optional) + * @param tag tag to search for, more than one can be included (optional) + * @param excludeTag tags to exclude matching array in results, more than one can be included + * (optional) + * @param flat if true, ignores the nesting of groups and searches all of them (optional) + * @param parent search only the children of the groups with this uuid (optional) + * @param withMetadata include the metadata of the groups (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 the group contents -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call listOwnedGroupsAsync( + Integer page, + Integer perPage, + String groupType, + String search, + String namespace, + String orderby, + String permissions, + List tag, + List excludeTag, + Boolean flat, + String parent, + Boolean withMetadata, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = listOwnedGroupsValidateBeforeCall(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, withMetadata, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listPublicGroups + * + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param groupType filter by a specific group type (optional) + * @param search search string that will look at name, namespace or description fields (optional) + * @param namespace namespace (optional) + * @param orderby sort by which field valid values include last_accessed, size, name (optional) + * @param permissions permissions valid values include read, read_write, write, admin (optional) + * @param tag tag to search for, more than one can be included (optional) + * @param excludeTag tags to exclude matching array in results, more than one can be included + * (optional) + * @param flat if true, ignores the nesting of groups and searches all of them (optional) + * @param parent search only the children of the groups with this uuid (optional) + * @param withMetadata include the metadata of the groups (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 the group contents -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call listPublicGroupsCall( + Integer page, + Integer perPage, + String groupType, + String search, + String namespace, + String orderby, + String permissions, + List tag, + List excludeTag, + Boolean flat, + String parent, + Boolean withMetadata, + 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 = "/groups/browser/public"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + if (perPage != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("per_page", perPage)); + } + + if (groupType != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("group_type", groupType)); + } + + if (search != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("search", search)); + } + + if (namespace != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("namespace", namespace)); + } + + if (orderby != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orderby", orderby)); + } + + if (permissions != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("permissions", permissions)); + } + + if (tag != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "tag", tag)); + } + + if (excludeTag != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "exclude_tag", excludeTag)); + } + + if (flat != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("flat", flat)); + } + + if (parent != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("parent", parent)); + } + + if (withMetadata != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("with_metadata", withMetadata)); + } + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listPublicGroupsValidateBeforeCall(Integer page, Integer perPage, String groupType, String search, String namespace, String orderby, String permissions, List tag, List excludeTag, Boolean flat, String parent, Boolean withMetadata, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = listPublicGroupsCall(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, withMetadata, _callback); + return localVarCall; + + } + + /** + * Returns one page of public groups. + * + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param groupType filter by a specific group type (optional) + * @param search search string that will look at name, namespace or description fields (optional) + * @param namespace namespace (optional) + * @param orderby sort by which field valid values include last_accessed, size, name (optional) + * @param permissions permissions valid values include read, read_write, write, admin (optional) + * @param tag tag to search for, more than one can be included (optional) + * @param excludeTag tags to exclude matching array in results, more than one can be included + * (optional) + * @param flat if true, ignores the nesting of groups and searches all of them (optional) + * @param parent search only the children of the groups with this uuid (optional) + * @param withMetadata include the metadata of the groups (optional) + * @return GroupBrowserData + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 the group contents -
502 Bad Gateway -
0 error response -
+ */ + public GroupBrowserData listPublicGroups( + Integer page, + Integer perPage, + String groupType, + String search, + String namespace, + String orderby, + String permissions, + List tag, + List excludeTag, + Boolean flat, + String parent, + Boolean withMetadata) + throws ApiException { + ApiResponse localVarResp = listPublicGroupsWithHttpInfo(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, withMetadata); + return localVarResp.getData(); + } + + /** + * Returns one page of public groups. + * + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param groupType filter by a specific group type (optional) + * @param search search string that will look at name, namespace or description fields (optional) + * @param namespace namespace (optional) + * @param orderby sort by which field valid values include last_accessed, size, name (optional) + * @param permissions permissions valid values include read, read_write, write, admin (optional) + * @param tag tag to search for, more than one can be included (optional) + * @param excludeTag tags to exclude matching array in results, more than one can be included + * (optional) + * @param flat if true, ignores the nesting of groups and searches all of them (optional) + * @param parent search only the children of the groups with this uuid (optional) + * @param withMetadata include the metadata of the groups (optional) + * @return ApiResponse<GroupBrowserData> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 the group contents -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse listPublicGroupsWithHttpInfo( + Integer page, + Integer perPage, + String groupType, + String search, + String namespace, + String orderby, + String permissions, + List tag, + List excludeTag, + Boolean flat, + String parent, + Boolean withMetadata) + throws ApiException { + okhttp3.Call localVarCall = listPublicGroupsValidateBeforeCall(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, withMetadata, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Returns one page of public groups. + * + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param groupType filter by a specific group type (optional) + * @param search search string that will look at name, namespace or description fields (optional) + * @param namespace namespace (optional) + * @param orderby sort by which field valid values include last_accessed, size, name (optional) + * @param permissions permissions valid values include read, read_write, write, admin (optional) + * @param tag tag to search for, more than one can be included (optional) + * @param excludeTag tags to exclude matching array in results, more than one can be included + * (optional) + * @param flat if true, ignores the nesting of groups and searches all of them (optional) + * @param parent search only the children of the groups with this uuid (optional) + * @param withMetadata include the metadata of the groups (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 the group contents -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call listPublicGroupsAsync( + Integer page, + Integer perPage, + String groupType, + String search, + String namespace, + String orderby, + String permissions, + List tag, + List excludeTag, + Boolean flat, + String parent, + Boolean withMetadata, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = listPublicGroupsValidateBeforeCall(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, withMetadata, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listSharedGroups + * + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param groupType filter by a specific group type (optional) + * @param search search string that will look at name, namespace or description fields (optional) + * @param namespace namespace (optional) + * @param orderby sort by which field valid values include last_accessed, size, name (optional) + * @param permissions permissions valid values include read, read_write, write, admin (optional) + * @param tag tag to search for, more than one can be included (optional) + * @param excludeTag tags to exclude matching array in results, more than one can be included + * (optional) + * @param flat if true, ignores the nesting of groups and searches all of them (optional) + * @param parent search only the children of the groups with this uuid (optional) + * @param sharedTo namespaces to filter results of where there groups were shared to (optional) + * @param withMetadata include the metadata of the groups (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 the group contents -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call listSharedGroupsCall( + Integer page, + Integer perPage, + String groupType, + String search, + String namespace, + String orderby, + String permissions, + List tag, + List excludeTag, + Boolean flat, + String parent, + List sharedTo, + Boolean withMetadata, + 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 = "/groups/browser/shared"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + if (perPage != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("per_page", perPage)); + } + + if (groupType != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("group_type", groupType)); + } + + if (search != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("search", search)); + } + + if (namespace != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("namespace", namespace)); + } + + if (orderby != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orderby", orderby)); + } + + if (permissions != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("permissions", permissions)); + } + + if (tag != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "tag", tag)); + } + + if (excludeTag != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "exclude_tag", excludeTag)); + } + + if (flat != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("flat", flat)); + } + + if (parent != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("parent", parent)); + } + + if (sharedTo != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "shared_to", sharedTo)); + } + + if (withMetadata != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("with_metadata", withMetadata)); + } + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listSharedGroupsValidateBeforeCall(Integer page, Integer perPage, String groupType, String search, String namespace, String orderby, String permissions, List tag, List excludeTag, Boolean flat, String parent, List sharedTo, Boolean withMetadata, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = listSharedGroupsCall(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, sharedTo, withMetadata, _callback); + return localVarCall; + + } + + /** + * Returns one page of shared groups. + * + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param groupType filter by a specific group type (optional) + * @param search search string that will look at name, namespace or description fields (optional) + * @param namespace namespace (optional) + * @param orderby sort by which field valid values include last_accessed, size, name (optional) + * @param permissions permissions valid values include read, read_write, write, admin (optional) + * @param tag tag to search for, more than one can be included (optional) + * @param excludeTag tags to exclude matching array in results, more than one can be included + * (optional) + * @param flat if true, ignores the nesting of groups and searches all of them (optional) + * @param parent search only the children of the groups with this uuid (optional) + * @param sharedTo namespaces to filter results of where there groups were shared to (optional) + * @param withMetadata include the metadata of the groups (optional) + * @return GroupBrowserData + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 the group contents -
502 Bad Gateway -
0 error response -
+ */ + public GroupBrowserData listSharedGroups( + Integer page, + Integer perPage, + String groupType, + String search, + String namespace, + String orderby, + String permissions, + List tag, + List excludeTag, + Boolean flat, + String parent, + List sharedTo, + Boolean withMetadata) + throws ApiException { + ApiResponse localVarResp = listSharedGroupsWithHttpInfo(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, sharedTo, withMetadata); + return localVarResp.getData(); + } + + /** + * Returns one page of shared groups. + * + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param groupType filter by a specific group type (optional) + * @param search search string that will look at name, namespace or description fields (optional) + * @param namespace namespace (optional) + * @param orderby sort by which field valid values include last_accessed, size, name (optional) + * @param permissions permissions valid values include read, read_write, write, admin (optional) + * @param tag tag to search for, more than one can be included (optional) + * @param excludeTag tags to exclude matching array in results, more than one can be included + * (optional) + * @param flat if true, ignores the nesting of groups and searches all of them (optional) + * @param parent search only the children of the groups with this uuid (optional) + * @param sharedTo namespaces to filter results of where there groups were shared to (optional) + * @param withMetadata include the metadata of the groups (optional) + * @return ApiResponse<GroupBrowserData> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 the group contents -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse listSharedGroupsWithHttpInfo( + Integer page, + Integer perPage, + String groupType, + String search, + String namespace, + String orderby, + String permissions, + List tag, + List excludeTag, + Boolean flat, + String parent, + List sharedTo, + Boolean withMetadata) + throws ApiException { + okhttp3.Call localVarCall = listSharedGroupsValidateBeforeCall(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, sharedTo, withMetadata, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Returns one page of shared groups. + * + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param groupType filter by a specific group type (optional) + * @param search search string that will look at name, namespace or description fields (optional) + * @param namespace namespace (optional) + * @param orderby sort by which field valid values include last_accessed, size, name (optional) + * @param permissions permissions valid values include read, read_write, write, admin (optional) + * @param tag tag to search for, more than one can be included (optional) + * @param excludeTag tags to exclude matching array in results, more than one can be included + * (optional) + * @param flat if true, ignores the nesting of groups and searches all of them (optional) + * @param parent search only the children of the groups with this uuid (optional) + * @param sharedTo namespaces to filter results of where there groups were shared to (optional) + * @param withMetadata include the metadata of the groups (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 the group contents -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call listSharedGroupsAsync( + Integer page, + Integer perPage, + String groupType, + String search, + String namespace, + String orderby, + String permissions, + List tag, + List excludeTag, + Boolean flat, + String parent, + List sharedTo, + Boolean withMetadata, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = listSharedGroupsValidateBeforeCall(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, sharedTo, withMetadata, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for registerGroup + * + * @param namespace The namespace of the group (required) + * @param array The unique name or id of the group (required) + * @param groupRegister (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 group created successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call registerGroupCall( + String namespace, String array, GroupRegister groupRegister, 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 = groupRegister; + + // create path and map variables + String localVarPath = "/groups/{namespace}/{array}/register" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.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); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call registerGroupValidateBeforeCall(String namespace, String array, GroupRegister groupRegister, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling registerGroup(Async)"); + } + + // verify the required parameter 'array' is set + if (array == null) { + throw new ApiException("Missing the required parameter 'array' when calling registerGroup(Async)"); + } + + + okhttp3.Call localVarCall = registerGroupCall(namespace, array, groupRegister, _callback); + return localVarCall; + + } + + /** + * Registers an existing group in the namespace. + * + * @param namespace The namespace of the group (required) + * @param array The unique name or id of the group (required) + * @param groupRegister (optional) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 group created successfully -
502 Bad Gateway -
0 error response -
+ */ + public void registerGroup(String namespace, String array, GroupRegister groupRegister) + throws ApiException { + registerGroupWithHttpInfo(namespace, array, groupRegister); + } + + /** + * Registers an existing group in the namespace. + * + * @param namespace The namespace of the group (required) + * @param array The unique name or id of the group (required) + * @param groupRegister (optional) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 group created successfully -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse registerGroupWithHttpInfo( + String namespace, String array, GroupRegister groupRegister) throws ApiException { + okhttp3.Call localVarCall = registerGroupValidateBeforeCall(namespace, array, groupRegister, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) Registers an existing group in the namespace. + * + * @param namespace The namespace of the group (required) + * @param array The unique name or id of the group (required) + * @param groupRegister (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 group created successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call registerGroupAsync( + String namespace, + String array, + GroupRegister groupRegister, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = registerGroupValidateBeforeCall(namespace, array, groupRegister, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for shareGroup + * + * @param groupNamespace The namespace of the group (required) + * @param groupName The unique name or id of the group (required) + * @param groupSharingRequest Namespace and list of permissions to share with. Sharing is + * recursive, it is applied to all reachable subgroups and arrays of the group. An empty list + * of permissions will remove the namespace; if permissions already exist they will be deleted + * then new ones added. In the event of a failure, the new policies will be rolled back to + * prevent partial policies, and it's likely the group will not be shared with the + * namespace at all. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
204 Group shared successfully -
404 Group does not exist or user does not have permissions to share group -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call shareGroupCall( + String groupNamespace, + String groupName, + GroupSharingRequest groupSharingRequest, + 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 = groupSharingRequest; + + // create path and map variables + String localVarPath = "/groups/{group_namespace}/{group_name}/share" + .replaceAll("\\{" + "group_namespace" + "\\}", localVarApiClient.escapeString(groupNamespace.toString())) + .replaceAll("\\{" + "group_name" + "\\}", localVarApiClient.escapeString(groupName.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); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call shareGroupValidateBeforeCall(String groupNamespace, String groupName, GroupSharingRequest groupSharingRequest, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'groupNamespace' is set + if (groupNamespace == null) { + throw new ApiException("Missing the required parameter 'groupNamespace' when calling shareGroup(Async)"); + } + + // verify the required parameter 'groupName' is set + if (groupName == null) { + throw new ApiException("Missing the required parameter 'groupName' when calling shareGroup(Async)"); + } + + // verify the required parameter 'groupSharingRequest' is set + if (groupSharingRequest == null) { + throw new ApiException("Missing the required parameter 'groupSharingRequest' when calling shareGroup(Async)"); + } + + + okhttp3.Call localVarCall = shareGroupCall(groupNamespace, groupName, groupSharingRequest, _callback); + return localVarCall; + + } + + /** + * Share a group with a namespace + * + * @param groupNamespace The namespace of the group (required) + * @param groupName The unique name or id of the group (required) + * @param groupSharingRequest Namespace and list of permissions to share with. Sharing is + * recursive, it is applied to all reachable subgroups and arrays of the group. An empty list + * of permissions will remove the namespace; if permissions already exist they will be deleted + * then new ones added. In the event of a failure, the new policies will be rolled back to + * prevent partial policies, and it's likely the group will not be shared with the + * namespace at all. (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
204 Group shared successfully -
404 Group does not exist or user does not have permissions to share group -
502 Bad Gateway -
0 error response -
+ */ + public void shareGroup( + String groupNamespace, String groupName, GroupSharingRequest groupSharingRequest) + throws ApiException { + shareGroupWithHttpInfo(groupNamespace, groupName, groupSharingRequest); + } + + /** + * Share a group with a namespace + * + * @param groupNamespace The namespace of the group (required) + * @param groupName The unique name or id of the group (required) + * @param groupSharingRequest Namespace and list of permissions to share with. Sharing is + * recursive, it is applied to all reachable subgroups and arrays of the group. An empty list + * of permissions will remove the namespace; if permissions already exist they will be deleted + * then new ones added. In the event of a failure, the new policies will be rolled back to + * prevent partial policies, and it's likely the group will not be shared with the + * namespace at all. (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
204 Group shared successfully -
404 Group does not exist or user does not have permissions to share group -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse shareGroupWithHttpInfo( + String groupNamespace, String groupName, GroupSharingRequest groupSharingRequest) + throws ApiException { + okhttp3.Call localVarCall = shareGroupValidateBeforeCall(groupNamespace, groupName, groupSharingRequest, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) Share a group with a namespace + * + * @param groupNamespace The namespace of the group (required) + * @param groupName The unique name or id of the group (required) + * @param groupSharingRequest Namespace and list of permissions to share with. Sharing is + * recursive, it is applied to all reachable subgroups and arrays of the group. An empty list + * of permissions will remove the namespace; if permissions already exist they will be deleted + * then new ones added. In the event of a failure, the new policies will be rolled back to + * prevent partial policies, and it's likely the group will not be shared with the + * namespace at all. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
204 Group shared successfully -
404 Group does not exist or user does not have permissions to share group -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call shareGroupAsync( + String groupNamespace, + String groupName, + GroupSharingRequest groupSharingRequest, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = shareGroupValidateBeforeCall(groupNamespace, groupName, groupSharingRequest, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for updateGroup + * + * @param groupNamespace The namespace of the group (required) + * @param groupName The unique name or id of the group (required) + * @param groupUpdate (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 attributes changed successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call updateGroupCall( + String groupNamespace, String groupName, GroupUpdate groupUpdate, 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 = groupUpdate; + + // create path and map variables + String localVarPath = "/groups/{group_namespace}/{group_name}" + .replaceAll("\\{" + "group_namespace" + "\\}", localVarApiClient.escapeString(groupNamespace.toString())) + .replaceAll("\\{" + "group_name" + "\\}", localVarApiClient.escapeString(groupName.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); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateGroupValidateBeforeCall(String groupNamespace, String groupName, GroupUpdate groupUpdate, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'groupNamespace' is set + if (groupNamespace == null) { + throw new ApiException("Missing the required parameter 'groupNamespace' when calling updateGroup(Async)"); + } + + // verify the required parameter 'groupName' is set + if (groupName == null) { + throw new ApiException("Missing the required parameter 'groupName' when calling updateGroup(Async)"); + } + + + okhttp3.Call localVarCall = updateGroupCall(groupNamespace, groupName, groupUpdate, _callback); + return localVarCall; + + } + + /** + * Changes attributes of the group + * + * @param groupNamespace The namespace of the group (required) + * @param groupName The unique name or id of the group (required) + * @param groupUpdate (optional) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 attributes changed successfully -
502 Bad Gateway -
0 error response -
+ */ + public void updateGroup(String groupNamespace, String groupName, GroupUpdate groupUpdate) + throws ApiException { + updateGroupWithHttpInfo(groupNamespace, groupName, groupUpdate); + } + + /** + * Changes attributes of the group + * + * @param groupNamespace The namespace of the group (required) + * @param groupName The unique name or id of the group (required) + * @param groupUpdate (optional) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 attributes changed successfully -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse updateGroupWithHttpInfo( + String groupNamespace, String groupName, GroupUpdate groupUpdate) throws ApiException { + okhttp3.Call localVarCall = updateGroupValidateBeforeCall(groupNamespace, groupName, groupUpdate, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) Changes attributes of the group + * + * @param groupNamespace The namespace of the group (required) + * @param groupName The unique name or id of the group (required) + * @param groupUpdate (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 attributes changed successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call updateGroupAsync( + String groupNamespace, + String groupName, + GroupUpdate groupUpdate, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = updateGroupValidateBeforeCall(groupNamespace, groupName, groupUpdate, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } +} diff --git a/src/main/java/io/tiledb/cloud/rest_api/GzipRequestInterceptor.java b/src/main/java/io/tiledb/cloud/rest_api/GzipRequestInterceptor.java index e915866..dec67ce 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/GzipRequestInterceptor.java +++ b/src/main/java/io/tiledb/cloud/rest_api/GzipRequestInterceptor.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/io/tiledb/cloud/rest_api/InvitationApi.java b/src/main/java/io/tiledb/cloud/rest_api/InvitationApi.java new file mode 100644 index 0000000..725d4ff --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/InvitationApi.java @@ -0,0 +1,1773 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.17.51 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api; + + +import com.google.gson.reflect.TypeToken; + + + +import io.tiledb.cloud.rest_api.model.InvitationArrayShareEmail; +import io.tiledb.cloud.rest_api.model.InvitationData; +import io.tiledb.cloud.rest_api.model.InvitationGroupShareEmail; +import io.tiledb.cloud.rest_api.model.InvitationOrganizationJoinEmail; +import io.tiledb.cloud.rest_api.model.SharePaymentRequest; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class InvitationApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public InvitationApi() { + this(Configuration.getDefaultApiClient()); + } + + public InvitationApi(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 acceptInvitation + * + * @param invitation the ID of invitation about to be accepted (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
204 Invitation was accepted successfully -
404 Could not find invitation identifier -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call acceptInvitationCall(String invitation, 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 = "/invitations/{invitation}" + .replaceAll("\\{" + "invitation" + "\\}", localVarApiClient.escapeString(invitation.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call acceptInvitationValidateBeforeCall(String invitation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'invitation' is set + if (invitation == null) { + throw new ApiException("Missing the required parameter 'invitation' when calling acceptInvitation(Async)"); + } + + + okhttp3.Call localVarCall = acceptInvitationCall(invitation, _callback); + return localVarCall; + + } + + /** + * Accepts invitation + * + * @param invitation the ID of invitation about to be accepted (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
204 Invitation was accepted successfully -
404 Could not find invitation identifier -
502 Bad Gateway -
0 error response -
+ */ + public void acceptInvitation(String invitation) throws ApiException { + acceptInvitationWithHttpInfo(invitation); + } + + /** + * Accepts invitation + * + * @param invitation the ID of invitation about to be accepted (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
204 Invitation was accepted successfully -
404 Could not find invitation identifier -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse acceptInvitationWithHttpInfo(String invitation) throws ApiException { + okhttp3.Call localVarCall = acceptInvitationValidateBeforeCall(invitation, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) Accepts invitation + * + * @param invitation the ID of invitation about to be accepted (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
204 Invitation was accepted successfully -
404 Could not find invitation identifier -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call acceptInvitationAsync(String invitation, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = acceptInvitationValidateBeforeCall(invitation, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for cancelJoinOrganization + * + * @param invitation the ID of invitation about to be cancelled (required) + * @param organization name or UUID of organization (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
204 Invitation cancelled successfully -
404 No invitation was found to cancel -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call cancelJoinOrganizationCall( + String invitation, String organization, 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 = "/invitations/{invitation}/{organization}/join" + .replaceAll("\\{" + "invitation" + "\\}", localVarApiClient.escapeString(invitation.toString())) + .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call cancelJoinOrganizationValidateBeforeCall(String invitation, String organization, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'invitation' is set + if (invitation == null) { + throw new ApiException("Missing the required parameter 'invitation' when calling cancelJoinOrganization(Async)"); + } + + // verify the required parameter 'organization' is set + if (organization == null) { + throw new ApiException("Missing the required parameter 'organization' when calling cancelJoinOrganization(Async)"); + } + + + okhttp3.Call localVarCall = cancelJoinOrganizationCall(invitation, organization, _callback); + return localVarCall; + + } + + /** + * Cancels join organization invitation + * + * @param invitation the ID of invitation about to be cancelled (required) + * @param organization name or UUID of organization (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
204 Invitation cancelled successfully -
404 No invitation was found to cancel -
502 Bad Gateway -
0 error response -
+ */ + public void cancelJoinOrganization(String invitation, String organization) throws ApiException { + cancelJoinOrganizationWithHttpInfo(invitation, organization); + } + + /** + * Cancels join organization invitation + * + * @param invitation the ID of invitation about to be cancelled (required) + * @param organization name or UUID of organization (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
204 Invitation cancelled successfully -
404 No invitation was found to cancel -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse cancelJoinOrganizationWithHttpInfo( + String invitation, String organization) throws ApiException { + okhttp3.Call localVarCall = cancelJoinOrganizationValidateBeforeCall(invitation, organization, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) Cancels join organization invitation + * + * @param invitation the ID of invitation about to be cancelled (required) + * @param organization name or UUID of organization (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
204 Invitation cancelled successfully -
404 No invitation was found to cancel -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call cancelJoinOrganizationAsync( + String invitation, String organization, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = cancelJoinOrganizationValidateBeforeCall(invitation, organization, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for cancelShareArrayByInvite + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param invitation the ID of invitation about to be cancelled (required) + * @param array name/uri of array that is url-encoded (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
204 Invitation cancelled successfully -
404 No invitation was found to cancel -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call cancelShareArrayByInviteCall( + String namespace, String invitation, String array, 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 = "/invitations/{invitation}/{namespace}/{array}/share" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "invitation" + "\\}", localVarApiClient.escapeString(invitation.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call cancelShareArrayByInviteValidateBeforeCall(String namespace, String invitation, String array, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling cancelShareArrayByInvite(Async)"); + } + + // verify the required parameter 'invitation' is set + if (invitation == null) { + throw new ApiException("Missing the required parameter 'invitation' when calling cancelShareArrayByInvite(Async)"); + } + + // verify the required parameter 'array' is set + if (array == null) { + throw new ApiException("Missing the required parameter 'array' when calling cancelShareArrayByInvite(Async)"); + } + + + okhttp3.Call localVarCall = cancelShareArrayByInviteCall(namespace, invitation, array, _callback); + return localVarCall; + + } + + /** + * Cancels array sharing invitation + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param invitation the ID of invitation about to be cancelled (required) + * @param array name/uri of array that is url-encoded (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
204 Invitation cancelled successfully -
404 No invitation was found to cancel -
502 Bad Gateway -
0 error response -
+ */ + public void cancelShareArrayByInvite(String namespace, String invitation, String array) + throws ApiException { + cancelShareArrayByInviteWithHttpInfo(namespace, invitation, array); + } + + /** + * Cancels array sharing invitation + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param invitation the ID of invitation about to be cancelled (required) + * @param array name/uri of array that is url-encoded (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
204 Invitation cancelled successfully -
404 No invitation was found to cancel -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse cancelShareArrayByInviteWithHttpInfo( + String namespace, String invitation, String array) throws ApiException { + okhttp3.Call localVarCall = cancelShareArrayByInviteValidateBeforeCall(namespace, invitation, array, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) Cancels array sharing invitation + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param invitation the ID of invitation about to be cancelled (required) + * @param array name/uri of array that is url-encoded (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
204 Invitation cancelled successfully -
404 No invitation was found to cancel -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call cancelShareArrayByInviteAsync( + String namespace, String invitation, String array, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = cancelShareArrayByInviteValidateBeforeCall(namespace, invitation, array, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for cancelShareGroupByInvite + * + * @param namespace namespace group is in (an organization name or user's username) (required) + * @param invitation the ID of invitation about to be cancelled (required) + * @param groupName name/uuid of group that is url-encoded (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
204 Invitation cancelled successfully -
404 No invitation was found to cancel -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call cancelShareGroupByInviteCall( + String namespace, String invitation, String groupName, 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 = "/invitations/group/{invitation}/{namespace}/{group_name}/share" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "invitation" + "\\}", localVarApiClient.escapeString(invitation.toString())) + .replaceAll("\\{" + "group_name" + "\\}", localVarApiClient.escapeString(groupName.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call cancelShareGroupByInviteValidateBeforeCall(String namespace, String invitation, String groupName, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling cancelShareGroupByInvite(Async)"); + } + + // verify the required parameter 'invitation' is set + if (invitation == null) { + throw new ApiException("Missing the required parameter 'invitation' when calling cancelShareGroupByInvite(Async)"); + } + + // verify the required parameter 'groupName' is set + if (groupName == null) { + throw new ApiException("Missing the required parameter 'groupName' when calling cancelShareGroupByInvite(Async)"); + } + + + okhttp3.Call localVarCall = cancelShareGroupByInviteCall(namespace, invitation, groupName, _callback); + return localVarCall; + + } + + /** + * Cancels group sharing invitation + * + * @param namespace namespace group is in (an organization name or user's username) (required) + * @param invitation the ID of invitation about to be cancelled (required) + * @param groupName name/uuid of group that is url-encoded (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
204 Invitation cancelled successfully -
404 No invitation was found to cancel -
502 Bad Gateway -
0 error response -
+ */ + public void cancelShareGroupByInvite(String namespace, String invitation, String groupName) + throws ApiException { + cancelShareGroupByInviteWithHttpInfo(namespace, invitation, groupName); + } + + /** + * Cancels group sharing invitation + * + * @param namespace namespace group is in (an organization name or user's username) (required) + * @param invitation the ID of invitation about to be cancelled (required) + * @param groupName name/uuid of group that is url-encoded (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
204 Invitation cancelled successfully -
404 No invitation was found to cancel -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse cancelShareGroupByInviteWithHttpInfo( + String namespace, String invitation, String groupName) throws ApiException { + okhttp3.Call localVarCall = cancelShareGroupByInviteValidateBeforeCall(namespace, invitation, groupName, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) Cancels group sharing invitation + * + * @param namespace namespace group is in (an organization name or user's username) (required) + * @param invitation the ID of invitation about to be cancelled (required) + * @param groupName name/uuid of group that is url-encoded (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
204 Invitation cancelled successfully -
404 No invitation was found to cancel -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call cancelShareGroupByInviteAsync( + String namespace, String invitation, String groupName, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = cancelShareGroupByInviteValidateBeforeCall(namespace, invitation, groupName, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for cancelSharePayment + * + * @param namespace name or UUID of namespace sharing their payment info (required) + * @param target name or UUID of recipient namespace (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 Invitation cancelled successfully -
404 No invitation was found to cancel -
0 error response -
+ */ + public okhttp3.Call cancelSharePaymentCall( + String namespace, String target, 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 = "/invitations/share_payment/{namespace}/{target}" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "target" + "\\}", localVarApiClient.escapeString(target.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call cancelSharePaymentValidateBeforeCall(String namespace, String target, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling cancelSharePayment(Async)"); + } + + // verify the required parameter 'target' is set + if (target == null) { + throw new ApiException("Missing the required parameter 'target' when calling cancelSharePayment(Async)"); + } + + + okhttp3.Call localVarCall = cancelSharePaymentCall(namespace, target, _callback); + return localVarCall; + + } + + /** + * Revokes invitation from the source namespace to the target. + * + * @param namespace name or UUID of namespace sharing their payment info (required) + * @param target name or UUID of recipient namespace (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 Invitation cancelled successfully -
404 No invitation was found to cancel -
0 error response -
+ */ + public void cancelSharePayment(String namespace, String target) throws ApiException { + cancelSharePaymentWithHttpInfo(namespace, target); + } + + /** + * Revokes invitation from the source namespace to the target. + * + * @param namespace name or UUID of namespace sharing their payment info (required) + * @param target name or UUID of recipient namespace (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 Invitation cancelled successfully -
404 No invitation was found to cancel -
0 error response -
+ */ + public ApiResponse cancelSharePaymentWithHttpInfo(String namespace, String target) + throws ApiException { + okhttp3.Call localVarCall = cancelSharePaymentValidateBeforeCall(namespace, target, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) Revokes invitation from the source namespace to the target. + * + * @param namespace name or UUID of namespace sharing their payment info (required) + * @param target name or UUID of recipient namespace (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 Invitation cancelled successfully -
404 No invitation was found to cancel -
0 error response -
+ */ + public okhttp3.Call cancelSharePaymentAsync( + String namespace, String target, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = cancelSharePaymentValidateBeforeCall(namespace, target, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for fetchInvitations + * + * @param organization name or ID of organization to filter (optional) + * @param array name/uri of array that is url-encoded to filter (optional) + * @param group name or ID of group to filter (optional) + * @param start start time for tasks to filter by (optional) + * @param end end time for tasks to filter by (optional) + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param type invitation type, \"ARRAY_SHARE\", \"JOIN_ORGANIZATION\" + * (optional) + * @param status Filter to only return \"PENDING\", \"ACCEPTED\" (optional) + * @param orderby sort by which field valid values include timestamp, array_name, + * organization_name (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 List of invitations and pagination metadata -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call fetchInvitationsCall( + String organization, + String array, + String group, + Integer start, + Integer end, + Integer page, + Integer perPage, + String type, + String status, + String orderby, + 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 = "/invitations"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (organization != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("organization", organization)); + } + + if (array != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("array", array)); + } + + if (group != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("group", group)); + } + + if (start != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("start", start)); + } + + if (end != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("end", end)); + } + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + if (perPage != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("per_page", perPage)); + } + + if (type != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("type", type)); + } + + if (status != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("status", status)); + } + + if (orderby != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orderby", orderby)); + } + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call fetchInvitationsValidateBeforeCall(String organization, String array, String group, Integer start, Integer end, Integer page, Integer perPage, String type, String status, String orderby, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = fetchInvitationsCall(organization, array, group, start, end, page, perPage, type, status, orderby, _callback); + return localVarCall; + + } + + /** + * Fetch a list of invitations + * + * @param organization name or ID of organization to filter (optional) + * @param array name/uri of array that is url-encoded to filter (optional) + * @param group name or ID of group to filter (optional) + * @param start start time for tasks to filter by (optional) + * @param end end time for tasks to filter by (optional) + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param type invitation type, \"ARRAY_SHARE\", \"JOIN_ORGANIZATION\" + * (optional) + * @param status Filter to only return \"PENDING\", \"ACCEPTED\" (optional) + * @param orderby sort by which field valid values include timestamp, array_name, + * organization_name (optional) + * @return InvitationData + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 List of invitations and pagination metadata -
502 Bad Gateway -
0 error response -
+ */ + public InvitationData fetchInvitations( + String organization, + String array, + String group, + Integer start, + Integer end, + Integer page, + Integer perPage, + String type, + String status, + String orderby) + throws ApiException { + ApiResponse localVarResp = fetchInvitationsWithHttpInfo(organization, array, group, start, end, page, perPage, type, status, orderby); + return localVarResp.getData(); + } + + /** + * Fetch a list of invitations + * + * @param organization name or ID of organization to filter (optional) + * @param array name/uri of array that is url-encoded to filter (optional) + * @param group name or ID of group to filter (optional) + * @param start start time for tasks to filter by (optional) + * @param end end time for tasks to filter by (optional) + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param type invitation type, \"ARRAY_SHARE\", \"JOIN_ORGANIZATION\" + * (optional) + * @param status Filter to only return \"PENDING\", \"ACCEPTED\" (optional) + * @param orderby sort by which field valid values include timestamp, array_name, + * organization_name (optional) + * @return ApiResponse<InvitationData> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 List of invitations and pagination metadata -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse fetchInvitationsWithHttpInfo( + String organization, + String array, + String group, + Integer start, + Integer end, + Integer page, + Integer perPage, + String type, + String status, + String orderby) + throws ApiException { + okhttp3.Call localVarCall = fetchInvitationsValidateBeforeCall(organization, array, group, start, end, page, perPage, type, status, orderby, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Fetch a list of invitations + * + * @param organization name or ID of organization to filter (optional) + * @param array name/uri of array that is url-encoded to filter (optional) + * @param group name or ID of group to filter (optional) + * @param start start time for tasks to filter by (optional) + * @param end end time for tasks to filter by (optional) + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param type invitation type, \"ARRAY_SHARE\", \"JOIN_ORGANIZATION\" + * (optional) + * @param status Filter to only return \"PENDING\", \"ACCEPTED\" (optional) + * @param orderby sort by which field valid values include timestamp, array_name, + * organization_name (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 List of invitations and pagination metadata -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call fetchInvitationsAsync( + String organization, + String array, + String group, + Integer start, + Integer end, + Integer page, + Integer perPage, + String type, + String status, + String orderby, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = fetchInvitationsValidateBeforeCall(organization, array, group, start, end, page, perPage, type, status, orderby, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for joinOrganization + * + * @param organization name or UUID of organization (required) + * @param emailInvite list of email recipients (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
204 Email sent successfully to user for email confirmation link -
207 Only a portion of the invitations succeeded, some failed -
500 Could not reach any recipients -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call joinOrganizationCall( + String organization, InvitationOrganizationJoinEmail emailInvite, 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 = emailInvite; + + // create path and map variables + String localVarPath = "/invitations/{organization}/join" + .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.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); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call joinOrganizationValidateBeforeCall(String organization, InvitationOrganizationJoinEmail emailInvite, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'organization' is set + if (organization == null) { + throw new ApiException("Missing the required parameter 'organization' when calling joinOrganization(Async)"); + } + + // verify the required parameter 'emailInvite' is set + if (emailInvite == null) { + throw new ApiException("Missing the required parameter 'emailInvite' when calling joinOrganization(Async)"); + } + + + okhttp3.Call localVarCall = joinOrganizationCall(organization, emailInvite, _callback); + return localVarCall; + + } + + /** + * Sends email to multiple recipients with joining information regarding an organization + * + * @param organization name or UUID of organization (required) + * @param emailInvite list of email recipients (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
204 Email sent successfully to user for email confirmation link -
207 Only a portion of the invitations succeeded, some failed -
500 Could not reach any recipients -
502 Bad Gateway -
0 error response -
+ */ + public void joinOrganization(String organization, InvitationOrganizationJoinEmail emailInvite) + throws ApiException { + joinOrganizationWithHttpInfo(organization, emailInvite); + } + + /** + * Sends email to multiple recipients with joining information regarding an organization + * + * @param organization name or UUID of organization (required) + * @param emailInvite list of email recipients (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
204 Email sent successfully to user for email confirmation link -
207 Only a portion of the invitations succeeded, some failed -
500 Could not reach any recipients -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse joinOrganizationWithHttpInfo( + String organization, InvitationOrganizationJoinEmail emailInvite) throws ApiException { + okhttp3.Call localVarCall = joinOrganizationValidateBeforeCall(organization, emailInvite, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) Sends email to multiple recipients with joining information regarding an + * organization + * + * @param organization name or UUID of organization (required) + * @param emailInvite list of email recipients (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
204 Email sent successfully to user for email confirmation link -
207 Only a portion of the invitations succeeded, some failed -
500 Could not reach any recipients -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call joinOrganizationAsync( + String organization, + InvitationOrganizationJoinEmail emailInvite, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = joinOrganizationValidateBeforeCall(organization, emailInvite, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for shareArrayByInvite + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param emailInvite list of email recipients (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
204 Email sent successfully to user for email confirmation link -
207 Only a portion of the invitations succeeded, some failed -
500 Could not reach any recipients -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call shareArrayByInviteCall( + String namespace, + String array, + InvitationArrayShareEmail emailInvite, + 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 = emailInvite; + + // create path and map variables + String localVarPath = "/invitations/{namespace}/{array}/share" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.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); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call shareArrayByInviteValidateBeforeCall(String namespace, String array, InvitationArrayShareEmail emailInvite, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling shareArrayByInvite(Async)"); + } + + // verify the required parameter 'array' is set + if (array == null) { + throw new ApiException("Missing the required parameter 'array' when calling shareArrayByInvite(Async)"); + } + + // verify the required parameter 'emailInvite' is set + if (emailInvite == null) { + throw new ApiException("Missing the required parameter 'emailInvite' when calling shareArrayByInvite(Async)"); + } + + + okhttp3.Call localVarCall = shareArrayByInviteCall(namespace, array, emailInvite, _callback); + return localVarCall; + + } + + /** + * Sends email to multiple recipients with sharing information regarding an array + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param emailInvite list of email recipients (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
204 Email sent successfully to user for email confirmation link -
207 Only a portion of the invitations succeeded, some failed -
500 Could not reach any recipients -
502 Bad Gateway -
0 error response -
+ */ + public void shareArrayByInvite( + String namespace, String array, InvitationArrayShareEmail emailInvite) throws ApiException { + shareArrayByInviteWithHttpInfo(namespace, array, emailInvite); + } + + /** + * Sends email to multiple recipients with sharing information regarding an array + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param emailInvite list of email recipients (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
204 Email sent successfully to user for email confirmation link -
207 Only a portion of the invitations succeeded, some failed -
500 Could not reach any recipients -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse shareArrayByInviteWithHttpInfo( + String namespace, String array, InvitationArrayShareEmail emailInvite) throws ApiException { + okhttp3.Call localVarCall = shareArrayByInviteValidateBeforeCall(namespace, array, emailInvite, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) Sends email to multiple recipients with sharing information regarding an array + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param emailInvite list of email recipients (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
204 Email sent successfully to user for email confirmation link -
207 Only a portion of the invitations succeeded, some failed -
500 Could not reach any recipients -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call shareArrayByInviteAsync( + String namespace, + String array, + InvitationArrayShareEmail emailInvite, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = shareArrayByInviteValidateBeforeCall(namespace, array, emailInvite, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for shareGroupByInvite + * + * @param namespace namespace group is in (an organization name or user's username) (required) + * @param group name/uri of group that is url-encoded (required) + * @param emailInvite list of email/namespace recipients (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
204 Email sent successfully to user with an email confirmation link -
207 Only a portion of the invitations succeeded, some failed -
500 Could not reach any recipients -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call shareGroupByInviteCall( + String namespace, + String group, + InvitationGroupShareEmail emailInvite, + 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 = emailInvite; + + // create path and map variables + String localVarPath = "/invitations/group/{namespace}/{group}/share" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "group" + "\\}", localVarApiClient.escapeString(group.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); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call shareGroupByInviteValidateBeforeCall(String namespace, String group, InvitationGroupShareEmail emailInvite, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling shareGroupByInvite(Async)"); + } + + // verify the required parameter 'group' is set + if (group == null) { + throw new ApiException("Missing the required parameter 'group' when calling shareGroupByInvite(Async)"); + } + + // verify the required parameter 'emailInvite' is set + if (emailInvite == null) { + throw new ApiException("Missing the required parameter 'emailInvite' when calling shareGroupByInvite(Async)"); + } + + + okhttp3.Call localVarCall = shareGroupByInviteCall(namespace, group, emailInvite, _callback); + return localVarCall; + + } + + /** + * Sends email to multiple recipients with sharing information regarding a group + * + * @param namespace namespace group is in (an organization name or user's username) (required) + * @param group name/uri of group that is url-encoded (required) + * @param emailInvite list of email/namespace recipients (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
204 Email sent successfully to user with an email confirmation link -
207 Only a portion of the invitations succeeded, some failed -
500 Could not reach any recipients -
502 Bad Gateway -
0 error response -
+ */ + public void shareGroupByInvite( + String namespace, String group, InvitationGroupShareEmail emailInvite) throws ApiException { + shareGroupByInviteWithHttpInfo(namespace, group, emailInvite); + } + + /** + * Sends email to multiple recipients with sharing information regarding a group + * + * @param namespace namespace group is in (an organization name or user's username) (required) + * @param group name/uri of group that is url-encoded (required) + * @param emailInvite list of email/namespace recipients (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
204 Email sent successfully to user with an email confirmation link -
207 Only a portion of the invitations succeeded, some failed -
500 Could not reach any recipients -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse shareGroupByInviteWithHttpInfo( + String namespace, String group, InvitationGroupShareEmail emailInvite) throws ApiException { + okhttp3.Call localVarCall = shareGroupByInviteValidateBeforeCall(namespace, group, emailInvite, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) Sends email to multiple recipients with sharing information regarding a group + * + * @param namespace namespace group is in (an organization name or user's username) (required) + * @param group name/uri of group that is url-encoded (required) + * @param emailInvite list of email/namespace recipients (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
204 Email sent successfully to user with an email confirmation link -
207 Only a portion of the invitations succeeded, some failed -
500 Could not reach any recipients -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call shareGroupByInviteAsync( + String namespace, + String group, + InvitationGroupShareEmail emailInvite, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = shareGroupByInviteValidateBeforeCall(namespace, group, emailInvite, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for sharePayment + * + * @param namespace name or UUID of namespace sharing their payment info (required) + * @param emailInvite Recipients of the invitation. These may only be namespaces, not email + * addresses. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
204 Email sent successfully to user for email confirmation link -
207 Only a portion of the invitations succeeded, some failed -
500 Could not reach any recipients -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call sharePaymentCall( + String namespace, SharePaymentRequest emailInvite, 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 = emailInvite; + + // create path and map variables + String localVarPath = "/invitations/share_payment/{namespace}" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.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); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call sharePaymentValidateBeforeCall(String namespace, SharePaymentRequest emailInvite, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling sharePayment(Async)"); + } + + + okhttp3.Call localVarCall = sharePaymentCall(namespace, emailInvite, _callback); + return localVarCall; + + } + + /** + * Sends email to multiple recipients allowing them to use the payment instrument provided by the + * source namespace. + * + * @param namespace name or UUID of namespace sharing their payment info (required) + * @param emailInvite Recipients of the invitation. These may only be namespaces, not email + * addresses. (optional) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
204 Email sent successfully to user for email confirmation link -
207 Only a portion of the invitations succeeded, some failed -
500 Could not reach any recipients -
502 Bad Gateway -
0 error response -
+ */ + public void sharePayment(String namespace, SharePaymentRequest emailInvite) throws ApiException { + sharePaymentWithHttpInfo(namespace, emailInvite); + } + + /** + * Sends email to multiple recipients allowing them to use the payment instrument provided by the + * source namespace. + * + * @param namespace name or UUID of namespace sharing their payment info (required) + * @param emailInvite Recipients of the invitation. These may only be namespaces, not email + * addresses. (optional) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
204 Email sent successfully to user for email confirmation link -
207 Only a portion of the invitations succeeded, some failed -
500 Could not reach any recipients -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse sharePaymentWithHttpInfo( + String namespace, SharePaymentRequest emailInvite) throws ApiException { + okhttp3.Call localVarCall = sharePaymentValidateBeforeCall(namespace, emailInvite, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) Sends email to multiple recipients allowing them to use the payment instrument + * provided by the source namespace. + * + * @param namespace name or UUID of namespace sharing their payment info (required) + * @param emailInvite Recipients of the invitation. These may only be namespaces, not email + * addresses. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
204 Email sent successfully to user for email confirmation link -
207 Only a portion of the invitations succeeded, some failed -
500 Could not reach any recipients -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call sharePaymentAsync( + String namespace, SharePaymentRequest emailInvite, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = sharePaymentValidateBeforeCall(namespace, emailInvite, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } +} diff --git a/src/main/java/io/tiledb/cloud/rest_api/JSON.java b/src/main/java/io/tiledb/cloud/rest_api/JSON.java index a18f608..b84621e 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/JSON.java +++ b/src/main/java/io/tiledb/cloud/rest_api/JSON.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -23,143 +23,6 @@ import com.google.gson.JsonElement; import io.gsonfire.GsonFireBuilder; -import io.tiledb.cloud.rest_api.model.AWSAccessCredentials; -import io.tiledb.cloud.rest_api.model.Array; -import io.tiledb.cloud.rest_api.model.ArrayActivityLog; -import io.tiledb.cloud.rest_api.model.ArrayBrowserData; -import io.tiledb.cloud.rest_api.model.ArrayBrowserSidebar; -import io.tiledb.cloud.rest_api.model.ArrayConsolidationRequest; -import io.tiledb.cloud.rest_api.model.ArrayEndTimestampData; -import io.tiledb.cloud.rest_api.model.ArrayFavorite; -import io.tiledb.cloud.rest_api.model.ArrayFavoritesData; -import io.tiledb.cloud.rest_api.model.ArrayInfo; -import io.tiledb.cloud.rest_api.model.ArrayInfoUpdate; -import io.tiledb.cloud.rest_api.model.ArrayMetadata; -import io.tiledb.cloud.rest_api.model.ArrayMetadataEntry; -import io.tiledb.cloud.rest_api.model.ArraySample; -import io.tiledb.cloud.rest_api.model.ArraySchema; -import io.tiledb.cloud.rest_api.model.ArraySharing; -import io.tiledb.cloud.rest_api.model.ArrayTask; -import io.tiledb.cloud.rest_api.model.ArrayTaskBrowserSidebar; -import io.tiledb.cloud.rest_api.model.ArrayTaskData; -import io.tiledb.cloud.rest_api.model.ArrayTaskLog; -import io.tiledb.cloud.rest_api.model.ArrayVacuumRequest; -import io.tiledb.cloud.rest_api.model.AssetLocations; -import io.tiledb.cloud.rest_api.model.Attribute; -import io.tiledb.cloud.rest_api.model.AttributeBufferHeader; -import io.tiledb.cloud.rest_api.model.AttributeBufferSize; -import io.tiledb.cloud.rest_api.model.Backoff; -import io.tiledb.cloud.rest_api.model.Dimension; -import io.tiledb.cloud.rest_api.model.DimensionCoordinate; -import io.tiledb.cloud.rest_api.model.DimensionTileExtent; -import io.tiledb.cloud.rest_api.model.Domain; -import io.tiledb.cloud.rest_api.model.DomainArray; -import io.tiledb.cloud.rest_api.model.DomainCheckResult; -import io.tiledb.cloud.rest_api.model.FileCreate; -import io.tiledb.cloud.rest_api.model.FileCreated; -import io.tiledb.cloud.rest_api.model.FileExport; -import io.tiledb.cloud.rest_api.model.FileExported; -import io.tiledb.cloud.rest_api.model.FileUploaded; -import io.tiledb.cloud.rest_api.model.Filter; -import io.tiledb.cloud.rest_api.model.FilterData; -import io.tiledb.cloud.rest_api.model.FilterPipeline; -import io.tiledb.cloud.rest_api.model.FragmentInfo; -import io.tiledb.cloud.rest_api.model.FragmentInfoRequest; -import io.tiledb.cloud.rest_api.model.FragmentMetadata; -import io.tiledb.cloud.rest_api.model.GenericUDF; -import io.tiledb.cloud.rest_api.model.GetTiledbStats200Response; -import io.tiledb.cloud.rest_api.model.GroupActivity; -import io.tiledb.cloud.rest_api.model.GroupActivityAsset; -import io.tiledb.cloud.rest_api.model.GroupActivityResponse; -import io.tiledb.cloud.rest_api.model.GroupBrowserData; -import io.tiledb.cloud.rest_api.model.GroupBrowserFilterData; -import io.tiledb.cloud.rest_api.model.GroupChanges; -import io.tiledb.cloud.rest_api.model.GroupContents; -import io.tiledb.cloud.rest_api.model.GroupContentsFilterData; -import io.tiledb.cloud.rest_api.model.GroupCreate; -import io.tiledb.cloud.rest_api.model.GroupEntry; -import io.tiledb.cloud.rest_api.model.GroupInfo; -import io.tiledb.cloud.rest_api.model.GroupMember; -import io.tiledb.cloud.rest_api.model.GroupRegister; -import io.tiledb.cloud.rest_api.model.GroupSharing; -import io.tiledb.cloud.rest_api.model.GroupSharingRequest; -import io.tiledb.cloud.rest_api.model.GroupUpdate; -import io.tiledb.cloud.rest_api.model.Invitation; -import io.tiledb.cloud.rest_api.model.InvitationArrayShareEmail; -import io.tiledb.cloud.rest_api.model.InvitationData; -import io.tiledb.cloud.rest_api.model.InvitationFailedRecipients; -import io.tiledb.cloud.rest_api.model.InvitationGroupShareEmail; -import io.tiledb.cloud.rest_api.model.InvitationOrganizationJoinEmail; -import io.tiledb.cloud.rest_api.model.LastAccessedArray; -import io.tiledb.cloud.rest_api.model.MLModelFavorite; -import io.tiledb.cloud.rest_api.model.MLModelFavoritesData; -import io.tiledb.cloud.rest_api.model.MaxBufferSizes; -import io.tiledb.cloud.rest_api.model.MultiArrayUDF; -import io.tiledb.cloud.rest_api.model.NonEmptyDomain; -import io.tiledb.cloud.rest_api.model.NotebookCopied; -import io.tiledb.cloud.rest_api.model.NotebookCopy; -import io.tiledb.cloud.rest_api.model.NotebookFavorite; -import io.tiledb.cloud.rest_api.model.NotebookFavoritesData; -import io.tiledb.cloud.rest_api.model.NotebookStatus; -import io.tiledb.cloud.rest_api.model.Organization; -import io.tiledb.cloud.rest_api.model.OrganizationUser; -import io.tiledb.cloud.rest_api.model.PaginationMetadata; -import io.tiledb.cloud.rest_api.model.Pricing; -import io.tiledb.cloud.rest_api.model.Query; -import io.tiledb.cloud.rest_api.model.QueryJson; -import io.tiledb.cloud.rest_api.model.QueryRanges; -import io.tiledb.cloud.rest_api.model.QueryReader; -import io.tiledb.cloud.rest_api.model.ReadState; -import io.tiledb.cloud.rest_api.model.RegisteredTaskGraph; -import io.tiledb.cloud.rest_api.model.ResetUserPasswordRequest; -import io.tiledb.cloud.rest_api.model.RetryStrategy; -import io.tiledb.cloud.rest_api.model.SQLParameters; -import io.tiledb.cloud.rest_api.model.SSODomainConfig; -import io.tiledb.cloud.rest_api.model.SSODomainConfigResponse; -import io.tiledb.cloud.rest_api.model.SSODomainSetup; -import io.tiledb.cloud.rest_api.model.SingleFragmentInfo; -import io.tiledb.cloud.rest_api.model.StorageLocation; -import io.tiledb.cloud.rest_api.model.Subarray; -import io.tiledb.cloud.rest_api.model.SubarrayPartitioner; -import io.tiledb.cloud.rest_api.model.SubarrayPartitionerCurrent; -import io.tiledb.cloud.rest_api.model.SubarrayPartitionerState; -import io.tiledb.cloud.rest_api.model.SubarrayRanges; -import io.tiledb.cloud.rest_api.model.Subscription; -import io.tiledb.cloud.rest_api.model.TGArrayNodeData; -import io.tiledb.cloud.rest_api.model.TGInputNodeData; -import io.tiledb.cloud.rest_api.model.TGQueryRanges; -import io.tiledb.cloud.rest_api.model.TGSQLNodeData; -import io.tiledb.cloud.rest_api.model.TGUDFArgument; -import io.tiledb.cloud.rest_api.model.TGUDFEnvironment; -import io.tiledb.cloud.rest_api.model.TGUDFEnvironmentResources; -import io.tiledb.cloud.rest_api.model.TGUDFNodeData; -import io.tiledb.cloud.rest_api.model.TaskGraph; -import io.tiledb.cloud.rest_api.model.TaskGraphClientNodeStatus; -import io.tiledb.cloud.rest_api.model.TaskGraphLog; -import io.tiledb.cloud.rest_api.model.TaskGraphLogsData; -import io.tiledb.cloud.rest_api.model.TaskGraphNode; -import io.tiledb.cloud.rest_api.model.TaskGraphNodeMetadata; -import io.tiledb.cloud.rest_api.model.TaskGraphSharing; -import io.tiledb.cloud.rest_api.model.TaskGraphs; -import io.tiledb.cloud.rest_api.model.TileDBConfig; -import io.tiledb.cloud.rest_api.model.TileDBConfigEntriesInner; -import io.tiledb.cloud.rest_api.model.Token; -import io.tiledb.cloud.rest_api.model.TokenRequest; -import io.tiledb.cloud.rest_api.model.UDFArrayDetails; -import io.tiledb.cloud.rest_api.model.UDFCopied; -import io.tiledb.cloud.rest_api.model.UDFCopy; -import io.tiledb.cloud.rest_api.model.UDFFavorite; -import io.tiledb.cloud.rest_api.model.UDFFavoritesData; -import io.tiledb.cloud.rest_api.model.UDFImage; -import io.tiledb.cloud.rest_api.model.UDFImageVersion; -import io.tiledb.cloud.rest_api.model.UDFInfo; -import io.tiledb.cloud.rest_api.model.UDFInfoUpdate; -import io.tiledb.cloud.rest_api.model.UDFSharing; -import io.tiledb.cloud.rest_api.model.UDFSubarray; -import io.tiledb.cloud.rest_api.model.UDFSubarrayRange; -import io.tiledb.cloud.rest_api.model.User; -import io.tiledb.cloud.rest_api.model.Writer; -import io.tiledb.cloud.rest_api.model.Error; import okio.ByteString; import java.io.IOException; @@ -227,143 +90,156 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapter(OffsetDateTime.class, offsetDateTimeTypeAdapter); gsonBuilder.registerTypeAdapter(LocalDate.class, localDateTypeAdapter); gsonBuilder.registerTypeAdapter(byte[].class, byteArrayAdapter); - gsonBuilder.registerTypeAdapterFactory(new AWSAccessCredentials.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new Array.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new ArrayActivityLog.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new ArrayBrowserData.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new ArrayBrowserSidebar.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new ArrayConsolidationRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new ArrayEndTimestampData.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new ArrayFavorite.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new ArrayFavoritesData.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new ArrayInfo.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new ArrayInfoUpdate.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new ArrayMetadata.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new ArrayMetadataEntry.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new ArraySample.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new ArraySchema.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new ArraySharing.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new ArrayTask.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new ArrayTaskBrowserSidebar.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new ArrayTaskData.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new ArrayTaskLog.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new ArrayVacuumRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new AssetLocations.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new Attribute.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new AttributeBufferHeader.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new AttributeBufferSize.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new Backoff.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new Dimension.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new DimensionCoordinate.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new DimensionTileExtent.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new Domain.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new DomainArray.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new DomainCheckResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new Error.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new FileCreate.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new FileCreated.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new FileExport.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new FileExported.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new FileUploaded.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new Filter.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new FilterData.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new FilterPipeline.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new FragmentInfo.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new FragmentInfoRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new FragmentMetadata.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new GenericUDF.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new GetTiledbStats200Response.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new GroupActivity.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new GroupActivityAsset.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new GroupActivityResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new GroupBrowserData.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new GroupBrowserFilterData.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new GroupChanges.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new GroupContents.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new GroupContentsFilterData.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new GroupCreate.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new GroupEntry.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new GroupInfo.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new GroupMember.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new GroupRegister.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new GroupSharing.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new GroupSharingRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new GroupUpdate.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new Invitation.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new InvitationArrayShareEmail.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new InvitationData.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new InvitationFailedRecipients.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new InvitationGroupShareEmail.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new InvitationOrganizationJoinEmail.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new LastAccessedArray.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new MLModelFavorite.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new MLModelFavoritesData.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new MaxBufferSizes.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new MultiArrayUDF.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new NonEmptyDomain.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new NotebookCopied.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new NotebookCopy.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new NotebookFavorite.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new NotebookFavoritesData.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new NotebookStatus.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new Organization.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new OrganizationUser.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new PaginationMetadata.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new Pricing.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new Query.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new QueryJson.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new QueryRanges.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new QueryReader.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new ReadState.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new RegisteredTaskGraph.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new ResetUserPasswordRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new RetryStrategy.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new SQLParameters.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new SSODomainConfig.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new SSODomainConfigResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new SSODomainSetup.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new SingleFragmentInfo.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new StorageLocation.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new Subarray.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new SubarrayPartitioner.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new SubarrayPartitionerCurrent.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new SubarrayPartitionerState.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new SubarrayRanges.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new Subscription.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new TGArrayNodeData.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new TGInputNodeData.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new TGQueryRanges.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new TGSQLNodeData.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new TGUDFArgument.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new TGUDFEnvironment.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new TGUDFEnvironmentResources.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new TGUDFNodeData.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new TaskGraph.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new TaskGraphClientNodeStatus.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new TaskGraphLog.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new TaskGraphLogsData.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new TaskGraphNode.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new TaskGraphNodeMetadata.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new TaskGraphSharing.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new TaskGraphs.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new TileDBConfig.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new TileDBConfigEntriesInner.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new Token.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new TokenRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new UDFArrayDetails.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new UDFCopied.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new UDFCopy.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new UDFFavorite.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new UDFFavoritesData.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new UDFImage.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new UDFImageVersion.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new UDFInfo.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new UDFInfoUpdate.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new UDFSharing.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new UDFSubarray.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new UDFSubarrayRange.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new User.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new Writer.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.AWSAccessCredentials.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.Array.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.ArrayActivityLog.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.ArrayBrowserData.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.ArrayBrowserSidebar.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.ArrayConsolidationRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.ArrayEndTimestampData.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.ArrayFavorite.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.ArrayFavoritesData.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.ArrayInfo.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.ArrayInfoUpdate.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.ArrayMetadata.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.ArrayMetadataEntry.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.ArraySample.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.ArraySchema.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.ArraySharing.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.ArrayTask.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.ArrayTaskBrowserSidebar.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.ArrayTaskData.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.ArrayTaskLog.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.ArrayVacuumRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.AssetInfo.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.AssetListResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.AssetLocations.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.Attribute.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.AttributeBufferHeader.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.AttributeBufferSize.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.Backoff.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.ChangeAssetCredentialsRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.Dimension.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.DimensionCoordinate.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.DimensionTileExtent.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.Domain.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.DomainArray.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.DomainCheckResult.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.Enumeration.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.Error.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.FileCreate.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.FileCreated.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.FileExport.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.FileExported.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.FileUploaded.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.Filter.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.FilterData.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.FilterPipeline.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.FragmentInfo.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.FragmentInfoRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.FragmentMetadata.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.GenericUDF.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.GetTiledbStats200Response.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.GroupBrowserData.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.GroupBrowserFilterData.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.GroupChanges.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.GroupContentActivity.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.GroupContentActivityAsset.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.GroupContentActivityResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.GroupContents.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.GroupContentsFilterData.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.GroupCreate.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.GroupEntry.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.GroupInfo.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.GroupMember.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.GroupRegister.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.GroupSharing.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.GroupSharingRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.GroupUpdate.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.Invitation.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.InvitationArrayShareEmail.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.InvitationData.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.InvitationFailedRecipients.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.InvitationGroupShareEmail.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.InvitationOrganizationJoinEmail.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.LastAccessedArray.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.LoadArraySchemaRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.LoadArraySchemaResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.LoadEnumerationsRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.LoadEnumerationsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.MLModelFavorite.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.MLModelFavoritesData.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.MaxBufferSizes.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.MetadataStringified.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.MetadataStringifiedEntry.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.MultiArrayUDF.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.NonEmptyDomain.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.NotebookCopied.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.NotebookCopy.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.NotebookFavorite.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.NotebookFavoritesData.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.NotebookStatus.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.Organization.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.OrganizationUpdate.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.OrganizationUser.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.PaginationMetadata.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.Pricing.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.Query.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.QueryJson.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.QueryRanges.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.QueryReader.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.ReadState.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.RegisteredTaskGraph.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.ResetUserPasswordRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.RetryStrategy.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.SQLParameters.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.SSODomainConfig.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.SSODomainConfigResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.SSODomainSetup.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.SharePaymentRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.SingleFragmentInfo.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.StorageLocation.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.Subarray.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.SubarrayPartitioner.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.SubarrayPartitionerCurrent.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.SubarrayPartitionerState.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.SubarrayRanges.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.Subscription.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.TGArrayNodeData.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.TGInputNodeData.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.TGQueryRanges.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.TGSQLNodeData.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.TGUDFArgument.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.TGUDFEnvironment.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.TGUDFEnvironmentResources.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.TGUDFNodeData.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.TGUDFStorage.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.TaskGraph.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.TaskGraphClientNodeStatus.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.TaskGraphLog.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.TaskGraphLogsData.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.TaskGraphNode.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.TaskGraphNodeMetadata.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.TaskGraphSharing.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.TaskGraphs.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.TileDBConfig.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.TileDBConfigEntriesInner.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.Token.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.TokenRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.UDFArrayDetails.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.UDFCopied.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.UDFCopy.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.UDFFavorite.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.UDFFavoritesData.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.UDFImage.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.UDFImageVersion.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.UDFInfo.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.UDFInfoUpdate.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.UDFSharing.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.UDFSubarray.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.UDFSubarrayRange.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.User.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.Writer.CustomTypeAdapterFactory()); gson = gsonBuilder.create(); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/NotebookApi.java b/src/main/java/io/tiledb/cloud/rest_api/NotebookApi.java new file mode 100644 index 0000000..ad393b8 --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/NotebookApi.java @@ -0,0 +1,948 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.17.51 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api; + + +import com.google.gson.reflect.TypeToken; + + + +import io.tiledb.cloud.rest_api.model.ArrayInfoUpdate; +import java.io.File; +import io.tiledb.cloud.rest_api.model.FileUploaded; +import io.tiledb.cloud.rest_api.model.NotebookCopied; +import io.tiledb.cloud.rest_api.model.NotebookCopy; +import io.tiledb.cloud.rest_api.model.NotebookStatus; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class NotebookApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public NotebookApi() { + this(Configuration.getDefaultApiClient()); + } + + public NotebookApi(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 getNotebookServerStatus + * + * @param namespace namespace notebook is in (an organization name or user's username) + * (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 status of running notebook -
402 Payment required -
404 Notebook is not running -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getNotebookServerStatusCall(String namespace, 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 = "/notebooks/server/{namespace}/status" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getNotebookServerStatusValidateBeforeCall(String namespace, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling getNotebookServerStatus(Async)"); + } + + + okhttp3.Call localVarCall = getNotebookServerStatusCall(namespace, _callback); + return localVarCall; + + } + + /** + * Get status of the notebook server + * + * @param namespace namespace notebook is in (an organization name or user's username) + * (required) + * @return NotebookStatus + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 status of running notebook -
402 Payment required -
404 Notebook is not running -
502 Bad Gateway -
0 error response -
+ */ + public NotebookStatus getNotebookServerStatus(String namespace) throws ApiException { + ApiResponse localVarResp = getNotebookServerStatusWithHttpInfo(namespace); + return localVarResp.getData(); + } + + /** + * Get status of the notebook server + * + * @param namespace namespace notebook is in (an organization name or user's username) + * (required) + * @return ApiResponse<NotebookStatus> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 status of running notebook -
402 Payment required -
404 Notebook is not running -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse getNotebookServerStatusWithHttpInfo(String namespace) + throws ApiException { + okhttp3.Call localVarCall = getNotebookServerStatusValidateBeforeCall(namespace, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Get status of the notebook server + * + * @param namespace namespace notebook is in (an organization name or user's username) + * (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 status of running notebook -
402 Payment required -
404 Notebook is not running -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getNotebookServerStatusAsync( + String namespace, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getNotebookServerStatusValidateBeforeCall(namespace, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for handleCopyNotebook + * + * @param namespace The namespace of the notebook (required) + * @param array The name of the notebook (required) + * @param notebookCopy Input/Output information to create a new TileDB file (required) + * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for + * creation (optional) + * @param endTimestamp Milliseconds since Unix epoch, copy will use open_at functionality to copy + * notebook created at the specific timestamp (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
201 Notebook copied -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call handleCopyNotebookCall( + String namespace, + String array, + NotebookCopy notebookCopy, + String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, + Integer endTimestamp, + 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 = notebookCopy; + + // create path and map variables + String localVarPath = "/notebooks/{namespace}/{array}/copy" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (endTimestamp != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("end_timestamp", endTimestamp)); + } + + if (X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME != null) { + localVarHeaderParams.put("X-TILEDB-CLOUD-ACCESS-CREDENTIALS-NAME", localVarApiClient.parameterToString(X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME)); + } + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call handleCopyNotebookValidateBeforeCall(String namespace, String array, NotebookCopy notebookCopy, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, Integer endTimestamp, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling handleCopyNotebook(Async)"); + } + + // verify the required parameter 'array' is set + if (array == null) { + throw new ApiException("Missing the required parameter 'array' when calling handleCopyNotebook(Async)"); + } + + // verify the required parameter 'notebookCopy' is set + if (notebookCopy == null) { + throw new ApiException("Missing the required parameter 'notebookCopy' when calling handleCopyNotebook(Async)"); + } + + + okhttp3.Call localVarCall = handleCopyNotebookCall(namespace, array, notebookCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp, _callback); + return localVarCall; + + } + + /** + * Copy a tiledb notebook at the specified location + * + * @param namespace The namespace of the notebook (required) + * @param array The name of the notebook (required) + * @param notebookCopy Input/Output information to create a new TileDB file (required) + * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for + * creation (optional) + * @param endTimestamp Milliseconds since Unix epoch, copy will use open_at functionality to copy + * notebook created at the specific timestamp (optional) + * @return NotebookCopied + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
201 Notebook copied -
502 Bad Gateway -
0 error response -
+ */ + public NotebookCopied handleCopyNotebook( + String namespace, + String array, + NotebookCopy notebookCopy, + String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, + Integer endTimestamp) + throws ApiException { + ApiResponse localVarResp = handleCopyNotebookWithHttpInfo(namespace, array, notebookCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp); + return localVarResp.getData(); + } + + /** + * Copy a tiledb notebook at the specified location + * + * @param namespace The namespace of the notebook (required) + * @param array The name of the notebook (required) + * @param notebookCopy Input/Output information to create a new TileDB file (required) + * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for + * creation (optional) + * @param endTimestamp Milliseconds since Unix epoch, copy will use open_at functionality to copy + * notebook created at the specific timestamp (optional) + * @return ApiResponse<NotebookCopied> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
201 Notebook copied -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse handleCopyNotebookWithHttpInfo( + String namespace, + String array, + NotebookCopy notebookCopy, + String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, + Integer endTimestamp) + throws ApiException { + okhttp3.Call localVarCall = handleCopyNotebookValidateBeforeCall(namespace, array, notebookCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Copy a tiledb notebook at the specified location + * + * @param namespace The namespace of the notebook (required) + * @param array The name of the notebook (required) + * @param notebookCopy Input/Output information to create a new TileDB file (required) + * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for + * creation (optional) + * @param endTimestamp Milliseconds since Unix epoch, copy will use open_at functionality to copy + * notebook created at the specific timestamp (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
201 Notebook copied -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call handleCopyNotebookAsync( + String namespace, + String array, + NotebookCopy notebookCopy, + String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, + Integer endTimestamp, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = handleCopyNotebookValidateBeforeCall(namespace, array, notebookCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for handleUploadNotebook + * + * @param namespace The namespace of the notebook (required) + * @param inputFile the notebook to upload (required) + * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for + * creation (optional) + * @param outputUri output location of the TileDB File (optional) + * @param name name to set for registered file (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
201 File uploaded -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call handleUploadNotebookCall( + String namespace, + File inputFile, + String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, + String outputUri, + String name, + 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 = "/notebooks/{namespace}/upload" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (inputFile != null) { + localVarFormParams.put("input_file", inputFile); + } + + if (outputUri != null) { + localVarFormParams.put("output_uri", outputUri); + } + + if (name != null) { + localVarFormParams.put("name", name); + } + + if (X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME != null) { + localVarHeaderParams.put("X-TILEDB-CLOUD-ACCESS-CREDENTIALS-NAME", localVarApiClient.parameterToString(X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME)); + } + + 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); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call handleUploadNotebookValidateBeforeCall(String namespace, File inputFile, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, String outputUri, String name, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling handleUploadNotebook(Async)"); + } + + // verify the required parameter 'inputFile' is set + if (inputFile == null) { + throw new ApiException("Missing the required parameter 'inputFile' when calling handleUploadNotebook(Async)"); + } + + + okhttp3.Call localVarCall = handleUploadNotebookCall(namespace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name, _callback); + return localVarCall; + + } + + /** + * Upload a notebook at the specified location + * + * @param namespace The namespace of the notebook (required) + * @param inputFile the notebook to upload (required) + * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for + * creation (optional) + * @param outputUri output location of the TileDB File (optional) + * @param name name to set for registered file (optional) + * @return FileUploaded + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
201 File uploaded -
502 Bad Gateway -
0 error response -
+ */ + public FileUploaded handleUploadNotebook( + String namespace, + File inputFile, + String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, + String outputUri, + String name) + throws ApiException { + ApiResponse localVarResp = handleUploadNotebookWithHttpInfo(namespace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name); + return localVarResp.getData(); + } + + /** + * Upload a notebook at the specified location + * + * @param namespace The namespace of the notebook (required) + * @param inputFile the notebook to upload (required) + * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for + * creation (optional) + * @param outputUri output location of the TileDB File (optional) + * @param name name to set for registered file (optional) + * @return ApiResponse<FileUploaded> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
201 File uploaded -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse handleUploadNotebookWithHttpInfo( + String namespace, + File inputFile, + String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, + String outputUri, + String name) + throws ApiException { + okhttp3.Call localVarCall = handleUploadNotebookValidateBeforeCall(namespace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Upload a notebook at the specified location + * + * @param namespace The namespace of the notebook (required) + * @param inputFile the notebook to upload (required) + * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for + * creation (optional) + * @param outputUri output location of the TileDB File (optional) + * @param name name to set for registered file (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
201 File uploaded -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call handleUploadNotebookAsync( + String namespace, + File inputFile, + String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, + String outputUri, + String name, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = handleUploadNotebookValidateBeforeCall(namespace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for shutdownNotebookServer + * + * @param namespace namespace notebook is in (an organization name or user's username) + * (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
204 Notebook shutdown successfully -
404 Notebook is not running -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call shutdownNotebookServerCall(String namespace, 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 = "/notebooks/server/{namespace}" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call shutdownNotebookServerValidateBeforeCall(String namespace, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling shutdownNotebookServer(Async)"); + } + + + okhttp3.Call localVarCall = shutdownNotebookServerCall(namespace, _callback); + return localVarCall; + + } + + /** + * Shutdown a notebook server + * + * @param namespace namespace notebook is in (an organization name or user's username) + * (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
204 Notebook shutdown successfully -
404 Notebook is not running -
502 Bad Gateway -
0 error response -
+ */ + public void shutdownNotebookServer(String namespace) throws ApiException { + shutdownNotebookServerWithHttpInfo(namespace); + } + + /** + * Shutdown a notebook server + * + * @param namespace namespace notebook is in (an organization name or user's username) + * (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
204 Notebook shutdown successfully -
404 Notebook is not running -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse shutdownNotebookServerWithHttpInfo(String namespace) + throws ApiException { + okhttp3.Call localVarCall = shutdownNotebookServerValidateBeforeCall(namespace, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) Shutdown a notebook server + * + * @param namespace namespace notebook is in (an organization name or user's username) + * (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
204 Notebook shutdown successfully -
404 Notebook is not running -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call shutdownNotebookServerAsync( + String namespace, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = shutdownNotebookServerValidateBeforeCall(namespace, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for updateNotebookName + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of notebook (array) that is url-encoded (required) + * @param notebookMetadata notebook (array) metadata to update (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 notebook name updated successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call updateNotebookNameCall( + String namespace, String array, ArrayInfoUpdate notebookMetadata, 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 = notebookMetadata; + + // create path and map variables + String localVarPath = "/notebooks/{namespace}/{array}/rename" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.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); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateNotebookNameValidateBeforeCall(String namespace, String array, ArrayInfoUpdate notebookMetadata, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling updateNotebookName(Async)"); + } + + // verify the required parameter 'array' is set + if (array == null) { + throw new ApiException("Missing the required parameter 'array' when calling updateNotebookName(Async)"); + } + + // verify the required parameter 'notebookMetadata' is set + if (notebookMetadata == null) { + throw new ApiException("Missing the required parameter 'notebookMetadata' when calling updateNotebookName(Async)"); + } + + + okhttp3.Call localVarCall = updateNotebookNameCall(namespace, array, notebookMetadata, _callback); + return localVarCall; + + } + + /** + * update name on a notebok, moving related S3 object to new location + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of notebook (array) that is url-encoded (required) + * @param notebookMetadata notebook (array) metadata to update (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 notebook name updated successfully -
502 Bad Gateway -
0 error response -
+ */ + public void updateNotebookName(String namespace, String array, ArrayInfoUpdate notebookMetadata) + throws ApiException { + updateNotebookNameWithHttpInfo(namespace, array, notebookMetadata); + } + + /** + * update name on a notebok, moving related S3 object to new location + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of notebook (array) that is url-encoded (required) + * @param notebookMetadata notebook (array) metadata to update (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 notebook name updated successfully -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse updateNotebookNameWithHttpInfo( + String namespace, String array, ArrayInfoUpdate notebookMetadata) throws ApiException { + okhttp3.Call localVarCall = updateNotebookNameValidateBeforeCall(namespace, array, notebookMetadata, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) update name on a notebok, moving related S3 object to new location + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of notebook (array) that is url-encoded (required) + * @param notebookMetadata notebook (array) metadata to update (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 notebook name updated successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call updateNotebookNameAsync( + String namespace, + String array, + ArrayInfoUpdate notebookMetadata, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = updateNotebookNameValidateBeforeCall(namespace, array, notebookMetadata, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } +} diff --git a/src/main/java/io/tiledb/cloud/rest_api/NotebooksApi.java b/src/main/java/io/tiledb/cloud/rest_api/NotebooksApi.java new file mode 100644 index 0000000..2870852 --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/NotebooksApi.java @@ -0,0 +1,401 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.17.51 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api; + + +import com.google.gson.reflect.TypeToken; + + + +import io.tiledb.cloud.rest_api.model.ArrayEndTimestampData; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class NotebooksApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public NotebooksApi() { + this(Configuration.getDefaultApiClient()); + } + + public NotebooksApi(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 notebooksNamespaceArrayEndTimestampsGet + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 list of timestamps in milliseconds, paginated -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call notebooksNamespaceArrayEndTimestampsGetCall( + String namespace, String array, Integer page, Integer perPage, 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 = "/notebooks/{namespace}/{array}/end_timestamps" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + if (perPage != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("per_page", perPage)); + } + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call notebooksNamespaceArrayEndTimestampsGetValidateBeforeCall(String namespace, String array, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling notebooksNamespaceArrayEndTimestampsGet(Async)"); + } + + // verify the required parameter 'array' is set + if (array == null) { + throw new ApiException("Missing the required parameter 'array' when calling notebooksNamespaceArrayEndTimestampsGet(Async)"); + } + + + okhttp3.Call localVarCall = notebooksNamespaceArrayEndTimestampsGetCall(namespace, array, page, perPage, _callback); + return localVarCall; + + } + + /** + * retrieve a list of timestamps from the array fragment info listing in milliseconds, paginated + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @return ArrayEndTimestampData + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 list of timestamps in milliseconds, paginated -
502 Bad Gateway -
0 error response -
+ */ + public ArrayEndTimestampData notebooksNamespaceArrayEndTimestampsGet( + String namespace, String array, Integer page, Integer perPage) throws ApiException { + ApiResponse localVarResp = notebooksNamespaceArrayEndTimestampsGetWithHttpInfo(namespace, array, page, perPage); + return localVarResp.getData(); + } + + /** + * retrieve a list of timestamps from the array fragment info listing in milliseconds, paginated + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @return ApiResponse<ArrayEndTimestampData> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 list of timestamps in milliseconds, paginated -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse notebooksNamespaceArrayEndTimestampsGetWithHttpInfo( + String namespace, String array, Integer page, Integer perPage) throws ApiException { + okhttp3.Call localVarCall = notebooksNamespaceArrayEndTimestampsGetValidateBeforeCall(namespace, array, page, perPage, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) retrieve a list of timestamps from the array fragment info listing in + * milliseconds, paginated + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 list of timestamps in milliseconds, paginated -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call notebooksNamespaceArrayEndTimestampsGetAsync( + String namespace, + String array, + Integer page, + Integer perPage, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = notebooksNamespaceArrayEndTimestampsGetValidateBeforeCall(namespace, array, page, perPage, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for notebooksNamespaceArrayPrunePost + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param keepVersions The number of most recents fragment to preserve (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 notebook pruned -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call notebooksNamespaceArrayPrunePostCall( + String namespace, String array, Integer keepVersions, 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 = "/notebooks/{namespace}/{array}/prune" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (keepVersions != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("keep_versions", keepVersions)); + } + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call notebooksNamespaceArrayPrunePostValidateBeforeCall(String namespace, String array, Integer keepVersions, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling notebooksNamespaceArrayPrunePost(Async)"); + } + + // verify the required parameter 'array' is set + if (array == null) { + throw new ApiException("Missing the required parameter 'array' when calling notebooksNamespaceArrayPrunePost(Async)"); + } + + + okhttp3.Call localVarCall = notebooksNamespaceArrayPrunePostCall(namespace, array, keepVersions, _callback); + return localVarCall; + + } + + /** + * prune fragments of the notebook + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param keepVersions The number of most recents fragment to preserve (optional) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 notebook pruned -
502 Bad Gateway -
0 error response -
+ */ + public void notebooksNamespaceArrayPrunePost(String namespace, String array, Integer keepVersions) + throws ApiException { + notebooksNamespaceArrayPrunePostWithHttpInfo(namespace, array, keepVersions); + } + + /** + * prune fragments of the notebook + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param keepVersions The number of most recents fragment to preserve (optional) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 notebook pruned -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse notebooksNamespaceArrayPrunePostWithHttpInfo( + String namespace, String array, Integer keepVersions) throws ApiException { + okhttp3.Call localVarCall = notebooksNamespaceArrayPrunePostValidateBeforeCall(namespace, array, keepVersions, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) prune fragments of the notebook + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param keepVersions The number of most recents fragment to preserve (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 notebook pruned -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call notebooksNamespaceArrayPrunePostAsync( + String namespace, String array, Integer keepVersions, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = notebooksNamespaceArrayPrunePostValidateBeforeCall(namespace, array, keepVersions, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } +} diff --git a/src/main/java/io/tiledb/cloud/rest_api/OrganizationApi.java b/src/main/java/io/tiledb/cloud/rest_api/OrganizationApi.java new file mode 100644 index 0000000..3f739f8 --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/OrganizationApi.java @@ -0,0 +1,3066 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.17.51 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api; + + +import com.google.gson.reflect.TypeToken; + + + +import io.tiledb.cloud.rest_api.model.AWSAccessCredentials; +import io.tiledb.cloud.rest_api.model.DomainCheckResult; +import io.tiledb.cloud.rest_api.model.Organization; +import io.tiledb.cloud.rest_api.model.OrganizationUpdate; +import io.tiledb.cloud.rest_api.model.OrganizationUser; +import io.tiledb.cloud.rest_api.model.SSODomainConfig; +import io.tiledb.cloud.rest_api.model.SSODomainConfigResponse; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class OrganizationApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public OrganizationApi() { + this(Configuration.getDefaultApiClient()); + } + + public OrganizationApi(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 addAWSAccessCredentials + * + * @param namespace namespace (required) + * @param awsAccessCredentials aws access credentials to store for a namespace (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 AWS keys added successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call addAWSAccessCredentialsCall( + String namespace, AWSAccessCredentials awsAccessCredentials, 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 = awsAccessCredentials; + + // create path and map variables + String localVarPath = "/credentials/{namespace}/aws" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.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); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addAWSAccessCredentialsValidateBeforeCall(String namespace, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling addAWSAccessCredentials(Async)"); + } + + // verify the required parameter 'awsAccessCredentials' is set + if (awsAccessCredentials == null) { + throw new ApiException("Missing the required parameter 'awsAccessCredentials' when calling addAWSAccessCredentials(Async)"); + } + + + okhttp3.Call localVarCall = addAWSAccessCredentialsCall(namespace, awsAccessCredentials, _callback); + return localVarCall; + + } + + /** + * Add aws keys + * + * @param namespace namespace (required) + * @param awsAccessCredentials aws access credentials to store for a namespace (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 AWS keys added successfully -
502 Bad Gateway -
0 error response -
+ */ + public void addAWSAccessCredentials(String namespace, AWSAccessCredentials awsAccessCredentials) + throws ApiException { + addAWSAccessCredentialsWithHttpInfo(namespace, awsAccessCredentials); + } + + /** + * Add aws keys + * + * @param namespace namespace (required) + * @param awsAccessCredentials aws access credentials to store for a namespace (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 AWS keys added successfully -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse addAWSAccessCredentialsWithHttpInfo( + String namespace, AWSAccessCredentials awsAccessCredentials) throws ApiException { + okhttp3.Call localVarCall = addAWSAccessCredentialsValidateBeforeCall(namespace, awsAccessCredentials, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) Add aws keys + * + * @param namespace namespace (required) + * @param awsAccessCredentials aws access credentials to store for a namespace (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 AWS keys added successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call addAWSAccessCredentialsAsync( + String namespace, + AWSAccessCredentials awsAccessCredentials, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = addAWSAccessCredentialsValidateBeforeCall(namespace, awsAccessCredentials, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for addUserToOrganization + * + * @param organization organization name (required) + * @param user user to add (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 user added to organization successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call addUserToOrganizationCall( + String organization, OrganizationUser user, 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 = user; + + // create path and map variables + String localVarPath = "/organizations/{organization}/user" + .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.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); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addUserToOrganizationValidateBeforeCall(String organization, OrganizationUser user, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'organization' is set + if (organization == null) { + throw new ApiException("Missing the required parameter 'organization' when calling addUserToOrganization(Async)"); + } + + // verify the required parameter 'user' is set + if (user == null) { + throw new ApiException("Missing the required parameter 'user' when calling addUserToOrganization(Async)"); + } + + + okhttp3.Call localVarCall = addUserToOrganizationCall(organization, user, _callback); + return localVarCall; + + } + + /** + * add a user to an organization + * + * @param organization organization name (required) + * @param user user to add (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 user added to organization successfully -
502 Bad Gateway -
0 error response -
+ */ + public void addUserToOrganization(String organization, OrganizationUser user) + throws ApiException { + addUserToOrganizationWithHttpInfo(organization, user); + } + + /** + * add a user to an organization + * + * @param organization organization name (required) + * @param user user to add (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 user added to organization successfully -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse addUserToOrganizationWithHttpInfo( + String organization, OrganizationUser user) throws ApiException { + okhttp3.Call localVarCall = addUserToOrganizationValidateBeforeCall(organization, user, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) add a user to an organization + * + * @param organization organization name (required) + * @param user user to add (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 user added to organization successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call addUserToOrganizationAsync( + String organization, OrganizationUser user, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = addUserToOrganizationValidateBeforeCall(organization, user, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for checkAWSAccessCredentials + * + * @param namespace namespace (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 AWS keys are set -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call checkAWSAccessCredentialsCall(String namespace, 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 = "/credentials/{namespace}/aws" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call checkAWSAccessCredentialsValidateBeforeCall(String namespace, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling checkAWSAccessCredentials(Async)"); + } + + + okhttp3.Call localVarCall = checkAWSAccessCredentialsCall(namespace, _callback); + return localVarCall; + + } + + /** + * Check if aws keys are set + * + * @param namespace namespace (required) + * @return List<AWSAccessCredentials> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 AWS keys are set -
502 Bad Gateway -
0 error response -
+ */ + public List checkAWSAccessCredentials(String namespace) + throws ApiException { + ApiResponse> localVarResp = checkAWSAccessCredentialsWithHttpInfo(namespace); + return localVarResp.getData(); + } + + /** + * Check if aws keys are set + * + * @param namespace namespace (required) + * @return ApiResponse<List<AWSAccessCredentials>> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 AWS keys are set -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse> checkAWSAccessCredentialsWithHttpInfo( + String namespace) throws ApiException { + okhttp3.Call localVarCall = checkAWSAccessCredentialsValidateBeforeCall(namespace, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Check if aws keys are set + * + * @param namespace namespace (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 AWS keys are set -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call checkAWSAccessCredentialsAsync( + String namespace, final ApiCallback> _callback) + throws ApiException { + + okhttp3.Call localVarCall = checkAWSAccessCredentialsValidateBeforeCall(namespace, _callback); + Type localVarReturnType = new TypeToken>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for checkAWSAccessCredentialsByName + * + * @param namespace namespace (required) + * @param name name (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 AWS keys are set -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call checkAWSAccessCredentialsByNameCall( + String namespace, String name, 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 = "/credentials/{namespace}/aws/{name}" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call checkAWSAccessCredentialsByNameValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling checkAWSAccessCredentialsByName(Async)"); + } + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling checkAWSAccessCredentialsByName(Async)"); + } + + + okhttp3.Call localVarCall = checkAWSAccessCredentialsByNameCall(namespace, name, _callback); + return localVarCall; + + } + + /** + * Check if aws keys are set by name + * + * @param namespace namespace (required) + * @param name name (required) + * @return AWSAccessCredentials + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 AWS keys are set -
502 Bad Gateway -
0 error response -
+ */ + public AWSAccessCredentials checkAWSAccessCredentialsByName(String namespace, String name) + throws ApiException { + ApiResponse localVarResp = checkAWSAccessCredentialsByNameWithHttpInfo(namespace, name); + return localVarResp.getData(); + } + + /** + * Check if aws keys are set by name + * + * @param namespace namespace (required) + * @param name name (required) + * @return ApiResponse<AWSAccessCredentials> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 AWS keys are set -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse checkAWSAccessCredentialsByNameWithHttpInfo( + String namespace, String name) throws ApiException { + okhttp3.Call localVarCall = checkAWSAccessCredentialsByNameValidateBeforeCall(namespace, name, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Check if aws keys are set by name + * + * @param namespace namespace (required) + * @param name name (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 AWS keys are set -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call checkAWSAccessCredentialsByNameAsync( + String namespace, String name, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = checkAWSAccessCredentialsByNameValidateBeforeCall(namespace, name, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for checkSSODomain + * + * @param organization organization name (required) + * @param uuid configuration ID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + *
Status Code Description Response Headers
200 The check executed. Detailed results are available in the response. -
0 error response -
+ */ + public okhttp3.Call checkSSODomainCall( + String organization, String uuid, 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}/sso_domains/{uuid}/run_check" + .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())) + .replaceAll("\\{" + "uuid" + "\\}", localVarApiClient.escapeString(uuid.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call checkSSODomainValidateBeforeCall(String organization, String uuid, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'organization' is set + if (organization == null) { + throw new ApiException("Missing the required parameter 'organization' when calling checkSSODomain(Async)"); + } + + // verify the required parameter 'uuid' is set + if (uuid == null) { + throw new ApiException("Missing the required parameter 'uuid' when calling checkSSODomain(Async)"); + } + + + okhttp3.Call localVarCall = checkSSODomainCall(organization, uuid, _callback); + return localVarCall; + + } + + /** + * Immediately verify ownership of the specified SSO domain ownership claim. + * + * @param organization organization name (required) + * @param uuid configuration ID (required) + * @return DomainCheckResult + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + *
Status Code Description Response Headers
200 The check executed. Detailed results are available in the response. -
0 error response -
+ */ + public DomainCheckResult checkSSODomain(String organization, String uuid) throws ApiException { + ApiResponse localVarResp = checkSSODomainWithHttpInfo(organization, uuid); + return localVarResp.getData(); + } + + /** + * Immediately verify ownership of the specified SSO domain ownership claim. + * + * @param organization organization name (required) + * @param uuid configuration ID (required) + * @return ApiResponse<DomainCheckResult> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + *
Status Code Description Response Headers
200 The check executed. Detailed results are available in the response. -
0 error response -
+ */ + public ApiResponse checkSSODomainWithHttpInfo(String organization, String uuid) + throws ApiException { + okhttp3.Call localVarCall = checkSSODomainValidateBeforeCall(organization, uuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Immediately verify ownership of the specified SSO domain ownership claim. + * + * @param organization organization name (required) + * @param uuid configuration ID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + *
Status Code Description Response Headers
200 The check executed. Detailed results are available in the response. -
0 error response -
+ */ + public okhttp3.Call checkSSODomainAsync( + String organization, String uuid, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = checkSSODomainValidateBeforeCall(organization, uuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for createOrganization + * + * @param organization organization to create (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 organization created successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call createOrganizationCall(Organization organization, 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 = organization; + + // create path and map variables + String localVarPath = "/organization"; + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createOrganizationValidateBeforeCall(Organization organization, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'organization' is set + if (organization == null) { + throw new ApiException("Missing the required parameter 'organization' when calling createOrganization(Async)"); + } + + + okhttp3.Call localVarCall = createOrganizationCall(organization, _callback); + return localVarCall; + + } + + /** + * create a organization, the user creating will be listed as owner + * + * @param organization organization to create (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 organization created successfully -
502 Bad Gateway -
0 error response -
+ */ + public void createOrganization(Organization organization) throws ApiException { + createOrganizationWithHttpInfo(organization); + } + + /** + * create a organization, the user creating will be listed as owner + * + * @param organization organization to create (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 organization created successfully -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse createOrganizationWithHttpInfo(Organization organization) + throws ApiException { + okhttp3.Call localVarCall = createOrganizationValidateBeforeCall(organization, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) create a organization, the user creating will be listed as owner + * + * @param organization organization to create (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 organization created successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call createOrganizationAsync( + Organization organization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createOrganizationValidateBeforeCall(organization, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for createSSODomain + * + * @param organization organization name (required) + * @param config The SSO connection to create. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + *
Status Code Description Response Headers
200 Claim created successfully. -
0 error response -
+ */ + public okhttp3.Call createSSODomainCall( + String organization, SSODomainConfig config, 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 = config; + + // create path and map variables + String localVarPath = "/organizations/{organization}/sso_domain" + .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.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); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createSSODomainValidateBeforeCall(String organization, SSODomainConfig config, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'organization' is set + if (organization == null) { + throw new ApiException("Missing the required parameter 'organization' when calling createSSODomain(Async)"); + } + + // verify the required parameter 'config' is set + if (config == null) { + throw new ApiException("Missing the required parameter 'config' when calling createSSODomain(Async)"); + } + + + okhttp3.Call localVarCall = createSSODomainCall(organization, config, _callback); + return localVarCall; + + } + + /** + * Create a new SSO connection that connects this organization to this domain. + * + * @param organization organization name (required) + * @param config The SSO connection to create. (required) + * @return SSODomainConfig + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + *
Status Code Description Response Headers
200 Claim created successfully. -
0 error response -
+ */ + public SSODomainConfig createSSODomain(String organization, SSODomainConfig config) + throws ApiException { + ApiResponse localVarResp = createSSODomainWithHttpInfo(organization, config); + return localVarResp.getData(); + } + + /** + * Create a new SSO connection that connects this organization to this domain. + * + * @param organization organization name (required) + * @param config The SSO connection to create. (required) + * @return ApiResponse<SSODomainConfig> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + *
Status Code Description Response Headers
200 Claim created successfully. -
0 error response -
+ */ + public ApiResponse createSSODomainWithHttpInfo( + String organization, SSODomainConfig config) throws ApiException { + okhttp3.Call localVarCall = createSSODomainValidateBeforeCall(organization, config, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Create a new SSO connection that connects this organization to this domain. + * + * @param organization organization name (required) + * @param config The SSO connection to create. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + *
Status Code Description Response Headers
200 Claim created successfully. -
0 error response -
+ */ + public okhttp3.Call createSSODomainAsync( + String organization, SSODomainConfig config, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = createSSODomainValidateBeforeCall(organization, config, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteAWSAccessCredentials + * + * @param namespace namespace (required) + * @param name name (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 AWS credentials deleted -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call deleteAWSAccessCredentialsCall( + String namespace, String name, 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 = "/credentials/{namespace}/aws/{name}" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteAWSAccessCredentialsValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteAWSAccessCredentials(Async)"); + } + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteAWSAccessCredentials(Async)"); + } + + + okhttp3.Call localVarCall = deleteAWSAccessCredentialsCall(namespace, name, _callback); + return localVarCall; + + } + + /** + * delete a AWS Access credentials in a namespace. This will likely cause arrays to become + * unreachable + * + * @param namespace namespace (required) + * @param name name (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 AWS credentials deleted -
502 Bad Gateway -
0 error response -
+ */ + public void deleteAWSAccessCredentials(String namespace, String name) throws ApiException { + deleteAWSAccessCredentialsWithHttpInfo(namespace, name); + } + + /** + * delete a AWS Access credentials in a namespace. This will likely cause arrays to become + * unreachable + * + * @param namespace namespace (required) + * @param name name (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 AWS credentials deleted -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse deleteAWSAccessCredentialsWithHttpInfo(String namespace, String name) + throws ApiException { + okhttp3.Call localVarCall = deleteAWSAccessCredentialsValidateBeforeCall(namespace, name, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) delete a AWS Access credentials in a namespace. This will likely cause arrays + * to become unreachable + * + * @param namespace namespace (required) + * @param name name (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 AWS credentials deleted -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call deleteAWSAccessCredentialsAsync( + String namespace, String name, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteAWSAccessCredentialsValidateBeforeCall(namespace, name, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for deleteOrganization + * + * @param organization organization name or ID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 organization deleted -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call deleteOrganizationCall(String organization, 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}" + .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteOrganizationValidateBeforeCall(String organization, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'organization' is set + if (organization == null) { + throw new ApiException("Missing the required parameter 'organization' when calling deleteOrganization(Async)"); + } + + + okhttp3.Call localVarCall = deleteOrganizationCall(organization, _callback); + return localVarCall; + + } + + /** + * delete a organization + * + * @param organization organization name or ID (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 organization deleted -
502 Bad Gateway -
0 error response -
+ */ + public void deleteOrganization(String organization) throws ApiException { + deleteOrganizationWithHttpInfo(organization); + } + + /** + * delete a organization + * + * @param organization organization name or ID (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 organization deleted -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse deleteOrganizationWithHttpInfo(String organization) throws ApiException { + okhttp3.Call localVarCall = deleteOrganizationValidateBeforeCall(organization, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) delete a organization + * + * @param organization organization name or ID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 organization deleted -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call deleteOrganizationAsync( + String organization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteOrganizationValidateBeforeCall(organization, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for deleteSSODomain + * + * @param organization organization name (required) + * @param uuid configuration ID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + *
Status Code Description Response Headers
204 Deletion successful. -
0 error response -
+ */ + public okhttp3.Call deleteSSODomainCall( + String organization, String uuid, 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}/sso_domains/{uuid}" + .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())) + .replaceAll("\\{" + "uuid" + "\\}", localVarApiClient.escapeString(uuid.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteSSODomainValidateBeforeCall(String organization, String uuid, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'organization' is set + if (organization == null) { + throw new ApiException("Missing the required parameter 'organization' when calling deleteSSODomain(Async)"); + } + + // verify the required parameter 'uuid' is set + if (uuid == null) { + throw new ApiException("Missing the required parameter 'uuid' when calling deleteSSODomain(Async)"); + } + + + okhttp3.Call localVarCall = deleteSSODomainCall(organization, uuid, _callback); + return localVarCall; + + } + + /** + * Deletes the configuration for the given SSO connection. + * + * @param organization organization name (required) + * @param uuid configuration ID (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + *
Status Code Description Response Headers
204 Deletion successful. -
0 error response -
+ */ + public void deleteSSODomain(String organization, String uuid) throws ApiException { + deleteSSODomainWithHttpInfo(organization, uuid); + } + + /** + * Deletes the configuration for the given SSO connection. + * + * @param organization organization name (required) + * @param uuid configuration ID (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + *
Status Code Description Response Headers
204 Deletion successful. -
0 error response -
+ */ + public ApiResponse deleteSSODomainWithHttpInfo(String organization, String uuid) + throws ApiException { + okhttp3.Call localVarCall = deleteSSODomainValidateBeforeCall(organization, uuid, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) Deletes the configuration for the given SSO connection. + * + * @param organization organization name (required) + * @param uuid configuration ID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + *
Status Code Description Response Headers
204 Deletion successful. -
0 error response -
+ */ + public okhttp3.Call deleteSSODomainAsync( + String organization, String uuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteSSODomainValidateBeforeCall(organization, uuid, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for deleteUserFromOrganization + * + * @param organization organization name (required) + * @param username username to manipulate (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 user delete from organization successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call deleteUserFromOrganizationCall( + String organization, String username, 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}/{username}" + .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())) + .replaceAll("\\{" + "username" + "\\}", localVarApiClient.escapeString(username.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteUserFromOrganizationValidateBeforeCall(String organization, String username, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'organization' is set + if (organization == null) { + throw new ApiException("Missing the required parameter 'organization' when calling deleteUserFromOrganization(Async)"); + } + + // verify the required parameter 'username' is set + if (username == null) { + throw new ApiException("Missing the required parameter 'username' when calling deleteUserFromOrganization(Async)"); + } + + + okhttp3.Call localVarCall = deleteUserFromOrganizationCall(organization, username, _callback); + return localVarCall; + + } + + /** + * delete a user from an organization + * + * @param organization organization name (required) + * @param username username to manipulate (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 user delete from organization successfully -
502 Bad Gateway -
0 error response -
+ */ + public void deleteUserFromOrganization(String organization, String username) throws ApiException { + deleteUserFromOrganizationWithHttpInfo(organization, username); + } + + /** + * delete a user from an organization + * + * @param organization organization name (required) + * @param username username to manipulate (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 user delete from organization successfully -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse deleteUserFromOrganizationWithHttpInfo( + String organization, String username) throws ApiException { + okhttp3.Call localVarCall = deleteUserFromOrganizationValidateBeforeCall(organization, username, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) delete a user from an organization + * + * @param organization organization name (required) + * @param username username to manipulate (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 user delete from organization successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call deleteUserFromOrganizationAsync( + String organization, String username, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteUserFromOrganizationValidateBeforeCall(organization, username, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for getAllOrganizations + * + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 array of organizations the user is member of -
400 Error finding organizations -
500 Request user not found, or has empty context -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getAllOrganizationsCall(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"; + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAllOrganizationsValidateBeforeCall(final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = getAllOrganizationsCall(_callback); + return localVarCall; + + } + + /** + * get all organizations that the user is member of + * + * @return List<Organization> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 array of organizations the user is member of -
400 Error finding organizations -
500 Request user not found, or has empty context -
502 Bad Gateway -
0 error response -
+ */ + public List getAllOrganizations() throws ApiException { + ApiResponse> localVarResp = getAllOrganizationsWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * get all organizations that the user is member of + * + * @return ApiResponse<List<Organization>> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 array of organizations the user is member of -
400 Error finding organizations -
500 Request user not found, or has empty context -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse> getAllOrganizationsWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getAllOrganizationsValidateBeforeCall(null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) get all organizations that the user is member of + * + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 array of organizations the user is member of -
400 Error finding organizations -
500 Request user not found, or has empty context -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getAllOrganizationsAsync(final ApiCallback> _callback) + throws ApiException { + + okhttp3.Call localVarCall = getAllOrganizationsValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getOrganization + * + * @param organization organization name or ID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 organization details -
404 Organization does not exist -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getOrganizationCall(String organization, 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}" + .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getOrganizationValidateBeforeCall(String organization, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'organization' is set + if (organization == null) { + throw new ApiException("Missing the required parameter 'organization' when calling getOrganization(Async)"); + } + + + okhttp3.Call localVarCall = getOrganizationCall(organization, _callback); + return localVarCall; + + } + + /** + * get a organization + * + * @param organization organization name or ID (required) + * @return Organization + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 organization details -
404 Organization does not exist -
502 Bad Gateway -
0 error response -
+ */ + public Organization getOrganization(String organization) throws ApiException { + ApiResponse localVarResp = getOrganizationWithHttpInfo(organization); + return localVarResp.getData(); + } + + /** + * get a organization + * + * @param organization organization name or ID (required) + * @return ApiResponse<Organization> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 organization details -
404 Organization does not exist -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse getOrganizationWithHttpInfo(String organization) + throws ApiException { + okhttp3.Call localVarCall = getOrganizationValidateBeforeCall(organization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) get a organization + * + * @param organization organization name or ID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 organization details -
404 Organization does not exist -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getOrganizationAsync( + String organization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getOrganizationValidateBeforeCall(organization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getOrganizationUser + * + * @param organization organization name (required) + * @param username username to manipulate (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 user from organization -
404 User is not in organization -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getOrganizationUserCall( + String organization, String username, 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}/{username}" + .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())) + .replaceAll("\\{" + "username" + "\\}", localVarApiClient.escapeString(username.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getOrganizationUserValidateBeforeCall(String organization, String username, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'organization' is set + if (organization == null) { + throw new ApiException("Missing the required parameter 'organization' when calling getOrganizationUser(Async)"); + } + + // verify the required parameter 'username' is set + if (username == null) { + throw new ApiException("Missing the required parameter 'username' when calling getOrganizationUser(Async)"); + } + + + okhttp3.Call localVarCall = getOrganizationUserCall(organization, username, _callback); + return localVarCall; + + } + + /** + * get a user from an organization + * + * @param organization organization name (required) + * @param username username to manipulate (required) + * @return OrganizationUser + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 user from organization -
404 User is not in organization -
502 Bad Gateway -
0 error response -
+ */ + public OrganizationUser getOrganizationUser(String organization, String username) + throws ApiException { + ApiResponse localVarResp = getOrganizationUserWithHttpInfo(organization, username); + return localVarResp.getData(); + } + + /** + * get a user from an organization + * + * @param organization organization name (required) + * @param username username to manipulate (required) + * @return ApiResponse<OrganizationUser> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 user from organization -
404 User is not in organization -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse getOrganizationUserWithHttpInfo( + String organization, String username) throws ApiException { + okhttp3.Call localVarCall = getOrganizationUserValidateBeforeCall(organization, username, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) get a user from an organization + * + * @param organization organization name (required) + * @param username username to manipulate (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 user from organization -
404 User is not in organization -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getOrganizationUserAsync( + String organization, String username, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = getOrganizationUserValidateBeforeCall(organization, username, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getSSODomain + * + * @param organization organization name (required) + * @param uuid configuration ID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + *
Status Code Description Response Headers
200 The details about this domain connection. -
0 error response -
+ */ + public okhttp3.Call getSSODomainCall( + String organization, String uuid, 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}/sso_domains/{uuid}" + .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())) + .replaceAll("\\{" + "uuid" + "\\}", localVarApiClient.escapeString(uuid.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getSSODomainValidateBeforeCall(String organization, String uuid, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'organization' is set + if (organization == null) { + throw new ApiException("Missing the required parameter 'organization' when calling getSSODomain(Async)"); + } + + // verify the required parameter 'uuid' is set + if (uuid == null) { + throw new ApiException("Missing the required parameter 'uuid' when calling getSSODomain(Async)"); + } + + + okhttp3.Call localVarCall = getSSODomainCall(organization, uuid, _callback); + return localVarCall; + + } + + /** + * Gets details about the given SSO domain connection. + * + * @param organization organization name (required) + * @param uuid configuration ID (required) + * @return SSODomainConfig + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + *
Status Code Description Response Headers
200 The details about this domain connection. -
0 error response -
+ */ + public SSODomainConfig getSSODomain(String organization, String uuid) throws ApiException { + ApiResponse localVarResp = getSSODomainWithHttpInfo(organization, uuid); + return localVarResp.getData(); + } + + /** + * Gets details about the given SSO domain connection. + * + * @param organization organization name (required) + * @param uuid configuration ID (required) + * @return ApiResponse<SSODomainConfig> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + *
Status Code Description Response Headers
200 The details about this domain connection. -
0 error response -
+ */ + public ApiResponse getSSODomainWithHttpInfo(String organization, String uuid) + throws ApiException { + okhttp3.Call localVarCall = getSSODomainValidateBeforeCall(organization, uuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Gets details about the given SSO domain connection. + * + * @param organization organization name (required) + * @param uuid configuration ID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + *
Status Code Description Response Headers
200 The details about this domain connection. -
0 error response -
+ */ + public okhttp3.Call getSSODomainAsync( + String organization, String uuid, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = getSSODomainValidateBeforeCall(organization, uuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getSSODomains + * + * @param organization organization name (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + *
Status Code Description Response Headers
200 The SSO domains associated with the org. -
0 error response -
+ */ + public okhttp3.Call getSSODomainsCall(String organization, 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}/sso_domains" + .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getSSODomainsValidateBeforeCall(String organization, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'organization' is set + if (organization == null) { + throw new ApiException("Missing the required parameter 'organization' when calling getSSODomains(Async)"); + } + + + okhttp3.Call localVarCall = getSSODomainsCall(organization, _callback); + return localVarCall; + + } + + /** + * Lists all the SSO connections associated with the given organization. + * + * @param organization organization name (required) + * @return SSODomainConfigResponse + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + *
Status Code Description Response Headers
200 The SSO domains associated with the org. -
0 error response -
+ */ + public SSODomainConfigResponse getSSODomains(String organization) throws ApiException { + ApiResponse localVarResp = getSSODomainsWithHttpInfo(organization); + return localVarResp.getData(); + } + + /** + * Lists all the SSO connections associated with the given organization. + * + * @param organization organization name (required) + * @return ApiResponse<SSODomainConfigResponse> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + *
Status Code Description Response Headers
200 The SSO domains associated with the org. -
0 error response -
+ */ + public ApiResponse getSSODomainsWithHttpInfo(String organization) + throws ApiException { + okhttp3.Call localVarCall = getSSODomainsValidateBeforeCall(organization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Lists all the SSO connections associated with the given organization. + * + * @param organization organization name (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + *
Status Code Description Response Headers
200 The SSO domains associated with the org. -
0 error response -
+ */ + public okhttp3.Call getSSODomainsAsync( + String organization, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = getSSODomainsValidateBeforeCall(organization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateAWSAccessCredentials + * + * @param namespace namespace (required) + * @param name name (required) + * @param awsAccessCredentials aws credentials to update (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 AWS keys updated successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call updateAWSAccessCredentialsCall( + String namespace, + String name, + AWSAccessCredentials awsAccessCredentials, + 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 = awsAccessCredentials; + + // create path and map variables + String localVarPath = "/credentials/{namespace}/aws/{name}" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.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); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateAWSAccessCredentialsValidateBeforeCall(String namespace, String name, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling updateAWSAccessCredentials(Async)"); + } + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling updateAWSAccessCredentials(Async)"); + } + + // verify the required parameter 'awsAccessCredentials' is set + if (awsAccessCredentials == null) { + throw new ApiException("Missing the required parameter 'awsAccessCredentials' when calling updateAWSAccessCredentials(Async)"); + } + + + okhttp3.Call localVarCall = updateAWSAccessCredentialsCall(namespace, name, awsAccessCredentials, _callback); + return localVarCall; + + } + + /** + * Update aws keys or associated buckets. This will update the key associations for each array in + * the namespace + * + * @param namespace namespace (required) + * @param name name (required) + * @param awsAccessCredentials aws credentials to update (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 AWS keys updated successfully -
502 Bad Gateway -
0 error response -
+ */ + public void updateAWSAccessCredentials( + String namespace, String name, AWSAccessCredentials awsAccessCredentials) + throws ApiException { + updateAWSAccessCredentialsWithHttpInfo(namespace, name, awsAccessCredentials); + } + + /** + * Update aws keys or associated buckets. This will update the key associations for each array in + * the namespace + * + * @param namespace namespace (required) + * @param name name (required) + * @param awsAccessCredentials aws credentials to update (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 AWS keys updated successfully -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse updateAWSAccessCredentialsWithHttpInfo( + String namespace, String name, AWSAccessCredentials awsAccessCredentials) + throws ApiException { + okhttp3.Call localVarCall = updateAWSAccessCredentialsValidateBeforeCall(namespace, name, awsAccessCredentials, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) Update aws keys or associated buckets. This will update the key associations + * for each array in the namespace + * + * @param namespace namespace (required) + * @param name name (required) + * @param awsAccessCredentials aws credentials to update (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 AWS keys updated successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call updateAWSAccessCredentialsAsync( + String namespace, + String name, + AWSAccessCredentials awsAccessCredentials, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = updateAWSAccessCredentialsValidateBeforeCall(namespace, name, awsAccessCredentials, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for updateOrganization + * + * @param organization organization name or ID (required) + * @param organizationDetails organization details to update (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 organization updated successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call updateOrganizationCall( + String organization, OrganizationUpdate organizationDetails, 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 = organizationDetails; + + // create path and map variables + String localVarPath = "/organizations/{organization}" + .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.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); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateOrganizationValidateBeforeCall(String organization, OrganizationUpdate organizationDetails, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'organization' is set + if (organization == null) { + throw new ApiException("Missing the required parameter 'organization' when calling updateOrganization(Async)"); + } + + // verify the required parameter 'organizationDetails' is set + if (organizationDetails == null) { + throw new ApiException("Missing the required parameter 'organizationDetails' when calling updateOrganization(Async)"); + } + + + okhttp3.Call localVarCall = updateOrganizationCall(organization, organizationDetails, _callback); + return localVarCall; + + } + + /** + * update a organization + * + * @param organization organization name or ID (required) + * @param organizationDetails organization details to update (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 organization updated successfully -
502 Bad Gateway -
0 error response -
+ */ + public void updateOrganization(String organization, OrganizationUpdate organizationDetails) + throws ApiException { + updateOrganizationWithHttpInfo(organization, organizationDetails); + } + + /** + * update a organization + * + * @param organization organization name or ID (required) + * @param organizationDetails organization details to update (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 organization updated successfully -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse updateOrganizationWithHttpInfo( + String organization, OrganizationUpdate organizationDetails) throws ApiException { + okhttp3.Call localVarCall = updateOrganizationValidateBeforeCall(organization, organizationDetails, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) update a organization + * + * @param organization organization name or ID (required) + * @param organizationDetails organization details to update (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 organization updated successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call updateOrganizationAsync( + String organization, + OrganizationUpdate organizationDetails, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = updateOrganizationValidateBeforeCall(organization, organizationDetails, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for updateSSODomain + * + * @param organization organization name (required) + * @param uuid configuration ID (required) + * @param config The changes to make to the configuration. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + *
Status Code Description Response Headers
200 The updated details about the SSO connection. -
0 error response -
+ */ + public okhttp3.Call updateSSODomainCall( + String organization, String uuid, SSODomainConfig config, 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 = config; + + // create path and map variables + String localVarPath = "/organizations/{organization}/sso_domains/{uuid}" + .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())) + .replaceAll("\\{" + "uuid" + "\\}", localVarApiClient.escapeString(uuid.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); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateSSODomainValidateBeforeCall(String organization, String uuid, SSODomainConfig config, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'organization' is set + if (organization == null) { + throw new ApiException("Missing the required parameter 'organization' when calling updateSSODomain(Async)"); + } + + // verify the required parameter 'uuid' is set + if (uuid == null) { + throw new ApiException("Missing the required parameter 'uuid' when calling updateSSODomain(Async)"); + } + + // verify the required parameter 'config' is set + if (config == null) { + throw new ApiException("Missing the required parameter 'config' when calling updateSSODomain(Async)"); + } + + + okhttp3.Call localVarCall = updateSSODomainCall(organization, uuid, config, _callback); + return localVarCall; + + } + + /** + * Updates the configuration for the given SSO connection. + * + * @param organization organization name (required) + * @param uuid configuration ID (required) + * @param config The changes to make to the configuration. (required) + * @return SSODomainConfig + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + *
Status Code Description Response Headers
200 The updated details about the SSO connection. -
0 error response -
+ */ + public SSODomainConfig updateSSODomain(String organization, String uuid, SSODomainConfig config) + throws ApiException { + ApiResponse localVarResp = updateSSODomainWithHttpInfo(organization, uuid, config); + return localVarResp.getData(); + } + + /** + * Updates the configuration for the given SSO connection. + * + * @param organization organization name (required) + * @param uuid configuration ID (required) + * @param config The changes to make to the configuration. (required) + * @return ApiResponse<SSODomainConfig> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + *
Status Code Description Response Headers
200 The updated details about the SSO connection. -
0 error response -
+ */ + public ApiResponse updateSSODomainWithHttpInfo( + String organization, String uuid, SSODomainConfig config) throws ApiException { + okhttp3.Call localVarCall = updateSSODomainValidateBeforeCall(organization, uuid, config, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Updates the configuration for the given SSO connection. + * + * @param organization organization name (required) + * @param uuid configuration ID (required) + * @param config The changes to make to the configuration. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + *
Status Code Description Response Headers
200 The updated details about the SSO connection. -
0 error response -
+ */ + public okhttp3.Call updateSSODomainAsync( + String organization, + String uuid, + SSODomainConfig config, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = updateSSODomainValidateBeforeCall(organization, uuid, config, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateUserInOrganization + * + * @param organization organization name (required) + * @param username username to manipulate (required) + * @param user user details to update (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 user update in organization successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call updateUserInOrganizationCall( + String organization, String username, OrganizationUser user, 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 = user; + + // create path and map variables + String localVarPath = "/organizations/{organization}/{username}" + .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())) + .replaceAll("\\{" + "username" + "\\}", localVarApiClient.escapeString(username.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); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateUserInOrganizationValidateBeforeCall(String organization, String username, OrganizationUser user, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'organization' is set + if (organization == null) { + throw new ApiException("Missing the required parameter 'organization' when calling updateUserInOrganization(Async)"); + } + + // verify the required parameter 'username' is set + if (username == null) { + throw new ApiException("Missing the required parameter 'username' when calling updateUserInOrganization(Async)"); + } + + // verify the required parameter 'user' is set + if (user == null) { + throw new ApiException("Missing the required parameter 'user' when calling updateUserInOrganization(Async)"); + } + + + okhttp3.Call localVarCall = updateUserInOrganizationCall(organization, username, user, _callback); + return localVarCall; + + } + + /** + * update a user in an organization + * + * @param organization organization name (required) + * @param username username to manipulate (required) + * @param user user details to update (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 user update in organization successfully -
502 Bad Gateway -
0 error response -
+ */ + public void updateUserInOrganization(String organization, String username, OrganizationUser user) + throws ApiException { + updateUserInOrganizationWithHttpInfo(organization, username, user); + } + + /** + * update a user in an organization + * + * @param organization organization name (required) + * @param username username to manipulate (required) + * @param user user details to update (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 user update in organization successfully -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse updateUserInOrganizationWithHttpInfo( + String organization, String username, OrganizationUser user) throws ApiException { + okhttp3.Call localVarCall = updateUserInOrganizationValidateBeforeCall(organization, username, user, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) update a user in an organization + * + * @param organization organization name (required) + * @param username username to manipulate (required) + * @param user user details to update (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 user update in organization successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call updateUserInOrganizationAsync( + String organization, + String username, + OrganizationUser user, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = updateUserInOrganizationValidateBeforeCall(organization, username, user, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } +} diff --git a/src/main/java/io/tiledb/cloud/rest_api/Pair.java b/src/main/java/io/tiledb/cloud/rest_api/Pair.java index b71d75a..0ae02d8 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/Pair.java +++ b/src/main/java/io/tiledb/cloud/rest_api/Pair.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,7 +13,7 @@ package io.tiledb.cloud.rest_api; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class Pair { private String name = ""; private String value = ""; diff --git a/src/main/java/io/tiledb/cloud/rest_api/ProgressRequestBody.java b/src/main/java/io/tiledb/cloud/rest_api/ProgressRequestBody.java index 5671512..04eaa1a 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/ProgressRequestBody.java +++ b/src/main/java/io/tiledb/cloud/rest_api/ProgressRequestBody.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/io/tiledb/cloud/rest_api/ProgressResponseBody.java b/src/main/java/io/tiledb/cloud/rest_api/ProgressResponseBody.java index d47e955..85ab564 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/ProgressResponseBody.java +++ b/src/main/java/io/tiledb/cloud/rest_api/ProgressResponseBody.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/io/tiledb/cloud/rest_api/QueryApi.java b/src/main/java/io/tiledb/cloud/rest_api/QueryApi.java new file mode 100644 index 0000000..40c29de --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/QueryApi.java @@ -0,0 +1,1172 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.17.51 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api; + + +import com.google.gson.reflect.TypeToken; + + + +import java.io.File; +import io.tiledb.cloud.rest_api.model.Query; +import io.tiledb.cloud.rest_api.model.QueryJson; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class QueryApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public QueryApi() { + this(Configuration.getDefaultApiClient()); + } + + public QueryApi(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 finalizeQuery + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param type type of query (required) + * @param contentType Content Type of input and return mime (required) + * @param query query to run (required) + * @param xPayer Name of organization or user who should be charged for this request (optional) + * @param openAt open_at for array in unix epoch (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 query completed and results are returned in query object * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
204 query completed successfully with no return -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call finalizeQueryCall( + String namespace, + String array, + String type, + String contentType, + Query query, + String xPayer, + Integer openAt, + 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 = query; + + // create path and map variables + String localVarPath = "/arrays/{namespace}/{array}/query/finalize" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (type != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("type", type)); + } + + if (openAt != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("open_at", openAt)); + } + + if (contentType != null) { + localVarHeaderParams.put("Content-Type", localVarApiClient.parameterToString(contentType)); + } + + if (xPayer != null) { + localVarHeaderParams.put("X-Payer", localVarApiClient.parameterToString(xPayer)); + } + + final String[] localVarAccepts = { + "application/json", "application/capnp" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json", "application/capnp" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call finalizeQueryValidateBeforeCall(String namespace, String array, String type, String contentType, Query query, String xPayer, Integer openAt, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling finalizeQuery(Async)"); + } + + // verify the required parameter 'array' is set + if (array == null) { + throw new ApiException("Missing the required parameter 'array' when calling finalizeQuery(Async)"); + } + + // verify the required parameter 'type' is set + if (type == null) { + throw new ApiException("Missing the required parameter 'type' when calling finalizeQuery(Async)"); + } + + // verify the required parameter 'contentType' is set + if (contentType == null) { + throw new ApiException("Missing the required parameter 'contentType' when calling finalizeQuery(Async)"); + } + + // verify the required parameter 'query' is set + if (query == null) { + throw new ApiException("Missing the required parameter 'query' when calling finalizeQuery(Async)"); + } + + + okhttp3.Call localVarCall = finalizeQueryCall(namespace, array, type, contentType, query, xPayer, openAt, _callback); + return localVarCall; + + } + + /** + * send a query to run against a specified array/URI registered to a group/project + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param type type of query (required) + * @param contentType Content Type of input and return mime (required) + * @param query query to run (required) + * @param xPayer Name of organization or user who should be charged for this request (optional) + * @param openAt open_at for array in unix epoch (optional) + * @return Query + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 query completed and results are returned in query object * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
204 query completed successfully with no return -
502 Bad Gateway -
0 error response -
+ */ + public Query finalizeQuery( + String namespace, + String array, + String type, + String contentType, + Query query, + String xPayer, + Integer openAt) + throws ApiException { + ApiResponse localVarResp = finalizeQueryWithHttpInfo(namespace, array, type, contentType, query, xPayer, openAt); + return localVarResp.getData(); + } + + /** + * send a query to run against a specified array/URI registered to a group/project + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param type type of query (required) + * @param contentType Content Type of input and return mime (required) + * @param query query to run (required) + * @param xPayer Name of organization or user who should be charged for this request (optional) + * @param openAt open_at for array in unix epoch (optional) + * @return ApiResponse<Query> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 query completed and results are returned in query object * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
204 query completed successfully with no return -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse finalizeQueryWithHttpInfo( + String namespace, + String array, + String type, + String contentType, + Query query, + String xPayer, + Integer openAt) + throws ApiException { + okhttp3.Call localVarCall = finalizeQueryValidateBeforeCall(namespace, array, type, contentType, query, xPayer, openAt, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) send a query to run against a specified array/URI registered to a + * group/project + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param type type of query (required) + * @param contentType Content Type of input and return mime (required) + * @param query query to run (required) + * @param xPayer Name of organization or user who should be charged for this request (optional) + * @param openAt open_at for array in unix epoch (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 query completed and results are returned in query object * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
204 query completed successfully with no return -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call finalizeQueryAsync( + String namespace, + String array, + String type, + String contentType, + Query query, + String xPayer, + Integer openAt, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = finalizeQueryValidateBeforeCall(namespace, array, type, contentType, query, xPayer, openAt, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getEstResultSizes + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param type type of query (required) + * @param contentType Content Type of input and return mime (required) + * @param query query to run (required) + * @param xPayer Name of organization or user who should be charged for this request (optional) + * @param openAt open_at for array in unix epoch (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 query est result size computed and results are returned in query object * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
204 query completed successfully with no return -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getEstResultSizesCall( + String namespace, + String array, + String type, + String contentType, + Query query, + String xPayer, + Integer openAt, + 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 = query; + + // create path and map variables + String localVarPath = "/arrays/{namespace}/{array}/query/est_result_sizes" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (type != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("type", type)); + } + + if (openAt != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("open_at", openAt)); + } + + if (contentType != null) { + localVarHeaderParams.put("Content-Type", localVarApiClient.parameterToString(contentType)); + } + + if (xPayer != null) { + localVarHeaderParams.put("X-Payer", localVarApiClient.parameterToString(xPayer)); + } + + final String[] localVarAccepts = { + "application/json", "application/capnp" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json", "application/capnp" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getEstResultSizesValidateBeforeCall(String namespace, String array, String type, String contentType, Query query, String xPayer, Integer openAt, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling getEstResultSizes(Async)"); + } + + // verify the required parameter 'array' is set + if (array == null) { + throw new ApiException("Missing the required parameter 'array' when calling getEstResultSizes(Async)"); + } + + // verify the required parameter 'type' is set + if (type == null) { + throw new ApiException("Missing the required parameter 'type' when calling getEstResultSizes(Async)"); + } + + // verify the required parameter 'contentType' is set + if (contentType == null) { + throw new ApiException("Missing the required parameter 'contentType' when calling getEstResultSizes(Async)"); + } + + // verify the required parameter 'query' is set + if (query == null) { + throw new ApiException("Missing the required parameter 'query' when calling getEstResultSizes(Async)"); + } + + + okhttp3.Call localVarCall = getEstResultSizesCall(namespace, array, type, contentType, query, xPayer, openAt, _callback); + return localVarCall; + + } + + /** + * send a query to run against a specified array/URI registered to a group/project + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param type type of query (required) + * @param contentType Content Type of input and return mime (required) + * @param query query to run (required) + * @param xPayer Name of organization or user who should be charged for this request (optional) + * @param openAt open_at for array in unix epoch (optional) + * @return Query + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 query est result size computed and results are returned in query object * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
204 query completed successfully with no return -
502 Bad Gateway -
0 error response -
+ */ + public Query getEstResultSizes( + String namespace, + String array, + String type, + String contentType, + Query query, + String xPayer, + Integer openAt) + throws ApiException { + ApiResponse localVarResp = getEstResultSizesWithHttpInfo(namespace, array, type, contentType, query, xPayer, openAt); + return localVarResp.getData(); + } + + /** + * send a query to run against a specified array/URI registered to a group/project + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param type type of query (required) + * @param contentType Content Type of input and return mime (required) + * @param query query to run (required) + * @param xPayer Name of organization or user who should be charged for this request (optional) + * @param openAt open_at for array in unix epoch (optional) + * @return ApiResponse<Query> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 query est result size computed and results are returned in query object * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
204 query completed successfully with no return -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse getEstResultSizesWithHttpInfo( + String namespace, + String array, + String type, + String contentType, + Query query, + String xPayer, + Integer openAt) + throws ApiException { + okhttp3.Call localVarCall = getEstResultSizesValidateBeforeCall(namespace, array, type, contentType, query, xPayer, openAt, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) send a query to run against a specified array/URI registered to a + * group/project + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param type type of query (required) + * @param contentType Content Type of input and return mime (required) + * @param query query to run (required) + * @param xPayer Name of organization or user who should be charged for this request (optional) + * @param openAt open_at for array in unix epoch (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 query est result size computed and results are returned in query object * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
204 query completed successfully with no return -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getEstResultSizesAsync( + String namespace, + String array, + String type, + String contentType, + Query query, + String xPayer, + Integer openAt, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = getEstResultSizesValidateBeforeCall(namespace, array, type, contentType, query, xPayer, openAt, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getFile + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param contentType Content Type of input and return mime (required) + * @param xPayer Name of organization or user who should be charged for this request (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 query completed and result bytes are returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getFileCall( + String namespace, + String array, + String contentType, + String xPayer, + 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 = "/arrays/{namespace}/{array}/query/get_file" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (contentType != null) { + localVarHeaderParams.put("Content-Type", localVarApiClient.parameterToString(contentType)); + } + + if (xPayer != null) { + localVarHeaderParams.put("X-Payer", localVarApiClient.parameterToString(xPayer)); + } + + final String[] localVarAccepts = { + "application/x-ipynb+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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getFileValidateBeforeCall(String namespace, String array, String contentType, String xPayer, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling getFile(Async)"); + } + + // verify the required parameter 'array' is set + if (array == null) { + throw new ApiException("Missing the required parameter 'array' when calling getFile(Async)"); + } + + // verify the required parameter 'contentType' is set + if (contentType == null) { + throw new ApiException("Missing the required parameter 'contentType' when calling getFile(Async)"); + } + + + okhttp3.Call localVarCall = getFileCall(namespace, array, contentType, xPayer, _callback); + return localVarCall; + + } + + /** + * send a query to run against a specified array/URI registered to a group/project, returns file + * bytes + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param contentType Content Type of input and return mime (required) + * @param xPayer Name of organization or user who should be charged for this request (optional) + * @return File + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 query completed and result bytes are returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
502 Bad Gateway -
0 error response -
+ */ + public File getFile(String namespace, String array, String contentType, String xPayer) + throws ApiException { + ApiResponse localVarResp = getFileWithHttpInfo(namespace, array, contentType, xPayer); + return localVarResp.getData(); + } + + /** + * send a query to run against a specified array/URI registered to a group/project, returns file + * bytes + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param contentType Content Type of input and return mime (required) + * @param xPayer Name of organization or user who should be charged for this request (optional) + * @return ApiResponse<File> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 query completed and result bytes are returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse getFileWithHttpInfo( + String namespace, String array, String contentType, String xPayer) throws ApiException { + okhttp3.Call localVarCall = getFileValidateBeforeCall(namespace, array, contentType, xPayer, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) send a query to run against a specified array/URI registered to a + * group/project, returns file bytes + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param contentType Content Type of input and return mime (required) + * @param xPayer Name of organization or user who should be charged for this request (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 query completed and result bytes are returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getFileAsync( + String namespace, + String array, + String contentType, + String xPayer, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = getFileValidateBeforeCall(namespace, array, contentType, xPayer, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for submitQuery + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param type type of query (required) + * @param contentType Content Type of input and return mime (required) + * @param query query to run (required) + * @param xPayer Name of organization or user who should be charged for this request (optional) + * @param openAt open_at for array in unix epoch (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 query completed and results are returned in query object * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
204 query completed successfully with no return -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call submitQueryCall( + String namespace, + String array, + String type, + String contentType, + Query query, + String xPayer, + Integer openAt, + 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 = query; + + // create path and map variables + String localVarPath = "/arrays/{namespace}/{array}/query/submit" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (type != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("type", type)); + } + + if (openAt != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("open_at", openAt)); + } + + if (contentType != null) { + localVarHeaderParams.put("Content-Type", localVarApiClient.parameterToString(contentType)); + } + + if (xPayer != null) { + localVarHeaderParams.put("X-Payer", localVarApiClient.parameterToString(xPayer)); + } + + final String[] localVarAccepts = { + "application/json", "application/capnp" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json", "application/capnp" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call submitQueryValidateBeforeCall(String namespace, String array, String type, String contentType, Query query, String xPayer, Integer openAt, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling submitQuery(Async)"); + } + + // verify the required parameter 'array' is set + if (array == null) { + throw new ApiException("Missing the required parameter 'array' when calling submitQuery(Async)"); + } + + // verify the required parameter 'type' is set + if (type == null) { + throw new ApiException("Missing the required parameter 'type' when calling submitQuery(Async)"); + } + + // verify the required parameter 'contentType' is set + if (contentType == null) { + throw new ApiException("Missing the required parameter 'contentType' when calling submitQuery(Async)"); + } + + // verify the required parameter 'query' is set + if (query == null) { + throw new ApiException("Missing the required parameter 'query' when calling submitQuery(Async)"); + } + + + okhttp3.Call localVarCall = submitQueryCall(namespace, array, type, contentType, query, xPayer, openAt, _callback); + return localVarCall; + + } + + /** + * send a query to run against a specified array/URI registered to a group/project + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param type type of query (required) + * @param contentType Content Type of input and return mime (required) + * @param query query to run (required) + * @param xPayer Name of organization or user who should be charged for this request (optional) + * @param openAt open_at for array in unix epoch (optional) + * @return Query + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 query completed and results are returned in query object * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
204 query completed successfully with no return -
502 Bad Gateway -
0 error response -
+ */ + public Query submitQuery( + String namespace, + String array, + String type, + String contentType, + Query query, + String xPayer, + Integer openAt) + throws ApiException { + ApiResponse localVarResp = submitQueryWithHttpInfo(namespace, array, type, contentType, query, xPayer, openAt); + return localVarResp.getData(); + } + + /** + * send a query to run against a specified array/URI registered to a group/project + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param type type of query (required) + * @param contentType Content Type of input and return mime (required) + * @param query query to run (required) + * @param xPayer Name of organization or user who should be charged for this request (optional) + * @param openAt open_at for array in unix epoch (optional) + * @return ApiResponse<Query> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 query completed and results are returned in query object * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
204 query completed successfully with no return -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse submitQueryWithHttpInfo( + String namespace, + String array, + String type, + String contentType, + Query query, + String xPayer, + Integer openAt) + throws ApiException { + okhttp3.Call localVarCall = submitQueryValidateBeforeCall(namespace, array, type, contentType, query, xPayer, openAt, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) send a query to run against a specified array/URI registered to a + * group/project + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param type type of query (required) + * @param contentType Content Type of input and return mime (required) + * @param query query to run (required) + * @param xPayer Name of organization or user who should be charged for this request (optional) + * @param openAt open_at for array in unix epoch (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 query completed and results are returned in query object * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
204 query completed successfully with no return -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call submitQueryAsync( + String namespace, + String array, + String type, + String contentType, + Query query, + String xPayer, + Integer openAt, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = submitQueryValidateBeforeCall(namespace, array, type, contentType, query, xPayer, openAt, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for submitQueryJson + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param contentType Content Type of input and return mime (required) + * @param queryJson query to run (required) + * @param xPayer Name of organization or user who should be charged for this request (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 query completed and results are returned in JSON format * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call submitQueryJsonCall( + String namespace, + String array, + String contentType, + QueryJson queryJson, + String xPayer, + 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 = queryJson; + + // create path and map variables + String localVarPath = "/arrays/{namespace}/{array}/query/submit_query_json" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (contentType != null) { + localVarHeaderParams.put("Content-Type", localVarApiClient.parameterToString(contentType)); + } + + if (xPayer != null) { + localVarHeaderParams.put("X-Payer", localVarApiClient.parameterToString(xPayer)); + } + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call submitQueryJsonValidateBeforeCall(String namespace, String array, String contentType, QueryJson queryJson, String xPayer, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling submitQueryJson(Async)"); + } + + // verify the required parameter 'array' is set + if (array == null) { + throw new ApiException("Missing the required parameter 'array' when calling submitQueryJson(Async)"); + } + + // verify the required parameter 'contentType' is set + if (contentType == null) { + throw new ApiException("Missing the required parameter 'contentType' when calling submitQueryJson(Async)"); + } + + // verify the required parameter 'queryJson' is set + if (queryJson == null) { + throw new ApiException("Missing the required parameter 'queryJson' when calling submitQueryJson(Async)"); + } + + + okhttp3.Call localVarCall = submitQueryJsonCall(namespace, array, contentType, queryJson, xPayer, _callback); + return localVarCall; + + } + + /** + * send a query to run against a specified array/URI registered to a group/project, returns JSON + * results + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param contentType Content Type of input and return mime (required) + * @param queryJson query to run (required) + * @param xPayer Name of organization or user who should be charged for this request (optional) + * @return Object + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 query completed and results are returned in JSON format * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
502 Bad Gateway -
0 error response -
+ */ + public Object submitQueryJson( + String namespace, String array, String contentType, QueryJson queryJson, String xPayer) + throws ApiException { + ApiResponse localVarResp = submitQueryJsonWithHttpInfo(namespace, array, contentType, queryJson, xPayer); + return localVarResp.getData(); + } + + /** + * send a query to run against a specified array/URI registered to a group/project, returns JSON + * results + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param contentType Content Type of input and return mime (required) + * @param queryJson query to run (required) + * @param xPayer Name of organization or user who should be charged for this request (optional) + * @return ApiResponse<Object> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 query completed and results are returned in JSON format * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse submitQueryJsonWithHttpInfo( + String namespace, String array, String contentType, QueryJson queryJson, String xPayer) + throws ApiException { + okhttp3.Call localVarCall = submitQueryJsonValidateBeforeCall(namespace, array, contentType, queryJson, xPayer, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) send a query to run against a specified array/URI registered to a + * group/project, returns JSON results + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param contentType Content Type of input and return mime (required) + * @param queryJson query to run (required) + * @param xPayer Name of organization or user who should be charged for this request (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 query completed and results are returned in JSON format * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call submitQueryJsonAsync( + String namespace, + String array, + String contentType, + QueryJson queryJson, + String xPayer, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = submitQueryJsonValidateBeforeCall(namespace, array, contentType, queryJson, xPayer, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/src/main/java/io/tiledb/cloud/rest_api/RegisteredTaskGraphsApi.java b/src/main/java/io/tiledb/cloud/rest_api/RegisteredTaskGraphsApi.java new file mode 100644 index 0000000..42acfb5 --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/RegisteredTaskGraphsApi.java @@ -0,0 +1,1020 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.17.51 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api; + + +import com.google.gson.reflect.TypeToken; + + + +import io.tiledb.cloud.rest_api.model.RegisteredTaskGraph; +import io.tiledb.cloud.rest_api.model.TaskGraphSharing; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class RegisteredTaskGraphsApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public RegisteredTaskGraphsApi() { + this(Configuration.getDefaultApiClient()); + } + + public RegisteredTaskGraphsApi(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 deleteRegisteredTaskGraph + * + * @param namespace The namespace that owns this registered UDF. (required) + * @param name The name of the registered task graph. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 Task graph successfully deleted. -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call deleteRegisteredTaskGraphCall( + String namespace, String name, 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 = "/taskgraphs/{namespace}/registered/{name}" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteRegisteredTaskGraphValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteRegisteredTaskGraph(Async)"); + } + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteRegisteredTaskGraph(Async)"); + } + + + okhttp3.Call localVarCall = deleteRegisteredTaskGraphCall(namespace, name, _callback); + return localVarCall; + + } + + /** + * Delete the given registered task graph. + * + * @param namespace The namespace that owns this registered UDF. (required) + * @param name The name of the registered task graph. (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 Task graph successfully deleted. -
502 Bad Gateway -
0 error response -
+ */ + public void deleteRegisteredTaskGraph(String namespace, String name) throws ApiException { + deleteRegisteredTaskGraphWithHttpInfo(namespace, name); + } + + /** + * Delete the given registered task graph. + * + * @param namespace The namespace that owns this registered UDF. (required) + * @param name The name of the registered task graph. (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 Task graph successfully deleted. -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse deleteRegisteredTaskGraphWithHttpInfo(String namespace, String name) + throws ApiException { + okhttp3.Call localVarCall = deleteRegisteredTaskGraphValidateBeforeCall(namespace, name, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) Delete the given registered task graph. + * + * @param namespace The namespace that owns this registered UDF. (required) + * @param name The name of the registered task graph. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 Task graph successfully deleted. -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call deleteRegisteredTaskGraphAsync( + String namespace, String name, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteRegisteredTaskGraphValidateBeforeCall(namespace, name, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for getRegisteredTaskGraph + * + * @param namespace The namespace that owns this registered UDF. (required) + * @param name The name of the registered task graph. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 The contents of the registered task graph. -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getRegisteredTaskGraphCall( + String namespace, String name, 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 = "/taskgraphs/{namespace}/registered/{name}" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getRegisteredTaskGraphValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling getRegisteredTaskGraph(Async)"); + } + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling getRegisteredTaskGraph(Async)"); + } + + + okhttp3.Call localVarCall = getRegisteredTaskGraphCall(namespace, name, _callback); + return localVarCall; + + } + + /** + * Fetch the contents of this registered task graph. + * + * @param namespace The namespace that owns this registered UDF. (required) + * @param name The name of the registered task graph. (required) + * @return RegisteredTaskGraph + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 The contents of the registered task graph. -
502 Bad Gateway -
0 error response -
+ */ + public RegisteredTaskGraph getRegisteredTaskGraph(String namespace, String name) + throws ApiException { + ApiResponse localVarResp = getRegisteredTaskGraphWithHttpInfo(namespace, name); + return localVarResp.getData(); + } + + /** + * Fetch the contents of this registered task graph. + * + * @param namespace The namespace that owns this registered UDF. (required) + * @param name The name of the registered task graph. (required) + * @return ApiResponse<RegisteredTaskGraph> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 The contents of the registered task graph. -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse getRegisteredTaskGraphWithHttpInfo( + String namespace, String name) throws ApiException { + okhttp3.Call localVarCall = getRegisteredTaskGraphValidateBeforeCall(namespace, name, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Fetch the contents of this registered task graph. + * + * @param namespace The namespace that owns this registered UDF. (required) + * @param name The name of the registered task graph. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 The contents of the registered task graph. -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getRegisteredTaskGraphAsync( + String namespace, String name, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = getRegisteredTaskGraphValidateBeforeCall(namespace, name, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getRegisteredTaskGraphSharingPolicies + * + * @param namespace The namespace that owns the registered task graph. (required) + * @param name The name of the task graph. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 List of all specific sharing policies -
404 The task graph does not exist (or the user does not have permission to view policies) -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getRegisteredTaskGraphSharingPoliciesCall( + String namespace, String name, 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 = "/taskgraphs/{namespace}/registered/{name}/share" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getRegisteredTaskGraphSharingPoliciesValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling getRegisteredTaskGraphSharingPolicies(Async)"); + } + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling getRegisteredTaskGraphSharingPolicies(Async)"); + } + + + okhttp3.Call localVarCall = getRegisteredTaskGraphSharingPoliciesCall(namespace, name, _callback); + return localVarCall; + + } + + /** + * Get sharing policies for the task graph. + * + * @param namespace The namespace that owns the registered task graph. (required) + * @param name The name of the task graph. (required) + * @return List<TaskGraphSharing> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 List of all specific sharing policies -
404 The task graph does not exist (or the user does not have permission to view policies) -
502 Bad Gateway -
0 error response -
+ */ + public List getRegisteredTaskGraphSharingPolicies(String namespace, String name) + throws ApiException { + ApiResponse> localVarResp = getRegisteredTaskGraphSharingPoliciesWithHttpInfo(namespace, name); + return localVarResp.getData(); + } + + /** + * Get sharing policies for the task graph. + * + * @param namespace The namespace that owns the registered task graph. (required) + * @param name The name of the task graph. (required) + * @return ApiResponse<List<TaskGraphSharing>> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 List of all specific sharing policies -
404 The task graph does not exist (or the user does not have permission to view policies) -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse> getRegisteredTaskGraphSharingPoliciesWithHttpInfo( + String namespace, String name) throws ApiException { + okhttp3.Call localVarCall = getRegisteredTaskGraphSharingPoliciesValidateBeforeCall(namespace, name, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Get sharing policies for the task graph. + * + * @param namespace The namespace that owns the registered task graph. (required) + * @param name The name of the task graph. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 List of all specific sharing policies -
404 The task graph does not exist (or the user does not have permission to view policies) -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getRegisteredTaskGraphSharingPoliciesAsync( + String namespace, String name, final ApiCallback> _callback) + throws ApiException { + + okhttp3.Call localVarCall = getRegisteredTaskGraphSharingPoliciesValidateBeforeCall(namespace, name, _callback); + Type localVarReturnType = new TypeToken>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for registerRegisteredTaskGraph + * + * @param namespace The namespace that owns this registered UDF. (required) + * @param name The name of the registered task graph. (required) + * @param graph Task graph to register. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 Task graph registered successfully. -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call registerRegisteredTaskGraphCall( + String namespace, String name, RegisteredTaskGraph graph, 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 = graph; + + // create path and map variables + String localVarPath = "/taskgraphs/{namespace}/registered/{name}" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.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); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call registerRegisteredTaskGraphValidateBeforeCall(String namespace, String name, RegisteredTaskGraph graph, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling registerRegisteredTaskGraph(Async)"); + } + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling registerRegisteredTaskGraph(Async)"); + } + + + okhttp3.Call localVarCall = registerRegisteredTaskGraphCall(namespace, name, graph, _callback); + return localVarCall; + + } + + /** + * Register a task graph in the given namespace, with the given name. + * + * @param namespace The namespace that owns this registered UDF. (required) + * @param name The name of the registered task graph. (required) + * @param graph Task graph to register. (optional) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 Task graph registered successfully. -
502 Bad Gateway -
0 error response -
+ */ + public void registerRegisteredTaskGraph(String namespace, String name, RegisteredTaskGraph graph) + throws ApiException { + registerRegisteredTaskGraphWithHttpInfo(namespace, name, graph); + } + + /** + * Register a task graph in the given namespace, with the given name. + * + * @param namespace The namespace that owns this registered UDF. (required) + * @param name The name of the registered task graph. (required) + * @param graph Task graph to register. (optional) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 Task graph registered successfully. -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse registerRegisteredTaskGraphWithHttpInfo( + String namespace, String name, RegisteredTaskGraph graph) throws ApiException { + okhttp3.Call localVarCall = registerRegisteredTaskGraphValidateBeforeCall(namespace, name, graph, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) Register a task graph in the given namespace, with the given name. + * + * @param namespace The namespace that owns this registered UDF. (required) + * @param name The name of the registered task graph. (required) + * @param graph Task graph to register. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 Task graph registered successfully. -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call registerRegisteredTaskGraphAsync( + String namespace, String name, RegisteredTaskGraph graph, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = registerRegisteredTaskGraphValidateBeforeCall(namespace, name, graph, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for shareRegisteredTaskGraph + * + * @param namespace The namespace that owns the registered task graph. (required) + * @param name The name of the task graph. (required) + * @param taskGraphSharing Namespace and list of permissions to share with. An empty list of + * permissions will remove the namespace; if permissions already exist they will be deleted + * then new ones added. In the event of a failure, the new policies will be rolled back to + * prevent partial policies, and it's likely the UDF will not be shared with the namespace + * at all. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
204 UDF shared successfully -
404 UDF does not exist or user does not have permissions to share UDF -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call shareRegisteredTaskGraphCall( + String namespace, String name, TaskGraphSharing taskGraphSharing, 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 = taskGraphSharing; + + // create path and map variables + String localVarPath = "/taskgraphs/{namespace}/registered/{name}/share" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.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); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call shareRegisteredTaskGraphValidateBeforeCall(String namespace, String name, TaskGraphSharing taskGraphSharing, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling shareRegisteredTaskGraph(Async)"); + } + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling shareRegisteredTaskGraph(Async)"); + } + + // verify the required parameter 'taskGraphSharing' is set + if (taskGraphSharing == null) { + throw new ApiException("Missing the required parameter 'taskGraphSharing' when calling shareRegisteredTaskGraph(Async)"); + } + + + okhttp3.Call localVarCall = shareRegisteredTaskGraphCall(namespace, name, taskGraphSharing, _callback); + return localVarCall; + + } + + /** + * Share a task graph. + * + * @param namespace The namespace that owns the registered task graph. (required) + * @param name The name of the task graph. (required) + * @param taskGraphSharing Namespace and list of permissions to share with. An empty list of + * permissions will remove the namespace; if permissions already exist they will be deleted + * then new ones added. In the event of a failure, the new policies will be rolled back to + * prevent partial policies, and it's likely the UDF will not be shared with the namespace + * at all. (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
204 UDF shared successfully -
404 UDF does not exist or user does not have permissions to share UDF -
502 Bad Gateway -
0 error response -
+ */ + public void shareRegisteredTaskGraph( + String namespace, String name, TaskGraphSharing taskGraphSharing) throws ApiException { + shareRegisteredTaskGraphWithHttpInfo(namespace, name, taskGraphSharing); + } + + /** + * Share a task graph. + * + * @param namespace The namespace that owns the registered task graph. (required) + * @param name The name of the task graph. (required) + * @param taskGraphSharing Namespace and list of permissions to share with. An empty list of + * permissions will remove the namespace; if permissions already exist they will be deleted + * then new ones added. In the event of a failure, the new policies will be rolled back to + * prevent partial policies, and it's likely the UDF will not be shared with the namespace + * at all. (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
204 UDF shared successfully -
404 UDF does not exist or user does not have permissions to share UDF -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse shareRegisteredTaskGraphWithHttpInfo( + String namespace, String name, TaskGraphSharing taskGraphSharing) throws ApiException { + okhttp3.Call localVarCall = shareRegisteredTaskGraphValidateBeforeCall(namespace, name, taskGraphSharing, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) Share a task graph. + * + * @param namespace The namespace that owns the registered task graph. (required) + * @param name The name of the task graph. (required) + * @param taskGraphSharing Namespace and list of permissions to share with. An empty list of + * permissions will remove the namespace; if permissions already exist they will be deleted + * then new ones added. In the event of a failure, the new policies will be rolled back to + * prevent partial policies, and it's likely the UDF will not be shared with the namespace + * at all. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
204 UDF shared successfully -
404 UDF does not exist or user does not have permissions to share UDF -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call shareRegisteredTaskGraphAsync( + String namespace, + String name, + TaskGraphSharing taskGraphSharing, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = shareRegisteredTaskGraphValidateBeforeCall(namespace, name, taskGraphSharing, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for updateRegisteredTaskGraph + * + * @param namespace The namespace that owns this registered UDF. (required) + * @param name The name of the registered task graph. (required) + * @param graph The new contents of the task graph. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 Task graph updated successfully. -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call updateRegisteredTaskGraphCall( + String namespace, String name, RegisteredTaskGraph graph, 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 = graph; + + // create path and map variables + String localVarPath = "/taskgraphs/{namespace}/registered/{name}" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.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); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateRegisteredTaskGraphValidateBeforeCall(String namespace, String name, RegisteredTaskGraph graph, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling updateRegisteredTaskGraph(Async)"); + } + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling updateRegisteredTaskGraph(Async)"); + } + + + okhttp3.Call localVarCall = updateRegisteredTaskGraphCall(namespace, name, graph, _callback); + return localVarCall; + + } + + /** + * Update the contents of an existing registered task graph. + * + * @param namespace The namespace that owns this registered UDF. (required) + * @param name The name of the registered task graph. (required) + * @param graph The new contents of the task graph. (optional) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 Task graph updated successfully. -
502 Bad Gateway -
0 error response -
+ */ + public void updateRegisteredTaskGraph(String namespace, String name, RegisteredTaskGraph graph) + throws ApiException { + updateRegisteredTaskGraphWithHttpInfo(namespace, name, graph); + } + + /** + * Update the contents of an existing registered task graph. + * + * @param namespace The namespace that owns this registered UDF. (required) + * @param name The name of the registered task graph. (required) + * @param graph The new contents of the task graph. (optional) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 Task graph updated successfully. -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse updateRegisteredTaskGraphWithHttpInfo( + String namespace, String name, RegisteredTaskGraph graph) throws ApiException { + okhttp3.Call localVarCall = updateRegisteredTaskGraphValidateBeforeCall(namespace, name, graph, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) Update the contents of an existing registered task graph. + * + * @param namespace The namespace that owns this registered UDF. (required) + * @param name The name of the registered task graph. (required) + * @param graph The new contents of the task graph. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 Task graph updated successfully. -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call updateRegisteredTaskGraphAsync( + String namespace, String name, RegisteredTaskGraph graph, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = updateRegisteredTaskGraphValidateBeforeCall(namespace, name, graph, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } +} diff --git a/src/main/java/io/tiledb/cloud/rest_api/SqlApi.java b/src/main/java/io/tiledb/cloud/rest_api/SqlApi.java new file mode 100644 index 0000000..bdb4d6c --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/SqlApi.java @@ -0,0 +1,239 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.17.51 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api; + + +import com.google.gson.reflect.TypeToken; + + + +import io.tiledb.cloud.rest_api.model.SQLParameters; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class SqlApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public SqlApi() { + this(Configuration.getDefaultApiClient()); + } + + public SqlApi(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 runSQL + * + * @param namespace namespace to run task under is in (an organization name or user's + * username) (required) + * @param sql sql being submitted (required) + * @param acceptEncoding Encoding to use (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 JSON results in array of objects form, if the query returns results * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
204 SQL executed successfully * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call runSQLCall( + String namespace, SQLParameters sql, String acceptEncoding, 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 = sql; + + // create path and map variables + String localVarPath = "/sql/{namespace}" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (acceptEncoding != null) { + localVarHeaderParams.put("Accept-Encoding", localVarApiClient.parameterToString(acceptEncoding)); + } + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call runSQLValidateBeforeCall(String namespace, SQLParameters sql, String acceptEncoding, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling runSQL(Async)"); + } + + // verify the required parameter 'sql' is set + if (sql == null) { + throw new ApiException("Missing the required parameter 'sql' when calling runSQL(Async)"); + } + + + okhttp3.Call localVarCall = runSQLCall(namespace, sql, acceptEncoding, _callback); + return localVarCall; + + } + + /** + * Run a sql query + * + * @param namespace namespace to run task under is in (an organization name or user's + * username) (required) + * @param sql sql being submitted (required) + * @param acceptEncoding Encoding to use (optional) + * @return List<Object> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 JSON results in array of objects form, if the query returns results * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
204 SQL executed successfully * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
502 Bad Gateway -
0 error response -
+ */ + public List runSQL(String namespace, SQLParameters sql, String acceptEncoding) + throws ApiException { + ApiResponse> localVarResp = runSQLWithHttpInfo(namespace, sql, acceptEncoding); + return localVarResp.getData(); + } + + /** + * Run a sql query + * + * @param namespace namespace to run task under is in (an organization name or user's + * username) (required) + * @param sql sql being submitted (required) + * @param acceptEncoding Encoding to use (optional) + * @return ApiResponse<List<Object>> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 JSON results in array of objects form, if the query returns results * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
204 SQL executed successfully * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse> runSQLWithHttpInfo( + String namespace, SQLParameters sql, String acceptEncoding) throws ApiException { + okhttp3.Call localVarCall = runSQLValidateBeforeCall(namespace, sql, acceptEncoding, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Run a sql query + * + * @param namespace namespace to run task under is in (an organization name or user's + * username) (required) + * @param sql sql being submitted (required) + * @param acceptEncoding Encoding to use (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 JSON results in array of objects form, if the query returns results * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
204 SQL executed successfully * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call runSQLAsync( + String namespace, + SQLParameters sql, + String acceptEncoding, + final ApiCallback> _callback) + throws ApiException { + + okhttp3.Call localVarCall = runSQLValidateBeforeCall(namespace, sql, acceptEncoding, _callback); + Type localVarReturnType = new TypeToken>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/src/main/java/io/tiledb/cloud/rest_api/StatsApi.java b/src/main/java/io/tiledb/cloud/rest_api/StatsApi.java new file mode 100644 index 0000000..554f74d --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/StatsApi.java @@ -0,0 +1,196 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.17.51 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api; + + +import com.google.gson.reflect.TypeToken; + + + +import io.tiledb.cloud.rest_api.model.GetTiledbStats200Response; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class StatsApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public StatsApi() { + this(Configuration.getDefaultApiClient()); + } + + public StatsApi(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 getTiledbStats + * + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 stats -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getTiledbStatsCall(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 = "/.stats"; + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getTiledbStatsValidateBeforeCall(final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = getTiledbStatsCall(_callback); + return localVarCall; + + } + + /** + * Fetch libtiledb stat + * + * @return GetTiledbStats200Response + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 stats -
502 Bad Gateway -
0 error response -
+ */ + public GetTiledbStats200Response getTiledbStats() throws ApiException { + ApiResponse localVarResp = getTiledbStatsWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * Fetch libtiledb stat + * + * @return ApiResponse<GetTiledbStats200Response> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 stats -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse getTiledbStatsWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getTiledbStatsValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Fetch libtiledb stat + * + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 stats -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getTiledbStatsAsync(final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = getTiledbStatsValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/src/main/java/io/tiledb/cloud/rest_api/StringUtil.java b/src/main/java/io/tiledb/cloud/rest_api/StringUtil.java index 6c5731f..ed2d0d5 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/StringUtil.java +++ b/src/main/java/io/tiledb/cloud/rest_api/StringUtil.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import java.util.Collection; import java.util.Iterator; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/src/main/java/io/tiledb/cloud/rest_api/TaskGraphLogsApi.java b/src/main/java/io/tiledb/cloud/rest_api/TaskGraphLogsApi.java new file mode 100644 index 0000000..fb85166 --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/TaskGraphLogsApi.java @@ -0,0 +1,1570 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.17.51 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api; + + +import com.google.gson.reflect.TypeToken; + + + +import java.time.OffsetDateTime; +import io.tiledb.cloud.rest_api.model.TaskGraphClientNodeStatus; +import io.tiledb.cloud.rest_api.model.TaskGraphLog; +import io.tiledb.cloud.rest_api.model.TaskGraphLogsData; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class TaskGraphLogsApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public TaskGraphLogsApi() { + this(Configuration.getDefaultApiClient()); + } + + public TaskGraphLogsApi(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 createTaskGraphLog + * + * @param namespace The namespace that will own this task graph log. (required) + * @param log (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
201 The task graph was created. The returned TaskGraphLog will include the data the client sent, with the server-defined fields added in. -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call createTaskGraphLogCall( + String namespace, TaskGraphLog log, 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 = log; + + // create path and map variables + String localVarPath = "/taskgraphs/{namespace}/log" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.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); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createTaskGraphLogValidateBeforeCall(String namespace, TaskGraphLog log, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling createTaskGraphLog(Async)"); + } + + // verify the required parameter 'log' is set + if (log == null) { + throw new ApiException("Missing the required parameter 'log' when calling createTaskGraphLog(Async)"); + } + + + okhttp3.Call localVarCall = createTaskGraphLogCall(namespace, log, _callback); + return localVarCall; + + } + + /** + * Create a task graph log. + * + * @param namespace The namespace that will own this task graph log. (required) + * @param log (required) + * @return TaskGraphLog + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
201 The task graph was created. The returned TaskGraphLog will include the data the client sent, with the server-defined fields added in. -
502 Bad Gateway -
0 error response -
+ */ + public TaskGraphLog createTaskGraphLog(String namespace, TaskGraphLog log) throws ApiException { + ApiResponse localVarResp = createTaskGraphLogWithHttpInfo(namespace, log); + return localVarResp.getData(); + } + + /** + * Create a task graph log. + * + * @param namespace The namespace that will own this task graph log. (required) + * @param log (required) + * @return ApiResponse<TaskGraphLog> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
201 The task graph was created. The returned TaskGraphLog will include the data the client sent, with the server-defined fields added in. -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse createTaskGraphLogWithHttpInfo( + String namespace, TaskGraphLog log) throws ApiException { + okhttp3.Call localVarCall = createTaskGraphLogValidateBeforeCall(namespace, log, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Create a task graph log. + * + * @param namespace The namespace that will own this task graph log. (required) + * @param log (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
201 The task graph was created. The returned TaskGraphLog will include the data the client sent, with the server-defined fields added in. -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call createTaskGraphLogAsync( + String namespace, TaskGraphLog log, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = createTaskGraphLogValidateBeforeCall(namespace, log, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getTaskGraphLog + * + * @param namespace The namespace that owns this task graph log. (required) + * @param id The UUID of the task graph log entry. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Information about the execution of a single task graph. -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getTaskGraphLogCall(String namespace, String id, 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 = "/taskgraphs/{namespace}/logs/{id}" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getTaskGraphLogValidateBeforeCall(String namespace, String id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling getTaskGraphLog(Async)"); + } + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling getTaskGraphLog(Async)"); + } + + + okhttp3.Call localVarCall = getTaskGraphLogCall(namespace, id, _callback); + return localVarCall; + + } + + /** + * Fetch information about a single task graph execution. + * + * @param namespace The namespace that owns this task graph log. (required) + * @param id The UUID of the task graph log entry. (required) + * @return TaskGraphLog + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Information about the execution of a single task graph. -
502 Bad Gateway -
0 error response -
+ */ + public TaskGraphLog getTaskGraphLog(String namespace, String id) throws ApiException { + ApiResponse localVarResp = getTaskGraphLogWithHttpInfo(namespace, id); + return localVarResp.getData(); + } + + /** + * Fetch information about a single task graph execution. + * + * @param namespace The namespace that owns this task graph log. (required) + * @param id The UUID of the task graph log entry. (required) + * @return ApiResponse<TaskGraphLog> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Information about the execution of a single task graph. -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse getTaskGraphLogWithHttpInfo(String namespace, String id) + throws ApiException { + okhttp3.Call localVarCall = getTaskGraphLogValidateBeforeCall(namespace, id, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Fetch information about a single task graph execution. + * + * @param namespace The namespace that owns this task graph log. (required) + * @param id The UUID of the task graph log entry. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Information about the execution of a single task graph. -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getTaskGraphLogAsync( + String namespace, String id, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getTaskGraphLogValidateBeforeCall(namespace, id, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listTaskGraphLogs + * + * @param namespace Include logs for this namespace. (optional) + * @param createdBy Include logs from only this user. (optional) + * @param status Filter to only return these statuses (optional) + * @param search search string that will look at name. (optional) + * @param startTime Include logs created after this time. (optional) + * @param endTime Include logs created before this time. (optional) + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 The task graph logs that matched the user's query. -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call listTaskGraphLogsCall( + String namespace, + String createdBy, + String status, + String search, + OffsetDateTime startTime, + OffsetDateTime endTime, + Integer page, + Integer perPage, + 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 = "/taskgraphs/logs"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (namespace != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("namespace", namespace)); + } + + if (createdBy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("created_by", createdBy)); + } + + if (status != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("status", status)); + } + + if (search != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("search", search)); + } + + if (startTime != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("start_time", startTime)); + } + + if (endTime != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("end_time", endTime)); + } + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + if (perPage != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("per_page", perPage)); + } + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listTaskGraphLogsValidateBeforeCall(String namespace, String createdBy, String status, String search, OffsetDateTime startTime, OffsetDateTime endTime, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = listTaskGraphLogsCall(namespace, createdBy, status, search, startTime, endTime, page, perPage, _callback); + return localVarCall; + + } + + /** + * Fetch the task graph logs of a namespace the user has access to. The returned entries will + * include only summary data, and will not include information about the individual tasks that + * were executed. (This information is available when requesting an individual task graph log.) + * Entries in the response are ordered from newest to oldest. Pagination parameters work as in + * other API methods; see PaginationMetadata. + * + * @param namespace Include logs for this namespace. (optional) + * @param createdBy Include logs from only this user. (optional) + * @param status Filter to only return these statuses (optional) + * @param search search string that will look at name. (optional) + * @param startTime Include logs created after this time. (optional) + * @param endTime Include logs created before this time. (optional) + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @return TaskGraphLogsData + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 The task graph logs that matched the user's query. -
502 Bad Gateway -
0 error response -
+ */ + public TaskGraphLogsData listTaskGraphLogs( + String namespace, + String createdBy, + String status, + String search, + OffsetDateTime startTime, + OffsetDateTime endTime, + Integer page, + Integer perPage) + throws ApiException { + ApiResponse localVarResp = listTaskGraphLogsWithHttpInfo(namespace, createdBy, status, search, startTime, endTime, page, perPage); + return localVarResp.getData(); + } + + /** + * Fetch the task graph logs of a namespace the user has access to. The returned entries will + * include only summary data, and will not include information about the individual tasks that + * were executed. (This information is available when requesting an individual task graph log.) + * Entries in the response are ordered from newest to oldest. Pagination parameters work as in + * other API methods; see PaginationMetadata. + * + * @param namespace Include logs for this namespace. (optional) + * @param createdBy Include logs from only this user. (optional) + * @param status Filter to only return these statuses (optional) + * @param search search string that will look at name. (optional) + * @param startTime Include logs created after this time. (optional) + * @param endTime Include logs created before this time. (optional) + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @return ApiResponse<TaskGraphLogsData> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 The task graph logs that matched the user's query. -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse listTaskGraphLogsWithHttpInfo( + String namespace, + String createdBy, + String status, + String search, + OffsetDateTime startTime, + OffsetDateTime endTime, + Integer page, + Integer perPage) + throws ApiException { + okhttp3.Call localVarCall = listTaskGraphLogsValidateBeforeCall(namespace, createdBy, status, search, startTime, endTime, page, perPage, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Fetch the task graph logs of a namespace the user has access to. The returned + * entries will include only summary data, and will not include information about the individual + * tasks that were executed. (This information is available when requesting an individual task + * graph log.) Entries in the response are ordered from newest to oldest. Pagination parameters + * work as in other API methods; see PaginationMetadata. + * + * @param namespace Include logs for this namespace. (optional) + * @param createdBy Include logs from only this user. (optional) + * @param status Filter to only return these statuses (optional) + * @param search search string that will look at name. (optional) + * @param startTime Include logs created after this time. (optional) + * @param endTime Include logs created before this time. (optional) + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 The task graph logs that matched the user's query. -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call listTaskGraphLogsAsync( + String namespace, + String createdBy, + String status, + String search, + OffsetDateTime startTime, + OffsetDateTime endTime, + Integer page, + Integer perPage, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = listTaskGraphLogsValidateBeforeCall(namespace, createdBy, status, search, startTime, endTime, page, perPage, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for reportClientNode + * + * @param namespace The namespace that owns this task graph log. (required) + * @param id The UUID of the task graph log entry. (required) + * @param report The node status to report. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 Status reported successfully. -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call reportClientNodeCall( + String namespace, String id, TaskGraphClientNodeStatus report, 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 = report; + + // create path and map variables + String localVarPath = "/taskgraphs/{namespace}/logs/{id}/report_client_node" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.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); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call reportClientNodeValidateBeforeCall(String namespace, String id, TaskGraphClientNodeStatus report, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling reportClientNode(Async)"); + } + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling reportClientNode(Async)"); + } + + // verify the required parameter 'report' is set + if (report == null) { + throw new ApiException("Missing the required parameter 'report' when calling reportClientNode(Async)"); + } + + + okhttp3.Call localVarCall = reportClientNodeCall(namespace, id, report, _callback); + return localVarCall; + + } + + /** + * @param namespace The namespace that owns this task graph log. (required) + * @param id The UUID of the task graph log entry. (required) + * @param report The node status to report. (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 Status reported successfully. -
502 Bad Gateway -
0 error response -
+ */ + public void reportClientNode(String namespace, String id, TaskGraphClientNodeStatus report) + throws ApiException { + reportClientNodeWithHttpInfo(namespace, id, report); + } + + /** + * @param namespace The namespace that owns this task graph log. (required) + * @param id The UUID of the task graph log entry. (required) + * @param report The node status to report. (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 Status reported successfully. -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse reportClientNodeWithHttpInfo( + String namespace, String id, TaskGraphClientNodeStatus report) throws ApiException { + okhttp3.Call localVarCall = reportClientNodeValidateBeforeCall(namespace, id, report, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) + * + * @param namespace The namespace that owns this task graph log. (required) + * @param id The UUID of the task graph log entry. (required) + * @param report The node status to report. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 Status reported successfully. -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call reportClientNodeAsync( + String namespace, + String id, + TaskGraphClientNodeStatus report, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = reportClientNodeValidateBeforeCall(namespace, id, report, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for resubmitTaskGraphExecution + * + * @param namespace The namespace that owns this task graph execution. (required) + * @param id The UUID of the task graph execution (TaskGraphLog). (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
202 Information about the task graph execution. -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call resubmitTaskGraphExecutionCall( + String namespace, String id, 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 = "/taskgraphs/{namespace}/executions/{id}/resubmit" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call resubmitTaskGraphExecutionValidateBeforeCall(String namespace, String id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling resubmitTaskGraphExecution(Async)"); + } + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling resubmitTaskGraphExecution(Async)"); + } + + + okhttp3.Call localVarCall = resubmitTaskGraphExecutionCall(namespace, id, _callback); + return localVarCall; + + } + + /** + * Resubmits a task graph in the given namespace using the associated execution id. + * + * @param namespace The namespace that owns this task graph execution. (required) + * @param id The UUID of the task graph execution (TaskGraphLog). (required) + * @return TaskGraphLog + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
202 Information about the task graph execution. -
502 Bad Gateway -
0 error response -
+ */ + public TaskGraphLog resubmitTaskGraphExecution(String namespace, String id) throws ApiException { + ApiResponse localVarResp = resubmitTaskGraphExecutionWithHttpInfo(namespace, id); + return localVarResp.getData(); + } + + /** + * Resubmits a task graph in the given namespace using the associated execution id. + * + * @param namespace The namespace that owns this task graph execution. (required) + * @param id The UUID of the task graph execution (TaskGraphLog). (required) + * @return ApiResponse<TaskGraphLog> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
202 Information about the task graph execution. -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse resubmitTaskGraphExecutionWithHttpInfo( + String namespace, String id) throws ApiException { + okhttp3.Call localVarCall = resubmitTaskGraphExecutionValidateBeforeCall(namespace, id, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Resubmits a task graph in the given namespace using the associated execution + * id. + * + * @param namespace The namespace that owns this task graph execution. (required) + * @param id The UUID of the task graph execution (TaskGraphLog). (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
202 Information about the task graph execution. -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call resubmitTaskGraphExecutionAsync( + String namespace, String id, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = resubmitTaskGraphExecutionValidateBeforeCall(namespace, id, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for retryTaskGraphExecution + * + * @param namespace The namespace that owns this task graph execution. (required) + * @param id The UUID of the task graph execution (TaskGraphLog). (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
202 Information about the task graph execution. -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call retryTaskGraphExecutionCall( + String namespace, String id, 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 = "/taskgraphs/{namespace}/executions/{id}/retry" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call retryTaskGraphExecutionValidateBeforeCall(String namespace, String id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling retryTaskGraphExecution(Async)"); + } + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling retryTaskGraphExecution(Async)"); + } + + + okhttp3.Call localVarCall = retryTaskGraphExecutionCall(namespace, id, _callback); + return localVarCall; + + } + + /** + * Retries failed tasks of a task graph in the given namespace using the associated execution id. + * + * @param namespace The namespace that owns this task graph execution. (required) + * @param id The UUID of the task graph execution (TaskGraphLog). (required) + * @return TaskGraphLog + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
202 Information about the task graph execution. -
502 Bad Gateway -
0 error response -
+ */ + public TaskGraphLog retryTaskGraphExecution(String namespace, String id) throws ApiException { + ApiResponse localVarResp = retryTaskGraphExecutionWithHttpInfo(namespace, id); + return localVarResp.getData(); + } + + /** + * Retries failed tasks of a task graph in the given namespace using the associated execution id. + * + * @param namespace The namespace that owns this task graph execution. (required) + * @param id The UUID of the task graph execution (TaskGraphLog). (required) + * @return ApiResponse<TaskGraphLog> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
202 Information about the task graph execution. -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse retryTaskGraphExecutionWithHttpInfo(String namespace, String id) + throws ApiException { + okhttp3.Call localVarCall = retryTaskGraphExecutionValidateBeforeCall(namespace, id, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Retries failed tasks of a task graph in the given namespace using the + * associated execution id. + * + * @param namespace The namespace that owns this task graph execution. (required) + * @param id The UUID of the task graph execution (TaskGraphLog). (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
202 Information about the task graph execution. -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call retryTaskGraphExecutionAsync( + String namespace, String id, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = retryTaskGraphExecutionValidateBeforeCall(namespace, id, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for stopTaskGraphExecution + * + * @param namespace The namespace that owns this task graph execution. (required) + * @param id The UUID of the task graph execution (TaskGraphLog). (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 Graph stopped successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call stopTaskGraphExecutionCall( + String namespace, String id, 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 = "/taskgraphs/{namespace}/executions/{id}/stop" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call stopTaskGraphExecutionValidateBeforeCall(String namespace, String id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling stopTaskGraphExecution(Async)"); + } + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling stopTaskGraphExecution(Async)"); + } + + + okhttp3.Call localVarCall = stopTaskGraphExecutionCall(namespace, id, _callback); + return localVarCall; + + } + + /** + * Stops a task graph execution in the given namespace using the associated associated execution + * id. + * + * @param namespace The namespace that owns this task graph execution. (required) + * @param id The UUID of the task graph execution (TaskGraphLog). (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 Graph stopped successfully -
502 Bad Gateway -
0 error response -
+ */ + public void stopTaskGraphExecution(String namespace, String id) throws ApiException { + stopTaskGraphExecutionWithHttpInfo(namespace, id); + } + + /** + * Stops a task graph execution in the given namespace using the associated associated execution + * id. + * + * @param namespace The namespace that owns this task graph execution. (required) + * @param id The UUID of the task graph execution (TaskGraphLog). (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 Graph stopped successfully -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse stopTaskGraphExecutionWithHttpInfo(String namespace, String id) + throws ApiException { + okhttp3.Call localVarCall = stopTaskGraphExecutionValidateBeforeCall(namespace, id, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) Stops a task graph execution in the given namespace using the associated + * associated execution id. + * + * @param namespace The namespace that owns this task graph execution. (required) + * @param id The UUID of the task graph execution (TaskGraphLog). (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 Graph stopped successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call stopTaskGraphExecutionAsync( + String namespace, String id, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = stopTaskGraphExecutionValidateBeforeCall(namespace, id, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for submitTaskGraph + * + * @param namespace The namespace that owns this task graph. (required) + * @param id The UUID of the task graph entry. (required) + * @param rootTaskGraphUuid UUID of the root taskgraph that this graph is assosiated with + * (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
202 Information about the execution of a single task graph. -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call submitTaskGraphCall( + String namespace, String id, String rootTaskGraphUuid, 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 = "/taskgraphs/{namespace}/graphs/{id}/submit" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (rootTaskGraphUuid != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("root_task_graph_uuid", rootTaskGraphUuid)); + } + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call submitTaskGraphValidateBeforeCall(String namespace, String id, String rootTaskGraphUuid, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling submitTaskGraph(Async)"); + } + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling submitTaskGraph(Async)"); + } + + + okhttp3.Call localVarCall = submitTaskGraphCall(namespace, id, rootTaskGraphUuid, _callback); + return localVarCall; + + } + + /** + * Submit a single task graph for execution. + * + * @param namespace The namespace that owns this task graph. (required) + * @param id The UUID of the task graph entry. (required) + * @param rootTaskGraphUuid UUID of the root taskgraph that this graph is assosiated with + * (optional) + * @return TaskGraphLog + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
202 Information about the execution of a single task graph. -
502 Bad Gateway -
0 error response -
+ */ + public TaskGraphLog submitTaskGraph(String namespace, String id, String rootTaskGraphUuid) + throws ApiException { + ApiResponse localVarResp = submitTaskGraphWithHttpInfo(namespace, id, rootTaskGraphUuid); + return localVarResp.getData(); + } + + /** + * Submit a single task graph for execution. + * + * @param namespace The namespace that owns this task graph. (required) + * @param id The UUID of the task graph entry. (required) + * @param rootTaskGraphUuid UUID of the root taskgraph that this graph is assosiated with + * (optional) + * @return ApiResponse<TaskGraphLog> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
202 Information about the execution of a single task graph. -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse submitTaskGraphWithHttpInfo( + String namespace, String id, String rootTaskGraphUuid) throws ApiException { + okhttp3.Call localVarCall = submitTaskGraphValidateBeforeCall(namespace, id, rootTaskGraphUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Submit a single task graph for execution. + * + * @param namespace The namespace that owns this task graph. (required) + * @param id The UUID of the task graph entry. (required) + * @param rootTaskGraphUuid UUID of the root taskgraph that this graph is assosiated with + * (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
202 Information about the execution of a single task graph. -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call submitTaskGraphAsync( + String namespace, + String id, + String rootTaskGraphUuid, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = submitTaskGraphValidateBeforeCall(namespace, id, rootTaskGraphUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateTaskGraphLog + * + * @param namespace The namespace that owns this task graph log. (required) + * @param id The UUID of the task graph log entry. (required) + * @param log Updates to make to the task graph log. The only manual update that a client should + * need to make to a task graph log is to update its completion status to + * `succeeded`, `failed`, or `cancelled`. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 Log entry updated successfully. -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call updateTaskGraphLogCall( + String namespace, String id, TaskGraphLog log, 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 = log; + + // create path and map variables + String localVarPath = "/taskgraphs/{namespace}/logs/{id}" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.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); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateTaskGraphLogValidateBeforeCall(String namespace, String id, TaskGraphLog log, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling updateTaskGraphLog(Async)"); + } + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling updateTaskGraphLog(Async)"); + } + + // verify the required parameter 'log' is set + if (log == null) { + throw new ApiException("Missing the required parameter 'log' when calling updateTaskGraphLog(Async)"); + } + + + okhttp3.Call localVarCall = updateTaskGraphLogCall(namespace, id, log, _callback); + return localVarCall; + + } + + /** + * Update information about a single task graph execution. + * + * @param namespace The namespace that owns this task graph log. (required) + * @param id The UUID of the task graph log entry. (required) + * @param log Updates to make to the task graph log. The only manual update that a client should + * need to make to a task graph log is to update its completion status to + * `succeeded`, `failed`, or `cancelled`. (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 Log entry updated successfully. -
502 Bad Gateway -
0 error response -
+ */ + public void updateTaskGraphLog(String namespace, String id, TaskGraphLog log) + throws ApiException { + updateTaskGraphLogWithHttpInfo(namespace, id, log); + } + + /** + * Update information about a single task graph execution. + * + * @param namespace The namespace that owns this task graph log. (required) + * @param id The UUID of the task graph log entry. (required) + * @param log Updates to make to the task graph log. The only manual update that a client should + * need to make to a task graph log is to update its completion status to + * `succeeded`, `failed`, or `cancelled`. (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 Log entry updated successfully. -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse updateTaskGraphLogWithHttpInfo( + String namespace, String id, TaskGraphLog log) throws ApiException { + okhttp3.Call localVarCall = updateTaskGraphLogValidateBeforeCall(namespace, id, log, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) Update information about a single task graph execution. + * + * @param namespace The namespace that owns this task graph log. (required) + * @param id The UUID of the task graph log entry. (required) + * @param log Updates to make to the task graph log. The only manual update that a client should + * need to make to a task graph log is to update its completion status to + * `succeeded`, `failed`, or `cancelled`. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 Log entry updated successfully. -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call updateTaskGraphLogAsync( + String namespace, String id, TaskGraphLog log, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = updateTaskGraphLogValidateBeforeCall(namespace, id, log, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } +} diff --git a/src/main/java/io/tiledb/cloud/rest_api/TaskGraphsApi.java b/src/main/java/io/tiledb/cloud/rest_api/TaskGraphsApi.java new file mode 100644 index 0000000..08bec93 --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/TaskGraphsApi.java @@ -0,0 +1,854 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.17.51 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api; + + +import com.google.gson.reflect.TypeToken; + + + +import io.tiledb.cloud.rest_api.model.TaskGraph; +import io.tiledb.cloud.rest_api.model.TaskGraphLog; +import io.tiledb.cloud.rest_api.model.TaskGraphs; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class TaskGraphsApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public TaskGraphsApi() { + this(Configuration.getDefaultApiClient()); + } + + public TaskGraphsApi(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 createTaskGraph + * + * @param namespace Include graphs for this namespace. (required) + * @param graph Create the task graph. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
201 Task graph created successfully. -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call createTaskGraphCall( + String namespace, TaskGraph graph, 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 = graph; + + // create path and map variables + String localVarPath = "/taskgraphs/{namespace}/graphs" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.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); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createTaskGraphValidateBeforeCall(String namespace, TaskGraph graph, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling createTaskGraph(Async)"); + } + + // verify the required parameter 'graph' is set + if (graph == null) { + throw new ApiException("Missing the required parameter 'graph' when calling createTaskGraph(Async)"); + } + + + okhttp3.Call localVarCall = createTaskGraphCall(namespace, graph, _callback); + return localVarCall; + + } + + /** + * Create a single task graph for execution. + * + * @param namespace Include graphs for this namespace. (required) + * @param graph Create the task graph. (required) + * @return TaskGraph + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
201 Task graph created successfully. -
502 Bad Gateway -
0 error response -
+ */ + public TaskGraph createTaskGraph(String namespace, TaskGraph graph) throws ApiException { + ApiResponse localVarResp = createTaskGraphWithHttpInfo(namespace, graph); + return localVarResp.getData(); + } + + /** + * Create a single task graph for execution. + * + * @param namespace Include graphs for this namespace. (required) + * @param graph Create the task graph. (required) + * @return ApiResponse<TaskGraph> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
201 Task graph created successfully. -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse createTaskGraphWithHttpInfo(String namespace, TaskGraph graph) + throws ApiException { + okhttp3.Call localVarCall = createTaskGraphValidateBeforeCall(namespace, graph, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Create a single task graph for execution. + * + * @param namespace Include graphs for this namespace. (required) + * @param graph Create the task graph. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
201 Task graph created successfully. -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call createTaskGraphAsync( + String namespace, TaskGraph graph, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = createTaskGraphValidateBeforeCall(namespace, graph, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getTaskGraph + * + * @param namespace The namespace that owns this task graph. (required) + * @param id The UUID of the task graph entry. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Information about the single task graph. -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getTaskGraphCall(String namespace, String id, 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 = "/taskgraphs/{namespace}/graphs/{id}" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getTaskGraphValidateBeforeCall(String namespace, String id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling getTaskGraph(Async)"); + } + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling getTaskGraph(Async)"); + } + + + okhttp3.Call localVarCall = getTaskGraphCall(namespace, id, _callback); + return localVarCall; + + } + + /** + * Fetch information about a single task graph. + * + * @param namespace The namespace that owns this task graph. (required) + * @param id The UUID of the task graph entry. (required) + * @return TaskGraph + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Information about the single task graph. -
502 Bad Gateway -
0 error response -
+ */ + public TaskGraph getTaskGraph(String namespace, String id) throws ApiException { + ApiResponse localVarResp = getTaskGraphWithHttpInfo(namespace, id); + return localVarResp.getData(); + } + + /** + * Fetch information about a single task graph. + * + * @param namespace The namespace that owns this task graph. (required) + * @param id The UUID of the task graph entry. (required) + * @return ApiResponse<TaskGraph> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Information about the single task graph. -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse getTaskGraphWithHttpInfo(String namespace, String id) + throws ApiException { + okhttp3.Call localVarCall = getTaskGraphValidateBeforeCall(namespace, id, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Fetch information about a single task graph. + * + * @param namespace The namespace that owns this task graph. (required) + * @param id The UUID of the task graph entry. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Information about the single task graph. -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getTaskGraphAsync( + String namespace, String id, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getTaskGraphValidateBeforeCall(namespace, id, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listTaskGraphs + * + * @param namespace Namespace for graphs (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 The task graphs that matched the user's query. -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call listTaskGraphsCall(String namespace, 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 = "/taskgraphs/{namespace}/graphs" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listTaskGraphsValidateBeforeCall(String namespace, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling listTaskGraphs(Async)"); + } + + + okhttp3.Call localVarCall = listTaskGraphsCall(namespace, _callback); + return localVarCall; + + } + + /** + * Fetch the task graphs of a namespace the user has access to. The returned entries will include + * only summary data, and will not include information about the individual tasks that were + * executed. (This information is available when requesting an individual task graph log.) Entries + * in the response are ordered from newest to oldest. Pagination parameters work as in other API + * methods; see PaginationMetadata. + * + * @param namespace Namespace for graphs (required) + * @return TaskGraphs + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 The task graphs that matched the user's query. -
502 Bad Gateway -
0 error response -
+ */ + public TaskGraphs listTaskGraphs(String namespace) throws ApiException { + ApiResponse localVarResp = listTaskGraphsWithHttpInfo(namespace); + return localVarResp.getData(); + } + + /** + * Fetch the task graphs of a namespace the user has access to. The returned entries will include + * only summary data, and will not include information about the individual tasks that were + * executed. (This information is available when requesting an individual task graph log.) Entries + * in the response are ordered from newest to oldest. Pagination parameters work as in other API + * methods; see PaginationMetadata. + * + * @param namespace Namespace for graphs (required) + * @return ApiResponse<TaskGraphs> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 The task graphs that matched the user's query. -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse listTaskGraphsWithHttpInfo(String namespace) throws ApiException { + okhttp3.Call localVarCall = listTaskGraphsValidateBeforeCall(namespace, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Fetch the task graphs of a namespace the user has access to. The returned + * entries will include only summary data, and will not include information about the individual + * tasks that were executed. (This information is available when requesting an individual task + * graph log.) Entries in the response are ordered from newest to oldest. Pagination parameters + * work as in other API methods; see PaginationMetadata. + * + * @param namespace Namespace for graphs (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 The task graphs that matched the user's query. -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call listTaskGraphsAsync(String namespace, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = listTaskGraphsValidateBeforeCall(namespace, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for submitTaskGraph + * + * @param namespace The namespace that owns this task graph. (required) + * @param id The UUID of the task graph entry. (required) + * @param rootTaskGraphUuid UUID of the root taskgraph that this graph is assosiated with + * (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
202 Information about the execution of a single task graph. -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call submitTaskGraphCall( + String namespace, String id, String rootTaskGraphUuid, 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 = "/taskgraphs/{namespace}/graphs/{id}/submit" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (rootTaskGraphUuid != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("root_task_graph_uuid", rootTaskGraphUuid)); + } + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call submitTaskGraphValidateBeforeCall(String namespace, String id, String rootTaskGraphUuid, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling submitTaskGraph(Async)"); + } + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling submitTaskGraph(Async)"); + } + + + okhttp3.Call localVarCall = submitTaskGraphCall(namespace, id, rootTaskGraphUuid, _callback); + return localVarCall; + + } + + /** + * Submit a single task graph for execution. + * + * @param namespace The namespace that owns this task graph. (required) + * @param id The UUID of the task graph entry. (required) + * @param rootTaskGraphUuid UUID of the root taskgraph that this graph is assosiated with + * (optional) + * @return TaskGraphLog + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
202 Information about the execution of a single task graph. -
502 Bad Gateway -
0 error response -
+ */ + public TaskGraphLog submitTaskGraph(String namespace, String id, String rootTaskGraphUuid) + throws ApiException { + ApiResponse localVarResp = submitTaskGraphWithHttpInfo(namespace, id, rootTaskGraphUuid); + return localVarResp.getData(); + } + + /** + * Submit a single task graph for execution. + * + * @param namespace The namespace that owns this task graph. (required) + * @param id The UUID of the task graph entry. (required) + * @param rootTaskGraphUuid UUID of the root taskgraph that this graph is assosiated with + * (optional) + * @return ApiResponse<TaskGraphLog> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
202 Information about the execution of a single task graph. -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse submitTaskGraphWithHttpInfo( + String namespace, String id, String rootTaskGraphUuid) throws ApiException { + okhttp3.Call localVarCall = submitTaskGraphValidateBeforeCall(namespace, id, rootTaskGraphUuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Submit a single task graph for execution. + * + * @param namespace The namespace that owns this task graph. (required) + * @param id The UUID of the task graph entry. (required) + * @param rootTaskGraphUuid UUID of the root taskgraph that this graph is assosiated with + * (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
202 Information about the execution of a single task graph. -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call submitTaskGraphAsync( + String namespace, + String id, + String rootTaskGraphUuid, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = submitTaskGraphValidateBeforeCall(namespace, id, rootTaskGraphUuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateTaskGraph + * + * @param namespace The namespace that owns this task graph. (required) + * @param id The UUID of the task graph entry. (required) + * @param graph Updates to make to the task graph. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 Task graph created successfully. -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call updateTaskGraphCall( + String namespace, String id, TaskGraph graph, 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 = graph; + + // create path and map variables + String localVarPath = "/taskgraphs/{namespace}/graphs/{id}" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.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); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateTaskGraphValidateBeforeCall(String namespace, String id, TaskGraph graph, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling updateTaskGraph(Async)"); + } + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling updateTaskGraph(Async)"); + } + + // verify the required parameter 'graph' is set + if (graph == null) { + throw new ApiException("Missing the required parameter 'graph' when calling updateTaskGraph(Async)"); + } + + + okhttp3.Call localVarCall = updateTaskGraphCall(namespace, id, graph, _callback); + return localVarCall; + + } + + /** + * Update information about a single task graph execution. + * + * @param namespace The namespace that owns this task graph. (required) + * @param id The UUID of the task graph entry. (required) + * @param graph Updates to make to the task graph. (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 Task graph created successfully. -
502 Bad Gateway -
0 error response -
+ */ + public void updateTaskGraph(String namespace, String id, TaskGraph graph) throws ApiException { + updateTaskGraphWithHttpInfo(namespace, id, graph); + } + + /** + * Update information about a single task graph execution. + * + * @param namespace The namespace that owns this task graph. (required) + * @param id The UUID of the task graph entry. (required) + * @param graph Updates to make to the task graph. (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 Task graph created successfully. -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse updateTaskGraphWithHttpInfo(String namespace, String id, TaskGraph graph) + throws ApiException { + okhttp3.Call localVarCall = updateTaskGraphValidateBeforeCall(namespace, id, graph, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) Update information about a single task graph execution. + * + * @param namespace The namespace that owns this task graph. (required) + * @param id The UUID of the task graph entry. (required) + * @param graph Updates to make to the task graph. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 Task graph created successfully. -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call updateTaskGraphAsync( + String namespace, String id, TaskGraph graph, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = updateTaskGraphValidateBeforeCall(namespace, id, graph, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } +} diff --git a/src/main/java/io/tiledb/cloud/rest_api/TasksApi.java b/src/main/java/io/tiledb/cloud/rest_api/TasksApi.java new file mode 100644 index 0000000..861a06a --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/TasksApi.java @@ -0,0 +1,854 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.17.51 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api; + + +import com.google.gson.reflect.TypeToken; + + + +import io.tiledb.cloud.rest_api.model.ArrayTask; +import io.tiledb.cloud.rest_api.model.ArrayTaskData; +import io.tiledb.cloud.rest_api.model.SQLParameters; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class TasksApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public TasksApi() { + this(Configuration.getDefaultApiClient()); + } + + public TasksApi(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 runSQL + * + * @param namespace namespace to run task under is in (an organization name or user's + * username) (required) + * @param sql sql being submitted (required) + * @param acceptEncoding Encoding to use (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 JSON results in array of objects form, if the query returns results * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
204 SQL executed successfully * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call runSQLCall( + String namespace, SQLParameters sql, String acceptEncoding, 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 = sql; + + // create path and map variables + String localVarPath = "/sql/{namespace}" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (acceptEncoding != null) { + localVarHeaderParams.put("Accept-Encoding", localVarApiClient.parameterToString(acceptEncoding)); + } + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call runSQLValidateBeforeCall(String namespace, SQLParameters sql, String acceptEncoding, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling runSQL(Async)"); + } + + // verify the required parameter 'sql' is set + if (sql == null) { + throw new ApiException("Missing the required parameter 'sql' when calling runSQL(Async)"); + } + + + okhttp3.Call localVarCall = runSQLCall(namespace, sql, acceptEncoding, _callback); + return localVarCall; + + } + + /** + * Run a sql query + * + * @param namespace namespace to run task under is in (an organization name or user's + * username) (required) + * @param sql sql being submitted (required) + * @param acceptEncoding Encoding to use (optional) + * @return List<Object> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 JSON results in array of objects form, if the query returns results * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
204 SQL executed successfully * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
502 Bad Gateway -
0 error response -
+ */ + public List runSQL(String namespace, SQLParameters sql, String acceptEncoding) + throws ApiException { + ApiResponse> localVarResp = runSQLWithHttpInfo(namespace, sql, acceptEncoding); + return localVarResp.getData(); + } + + /** + * Run a sql query + * + * @param namespace namespace to run task under is in (an organization name or user's + * username) (required) + * @param sql sql being submitted (required) + * @param acceptEncoding Encoding to use (optional) + * @return ApiResponse<List<Object>> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 JSON results in array of objects form, if the query returns results * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
204 SQL executed successfully * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse> runSQLWithHttpInfo( + String namespace, SQLParameters sql, String acceptEncoding) throws ApiException { + okhttp3.Call localVarCall = runSQLValidateBeforeCall(namespace, sql, acceptEncoding, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Run a sql query + * + * @param namespace namespace to run task under is in (an organization name or user's + * username) (required) + * @param sql sql being submitted (required) + * @param acceptEncoding Encoding to use (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 JSON results in array of objects form, if the query returns results * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
204 SQL executed successfully * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call runSQLAsync( + String namespace, + SQLParameters sql, + String acceptEncoding, + final ApiCallback> _callback) + throws ApiException { + + okhttp3.Call localVarCall = runSQLValidateBeforeCall(namespace, sql, acceptEncoding, _callback); + Type localVarReturnType = new TypeToken>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for taskIdGet + * + * @param id task ID to fetch (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Array task -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call taskIdGetCall(String id, 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 = "/task/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call taskIdGetValidateBeforeCall(String id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling taskIdGet(Async)"); + } + + + okhttp3.Call localVarCall = taskIdGetCall(id, _callback); + return localVarCall; + + } + + /** + * Fetch an array task + * + * @param id task ID to fetch (required) + * @return ArrayTask + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Array task -
502 Bad Gateway -
0 error response -
+ */ + public ArrayTask taskIdGet(String id) throws ApiException { + ApiResponse localVarResp = taskIdGetWithHttpInfo(id); + return localVarResp.getData(); + } + + /** + * Fetch an array task + * + * @param id task ID to fetch (required) + * @return ApiResponse<ArrayTask> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Array task -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse taskIdGetWithHttpInfo(String id) throws ApiException { + okhttp3.Call localVarCall = taskIdGetValidateBeforeCall(id, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Fetch an array task + * + * @param id task ID to fetch (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Array task -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call taskIdGetAsync(String id, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = taskIdGetValidateBeforeCall(id, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for taskIdResultGet + * + * @param id task ID to retrieve stored results (required) + * @param acceptEncoding Encoding to use (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 output and format of originating request * Content-Type - format results are delivered in
202 task is still executing -
404 results were not saved, or results have expored -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call taskIdResultGetCall( + String id, String acceptEncoding, 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 = "/task/{id}/result" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (acceptEncoding != null) { + localVarHeaderParams.put("Accept-Encoding", localVarApiClient.parameterToString(acceptEncoding)); + } + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call taskIdResultGetValidateBeforeCall(String id, String acceptEncoding, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling taskIdResultGet(Async)"); + } + + + okhttp3.Call localVarCall = taskIdResultGetCall(id, acceptEncoding, _callback); + return localVarCall; + + } + + /** + * Retrieve results of an array task + * + * @param id task ID to retrieve stored results (required) + * @param acceptEncoding Encoding to use (optional) + * @return String + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 output and format of originating request * Content-Type - format results are delivered in
202 task is still executing -
404 results were not saved, or results have expored -
502 Bad Gateway -
0 error response -
+ */ + public String taskIdResultGet(String id, String acceptEncoding) throws ApiException { + ApiResponse localVarResp = taskIdResultGetWithHttpInfo(id, acceptEncoding); + return localVarResp.getData(); + } + + /** + * Retrieve results of an array task + * + * @param id task ID to retrieve stored results (required) + * @param acceptEncoding Encoding to use (optional) + * @return ApiResponse<String> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 output and format of originating request * Content-Type - format results are delivered in
202 task is still executing -
404 results were not saved, or results have expored -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse taskIdResultGetWithHttpInfo(String id, String acceptEncoding) + throws ApiException { + okhttp3.Call localVarCall = taskIdResultGetValidateBeforeCall(id, acceptEncoding, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Retrieve results of an array task + * + * @param id task ID to retrieve stored results (required) + * @param acceptEncoding Encoding to use (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + * + * + *
Status Code Description Response Headers
200 output and format of originating request * Content-Type - format results are delivered in
202 task is still executing -
404 results were not saved, or results have expored -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call taskIdResultGetAsync( + String id, String acceptEncoding, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = taskIdResultGetValidateBeforeCall(id, acceptEncoding, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for tasksGet + * + * @param namespace namespace to filter (optional) + * @param createdBy username to filter (optional) + * @param array name/uri of array that is url-encoded to filter (optional) + * @param start start time for tasks to filter by (optional) + * @param end end time for tasks to filter by (optional) + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param type task type, \"QUERY\", \"SQL\", \"UDF\", + * \"GENERIC_UDF\" (optional) + * @param excludeType task_type to exclude matching array in results, more than one can be + * included (optional) + * @param fileType match file_type of task array, more than one can be included (optional) + * @param excludeFileType exclude file_type of task arrays, more than one can be included + * (optional) + * @param status Filter to only return these statuses (optional) + * @param search search string that will look at name, namespace or description fields (optional) + * @param orderby sort by which field valid values include start_time, name (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Array of all tasks user has access too -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call tasksGetCall( + String namespace, + String createdBy, + String array, + Integer start, + Integer end, + Integer page, + Integer perPage, + String type, + List excludeType, + List fileType, + List excludeFileType, + String status, + String search, + String orderby, + 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 = "/tasks"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (namespace != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("namespace", namespace)); + } + + if (createdBy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("created_by", createdBy)); + } + + if (array != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("array", array)); + } + + if (start != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("start", start)); + } + + if (end != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("end", end)); + } + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + if (perPage != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("per_page", perPage)); + } + + if (type != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("type", type)); + } + + if (excludeType != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("csv", "exclude_type", excludeType)); + } + + if (fileType != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "file_type", fileType)); + } + + if (excludeFileType != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "exclude_file_type", excludeFileType)); + } + + if (status != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("status", status)); + } + + if (search != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("search", search)); + } + + if (orderby != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orderby", orderby)); + } + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call tasksGetValidateBeforeCall(String namespace, String createdBy, String array, Integer start, Integer end, Integer page, Integer perPage, String type, List excludeType, List fileType, List excludeFileType, String status, String search, String orderby, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = tasksGetCall(namespace, createdBy, array, start, end, page, perPage, type, excludeType, fileType, excludeFileType, status, search, orderby, _callback); + return localVarCall; + + } + + /** + * Fetch a list of all array tasks a user has access to + * + * @param namespace namespace to filter (optional) + * @param createdBy username to filter (optional) + * @param array name/uri of array that is url-encoded to filter (optional) + * @param start start time for tasks to filter by (optional) + * @param end end time for tasks to filter by (optional) + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param type task type, \"QUERY\", \"SQL\", \"UDF\", + * \"GENERIC_UDF\" (optional) + * @param excludeType task_type to exclude matching array in results, more than one can be + * included (optional) + * @param fileType match file_type of task array, more than one can be included (optional) + * @param excludeFileType exclude file_type of task arrays, more than one can be included + * (optional) + * @param status Filter to only return these statuses (optional) + * @param search search string that will look at name, namespace or description fields (optional) + * @param orderby sort by which field valid values include start_time, name (optional) + * @return ArrayTaskData + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Array of all tasks user has access too -
502 Bad Gateway -
0 error response -
+ */ + public ArrayTaskData tasksGet( + String namespace, + String createdBy, + String array, + Integer start, + Integer end, + Integer page, + Integer perPage, + String type, + List excludeType, + List fileType, + List excludeFileType, + String status, + String search, + String orderby) + throws ApiException { + ApiResponse localVarResp = tasksGetWithHttpInfo(namespace, createdBy, array, start, end, page, perPage, type, excludeType, fileType, excludeFileType, status, search, orderby); + return localVarResp.getData(); + } + + /** + * Fetch a list of all array tasks a user has access to + * + * @param namespace namespace to filter (optional) + * @param createdBy username to filter (optional) + * @param array name/uri of array that is url-encoded to filter (optional) + * @param start start time for tasks to filter by (optional) + * @param end end time for tasks to filter by (optional) + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param type task type, \"QUERY\", \"SQL\", \"UDF\", + * \"GENERIC_UDF\" (optional) + * @param excludeType task_type to exclude matching array in results, more than one can be + * included (optional) + * @param fileType match file_type of task array, more than one can be included (optional) + * @param excludeFileType exclude file_type of task arrays, more than one can be included + * (optional) + * @param status Filter to only return these statuses (optional) + * @param search search string that will look at name, namespace or description fields (optional) + * @param orderby sort by which field valid values include start_time, name (optional) + * @return ApiResponse<ArrayTaskData> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Array of all tasks user has access too -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse tasksGetWithHttpInfo( + String namespace, + String createdBy, + String array, + Integer start, + Integer end, + Integer page, + Integer perPage, + String type, + List excludeType, + List fileType, + List excludeFileType, + String status, + String search, + String orderby) + throws ApiException { + okhttp3.Call localVarCall = tasksGetValidateBeforeCall(namespace, createdBy, array, start, end, page, perPage, type, excludeType, fileType, excludeFileType, status, search, orderby, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Fetch a list of all array tasks a user has access to + * + * @param namespace namespace to filter (optional) + * @param createdBy username to filter (optional) + * @param array name/uri of array that is url-encoded to filter (optional) + * @param start start time for tasks to filter by (optional) + * @param end end time for tasks to filter by (optional) + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param type task type, \"QUERY\", \"SQL\", \"UDF\", + * \"GENERIC_UDF\" (optional) + * @param excludeType task_type to exclude matching array in results, more than one can be + * included (optional) + * @param fileType match file_type of task array, more than one can be included (optional) + * @param excludeFileType exclude file_type of task arrays, more than one can be included + * (optional) + * @param status Filter to only return these statuses (optional) + * @param search search string that will look at name, namespace or description fields (optional) + * @param orderby sort by which field valid values include start_time, name (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Array of all tasks user has access too -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call tasksGetAsync( + String namespace, + String createdBy, + String array, + Integer start, + Integer end, + Integer page, + Integer perPage, + String type, + List excludeType, + List fileType, + List excludeFileType, + String status, + String search, + String orderby, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = tasksGetValidateBeforeCall(namespace, createdBy, array, start, end, page, perPage, type, excludeType, fileType, excludeFileType, status, search, orderby, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/src/main/java/io/tiledb/cloud/rest_api/UdfApi.java b/src/main/java/io/tiledb/cloud/rest_api/UdfApi.java new file mode 100644 index 0000000..cd07cb2 --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/UdfApi.java @@ -0,0 +1,1955 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.17.51 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api; + + +import com.google.gson.reflect.TypeToken; + + + +import io.tiledb.cloud.rest_api.model.ArrayEndTimestampData; +import java.io.File; +import io.tiledb.cloud.rest_api.model.GenericUDF; +import io.tiledb.cloud.rest_api.model.MultiArrayUDF; +import io.tiledb.cloud.rest_api.model.UDFCopied; +import io.tiledb.cloud.rest_api.model.UDFCopy; +import io.tiledb.cloud.rest_api.model.UDFInfo; +import io.tiledb.cloud.rest_api.model.UDFInfoUpdate; +import io.tiledb.cloud.rest_api.model.UDFSharing; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class UdfApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public UdfApi() { + this(Configuration.getDefaultApiClient()); + } + + public UdfApi(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 deleteUDFInfo + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param name name to register UDF under (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 UDF deleted successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call deleteUDFInfoCall(String namespace, String name, 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 = "/udf/{namespace}/{name}" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteUDFInfoValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteUDFInfo(Async)"); + } + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteUDFInfo(Async)"); + } + + + okhttp3.Call localVarCall = deleteUDFInfoCall(namespace, name, _callback); + return localVarCall; + + } + + /** + * delete a registered UDF -- this will remove all sharing and can not be undone + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param name name to register UDF under (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 UDF deleted successfully -
502 Bad Gateway -
0 error response -
+ */ + public void deleteUDFInfo(String namespace, String name) throws ApiException { + deleteUDFInfoWithHttpInfo(namespace, name); + } + + /** + * delete a registered UDF -- this will remove all sharing and can not be undone + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param name name to register UDF under (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 UDF deleted successfully -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse deleteUDFInfoWithHttpInfo(String namespace, String name) + throws ApiException { + okhttp3.Call localVarCall = deleteUDFInfoValidateBeforeCall(namespace, name, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) delete a registered UDF -- this will remove all sharing and can not be undone + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param name name to register UDF under (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 UDF deleted successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call deleteUDFInfoAsync( + String namespace, String name, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteUDFInfoValidateBeforeCall(namespace, name, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for getUDFInfo + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param name name to register UDF under (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 UDFInfo was retrieved successfully -
404 UDF not found -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getUDFInfoCall(String namespace, String name, 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 = "/udf/{namespace}/{name}" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getUDFInfoValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling getUDFInfo(Async)"); + } + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling getUDFInfo(Async)"); + } + + + okhttp3.Call localVarCall = getUDFInfoCall(namespace, name, _callback); + return localVarCall; + + } + + /** + * get a specific UDF in the given namespace + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param name name to register UDF under (required) + * @return UDFInfo + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 UDFInfo was retrieved successfully -
404 UDF not found -
502 Bad Gateway -
0 error response -
+ */ + public UDFInfo getUDFInfo(String namespace, String name) throws ApiException { + ApiResponse localVarResp = getUDFInfoWithHttpInfo(namespace, name); + return localVarResp.getData(); + } + + /** + * get a specific UDF in the given namespace + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param name name to register UDF under (required) + * @return ApiResponse<UDFInfo> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 UDFInfo was retrieved successfully -
404 UDF not found -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse getUDFInfoWithHttpInfo(String namespace, String name) + throws ApiException { + okhttp3.Call localVarCall = getUDFInfoValidateBeforeCall(namespace, name, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) get a specific UDF in the given namespace + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param name name to register UDF under (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 UDFInfo was retrieved successfully -
404 UDF not found -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getUDFInfoAsync( + String namespace, String name, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getUDFInfoValidateBeforeCall(namespace, name, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getUDFInfoSharingPolicies + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param name name of UDFInfo (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 List of all specific sharing policies -
404 UDF does not exist or user does not have permissions to view array-sharing policies -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getUDFInfoSharingPoliciesCall( + String namespace, String name, 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 = "/udf/{namespace}/{name}/share" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getUDFInfoSharingPoliciesValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling getUDFInfoSharingPolicies(Async)"); + } + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling getUDFInfoSharingPolicies(Async)"); + } + + + okhttp3.Call localVarCall = getUDFInfoSharingPoliciesCall(namespace, name, _callback); + return localVarCall; + + } + + /** + * Get all sharing details of the UDF + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param name name of UDFInfo (required) + * @return List<UDFSharing> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 List of all specific sharing policies -
404 UDF does not exist or user does not have permissions to view array-sharing policies -
502 Bad Gateway -
0 error response -
+ */ + public List getUDFInfoSharingPolicies(String namespace, String name) + throws ApiException { + ApiResponse> localVarResp = getUDFInfoSharingPoliciesWithHttpInfo(namespace, name); + return localVarResp.getData(); + } + + /** + * Get all sharing details of the UDF + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param name name of UDFInfo (required) + * @return ApiResponse<List<UDFSharing>> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 List of all specific sharing policies -
404 UDF does not exist or user does not have permissions to view array-sharing policies -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse> getUDFInfoSharingPoliciesWithHttpInfo( + String namespace, String name) throws ApiException { + okhttp3.Call localVarCall = getUDFInfoSharingPoliciesValidateBeforeCall(namespace, name, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Get all sharing details of the UDF + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param name name of UDFInfo (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 List of all specific sharing policies -
404 UDF does not exist or user does not have permissions to view array-sharing policies -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getUDFInfoSharingPoliciesAsync( + String namespace, String name, final ApiCallback> _callback) + throws ApiException { + + okhttp3.Call localVarCall = getUDFInfoSharingPoliciesValidateBeforeCall(namespace, name, _callback); + Type localVarReturnType = new TypeToken>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for handleCopyUDF + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param name name of UDFInfo (required) + * @param udFCopy Input/Output information to copy a UDF (required) + * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for + * creation (optional) + * @param endTimestamp Milliseconds since Unix epoch (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
201 UDF copied -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call handleCopyUDFCall( + String namespace, + String name, + UDFCopy udFCopy, + String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, + Integer endTimestamp, + 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 = udFCopy; + + // create path and map variables + String localVarPath = "/udf/{namespace}/{name}/copy" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (endTimestamp != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("end_timestamp", endTimestamp)); + } + + if (X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME != null) { + localVarHeaderParams.put("X-TILEDB-CLOUD-ACCESS-CREDENTIALS-NAME", localVarApiClient.parameterToString(X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME)); + } + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call handleCopyUDFValidateBeforeCall(String namespace, String name, UDFCopy udFCopy, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, Integer endTimestamp, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling handleCopyUDF(Async)"); + } + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling handleCopyUDF(Async)"); + } + + // verify the required parameter 'udFCopy' is set + if (udFCopy == null) { + throw new ApiException("Missing the required parameter 'udFCopy' when calling handleCopyUDF(Async)"); + } + + + okhttp3.Call localVarCall = handleCopyUDFCall(namespace, name, udFCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp, _callback); + return localVarCall; + + } + + /** + * Copy a tiledb udf at the specified location + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param name name of UDFInfo (required) + * @param udFCopy Input/Output information to copy a UDF (required) + * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for + * creation (optional) + * @param endTimestamp Milliseconds since Unix epoch (optional) + * @return UDFCopied + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
201 UDF copied -
502 Bad Gateway -
0 error response -
+ */ + public UDFCopied handleCopyUDF( + String namespace, + String name, + UDFCopy udFCopy, + String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, + Integer endTimestamp) + throws ApiException { + ApiResponse localVarResp = handleCopyUDFWithHttpInfo(namespace, name, udFCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp); + return localVarResp.getData(); + } + + /** + * Copy a tiledb udf at the specified location + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param name name of UDFInfo (required) + * @param udFCopy Input/Output information to copy a UDF (required) + * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for + * creation (optional) + * @param endTimestamp Milliseconds since Unix epoch (optional) + * @return ApiResponse<UDFCopied> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
201 UDF copied -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse handleCopyUDFWithHttpInfo( + String namespace, + String name, + UDFCopy udFCopy, + String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, + Integer endTimestamp) + throws ApiException { + okhttp3.Call localVarCall = handleCopyUDFValidateBeforeCall(namespace, name, udFCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Copy a tiledb udf at the specified location + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param name name of UDFInfo (required) + * @param udFCopy Input/Output information to copy a UDF (required) + * @param X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME Optional registered access credentials to use for + * creation (optional) + * @param endTimestamp Milliseconds since Unix epoch (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
201 UDF copied -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call handleCopyUDFAsync( + String namespace, + String name, + UDFCopy udFCopy, + String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, + Integer endTimestamp, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = handleCopyUDFValidateBeforeCall(namespace, name, udFCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for registerUDFInfo + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param name name to register UDF under (required) + * @param udf UDF to register (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 UDF registered successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call registerUDFInfoCall( + String namespace, String name, UDFInfoUpdate udf, 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 = udf; + + // create path and map variables + String localVarPath = "/udf/{namespace}/{name}" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.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); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call registerUDFInfoValidateBeforeCall(String namespace, String name, UDFInfoUpdate udf, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling registerUDFInfo(Async)"); + } + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling registerUDFInfo(Async)"); + } + + // verify the required parameter 'udf' is set + if (udf == null) { + throw new ApiException("Missing the required parameter 'udf' when calling registerUDFInfo(Async)"); + } + + + okhttp3.Call localVarCall = registerUDFInfoCall(namespace, name, udf, _callback); + return localVarCall; + + } + + /** + * register a UDF in the given namespace + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param name name to register UDF under (required) + * @param udf UDF to register (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 UDF registered successfully -
502 Bad Gateway -
0 error response -
+ */ + public void registerUDFInfo(String namespace, String name, UDFInfoUpdate udf) + throws ApiException { + registerUDFInfoWithHttpInfo(namespace, name, udf); + } + + /** + * register a UDF in the given namespace + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param name name to register UDF under (required) + * @param udf UDF to register (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 UDF registered successfully -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse registerUDFInfoWithHttpInfo( + String namespace, String name, UDFInfoUpdate udf) throws ApiException { + okhttp3.Call localVarCall = registerUDFInfoValidateBeforeCall(namespace, name, udf, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) register a UDF in the given namespace + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param name name to register UDF under (required) + * @param udf UDF to register (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 UDF registered successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call registerUDFInfoAsync( + String namespace, String name, UDFInfoUpdate udf, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = registerUDFInfoValidateBeforeCall(namespace, name, udf, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for shareUDFInfo + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param name name of UDFInfo (required) + * @param udfSharing Namespace and list of permissions to share with. An empty list of permissions + * will remove the namespace; if permissions already exist they will be deleted then new ones + * added. In the event of a failure, the new policies will be rolled back to prevent partial + * policies, and it's likely the UDF will not be shared with the namespace at all. + * (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
204 UDF shared successfully -
404 UDF does not exist or user does not have permissions to share UDF -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call shareUDFInfoCall( + String namespace, String name, UDFSharing udfSharing, 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 = udfSharing; + + // create path and map variables + String localVarPath = "/udf/{namespace}/{name}/share" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.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); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call shareUDFInfoValidateBeforeCall(String namespace, String name, UDFSharing udfSharing, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling shareUDFInfo(Async)"); + } + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling shareUDFInfo(Async)"); + } + + // verify the required parameter 'udfSharing' is set + if (udfSharing == null) { + throw new ApiException("Missing the required parameter 'udfSharing' when calling shareUDFInfo(Async)"); + } + + + okhttp3.Call localVarCall = shareUDFInfoCall(namespace, name, udfSharing, _callback); + return localVarCall; + + } + + /** + * Share a UDF with a user + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param name name of UDFInfo (required) + * @param udfSharing Namespace and list of permissions to share with. An empty list of permissions + * will remove the namespace; if permissions already exist they will be deleted then new ones + * added. In the event of a failure, the new policies will be rolled back to prevent partial + * policies, and it's likely the UDF will not be shared with the namespace at all. + * (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
204 UDF shared successfully -
404 UDF does not exist or user does not have permissions to share UDF -
502 Bad Gateway -
0 error response -
+ */ + public void shareUDFInfo(String namespace, String name, UDFSharing udfSharing) + throws ApiException { + shareUDFInfoWithHttpInfo(namespace, name, udfSharing); + } + + /** + * Share a UDF with a user + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param name name of UDFInfo (required) + * @param udfSharing Namespace and list of permissions to share with. An empty list of permissions + * will remove the namespace; if permissions already exist they will be deleted then new ones + * added. In the event of a failure, the new policies will be rolled back to prevent partial + * policies, and it's likely the UDF will not be shared with the namespace at all. + * (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
204 UDF shared successfully -
404 UDF does not exist or user does not have permissions to share UDF -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse shareUDFInfoWithHttpInfo( + String namespace, String name, UDFSharing udfSharing) throws ApiException { + okhttp3.Call localVarCall = shareUDFInfoValidateBeforeCall(namespace, name, udfSharing, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) Share a UDF with a user + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param name name of UDFInfo (required) + * @param udfSharing Namespace and list of permissions to share with. An empty list of permissions + * will remove the namespace; if permissions already exist they will be deleted then new ones + * added. In the event of a failure, the new policies will be rolled back to prevent partial + * policies, and it's likely the UDF will not be shared with the namespace at all. + * (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
204 UDF shared successfully -
404 UDF does not exist or user does not have permissions to share UDF -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call shareUDFInfoAsync( + String namespace, String name, UDFSharing udfSharing, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = shareUDFInfoValidateBeforeCall(namespace, name, udfSharing, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for submitGenericUDF + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param udf UDF to run (required) + * @param acceptEncoding Encoding to use (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
502 Bad Gateway -
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
+ */ + public okhttp3.Call submitGenericUDFCall( + String namespace, GenericUDF udf, String acceptEncoding, 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 = udf; + + // create path and map variables + String localVarPath = "/udfs/generic/{namespace}" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (acceptEncoding != null) { + localVarHeaderParams.put("Accept-Encoding", localVarApiClient.parameterToString(acceptEncoding)); + } + + final String[] localVarAccepts = { + "application/octet-stream" + }; + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call submitGenericUDFValidateBeforeCall(String namespace, GenericUDF udf, String acceptEncoding, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling submitGenericUDF(Async)"); + } + + // verify the required parameter 'udf' is set + if (udf == null) { + throw new ApiException("Missing the required parameter 'udf' when calling submitGenericUDF(Async)"); + } + + + okhttp3.Call localVarCall = submitGenericUDFCall(namespace, udf, acceptEncoding, _callback); + return localVarCall; + + } + + /** + * submit a generic UDF in the given namespace + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param udf UDF to run (required) + * @param acceptEncoding Encoding to use (optional) + * @return File + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
502 Bad Gateway -
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
+ */ + public File submitGenericUDF(String namespace, GenericUDF udf, String acceptEncoding) + throws ApiException { + ApiResponse localVarResp = submitGenericUDFWithHttpInfo(namespace, udf, acceptEncoding); + return localVarResp.getData(); + } + + /** + * submit a generic UDF in the given namespace + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param udf UDF to run (required) + * @param acceptEncoding Encoding to use (optional) + * @return ApiResponse<File> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
502 Bad Gateway -
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
+ */ + public ApiResponse submitGenericUDFWithHttpInfo( + String namespace, GenericUDF udf, String acceptEncoding) throws ApiException { + okhttp3.Call localVarCall = submitGenericUDFValidateBeforeCall(namespace, udf, acceptEncoding, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) submit a generic UDF in the given namespace + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param udf UDF to run (required) + * @param acceptEncoding Encoding to use (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
502 Bad Gateway -
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
+ */ + public okhttp3.Call submitGenericUDFAsync( + String namespace, GenericUDF udf, String acceptEncoding, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = submitGenericUDFValidateBeforeCall(namespace, udf, acceptEncoding, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for submitMultiArrayUDF + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param udf UDF to run (required) + * @param acceptEncoding Encoding to use (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
502 Bad Gateway -
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
+ */ + public okhttp3.Call submitMultiArrayUDFCall( + String namespace, MultiArrayUDF udf, String acceptEncoding, 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 = udf; + + // create path and map variables + String localVarPath = "/udfs/arrays/{namespace}" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (acceptEncoding != null) { + localVarHeaderParams.put("Accept-Encoding", localVarApiClient.parameterToString(acceptEncoding)); + } + + final String[] localVarAccepts = { + "application/octet-stream" + }; + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call submitMultiArrayUDFValidateBeforeCall(String namespace, MultiArrayUDF udf, String acceptEncoding, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling submitMultiArrayUDF(Async)"); + } + + // verify the required parameter 'udf' is set + if (udf == null) { + throw new ApiException("Missing the required parameter 'udf' when calling submitMultiArrayUDF(Async)"); + } + + + okhttp3.Call localVarCall = submitMultiArrayUDFCall(namespace, udf, acceptEncoding, _callback); + return localVarCall; + + } + + /** + * submit a multi-array UDF in the given namespace + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param udf UDF to run (required) + * @param acceptEncoding Encoding to use (optional) + * @return File + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
502 Bad Gateway -
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
+ */ + public File submitMultiArrayUDF(String namespace, MultiArrayUDF udf, String acceptEncoding) + throws ApiException { + ApiResponse localVarResp = submitMultiArrayUDFWithHttpInfo(namespace, udf, acceptEncoding); + return localVarResp.getData(); + } + + /** + * submit a multi-array UDF in the given namespace + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param udf UDF to run (required) + * @param acceptEncoding Encoding to use (optional) + * @return ApiResponse<File> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
502 Bad Gateway -
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
+ */ + public ApiResponse submitMultiArrayUDFWithHttpInfo( + String namespace, MultiArrayUDF udf, String acceptEncoding) throws ApiException { + okhttp3.Call localVarCall = submitMultiArrayUDFValidateBeforeCall(namespace, udf, acceptEncoding, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) submit a multi-array UDF in the given namespace + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param udf UDF to run (required) + * @param acceptEncoding Encoding to use (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
502 Bad Gateway -
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
+ */ + public okhttp3.Call submitMultiArrayUDFAsync( + String namespace, MultiArrayUDF udf, String acceptEncoding, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = submitMultiArrayUDFValidateBeforeCall(namespace, udf, acceptEncoding, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for submitUDF + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param udf UDF to run (required) + * @param xPayer Name of organization or user who should be charged for this request (optional) + * @param acceptEncoding Encoding to use (optional) + * @param v2 flag to indicate if v2 array UDFs should be used, currently in beta testing. Setting + * any value will enable v2 array UDFs. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
502 Bad Gateway -
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
+ */ + public okhttp3.Call submitUDFCall( + String namespace, + String array, + MultiArrayUDF udf, + String xPayer, + String acceptEncoding, + String v2, + 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 = udf; + + // create path and map variables + String localVarPath = "/arrays/{namespace}/{array}/udf/submit" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (v2 != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("v2", v2)); + } + + if (xPayer != null) { + localVarHeaderParams.put("X-Payer", localVarApiClient.parameterToString(xPayer)); + } + + if (acceptEncoding != null) { + localVarHeaderParams.put("Accept-Encoding", localVarApiClient.parameterToString(acceptEncoding)); + } + + final String[] localVarAccepts = { + "application/octet-stream" + }; + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call submitUDFValidateBeforeCall(String namespace, String array, MultiArrayUDF udf, String xPayer, String acceptEncoding, String v2, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling submitUDF(Async)"); + } + + // verify the required parameter 'array' is set + if (array == null) { + throw new ApiException("Missing the required parameter 'array' when calling submitUDF(Async)"); + } + + // verify the required parameter 'udf' is set + if (udf == null) { + throw new ApiException("Missing the required parameter 'udf' when calling submitUDF(Async)"); + } + + + okhttp3.Call localVarCall = submitUDFCall(namespace, array, udf, xPayer, acceptEncoding, v2, _callback); + return localVarCall; + + } + + /** + * send a UDF to run against a specified array/URI registered to a group/project + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param udf UDF to run (required) + * @param xPayer Name of organization or user who should be charged for this request (optional) + * @param acceptEncoding Encoding to use (optional) + * @param v2 flag to indicate if v2 array UDFs should be used, currently in beta testing. Setting + * any value will enable v2 array UDFs. (optional) + * @return File + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
502 Bad Gateway -
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
+ */ + public File submitUDF( + String namespace, + String array, + MultiArrayUDF udf, + String xPayer, + String acceptEncoding, + String v2) + throws ApiException { + ApiResponse localVarResp = submitUDFWithHttpInfo(namespace, array, udf, xPayer, acceptEncoding, v2); + return localVarResp.getData(); + } + + /** + * send a UDF to run against a specified array/URI registered to a group/project + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param udf UDF to run (required) + * @param xPayer Name of organization or user who should be charged for this request (optional) + * @param acceptEncoding Encoding to use (optional) + * @param v2 flag to indicate if v2 array UDFs should be used, currently in beta testing. Setting + * any value will enable v2 array UDFs. (optional) + * @return ApiResponse<File> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
502 Bad Gateway -
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
+ */ + public ApiResponse submitUDFWithHttpInfo( + String namespace, + String array, + MultiArrayUDF udf, + String xPayer, + String acceptEncoding, + String v2) + throws ApiException { + okhttp3.Call localVarCall = submitUDFValidateBeforeCall(namespace, array, udf, xPayer, acceptEncoding, v2, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) send a UDF to run against a specified array/URI registered to a group/project + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param udf UDF to run (required) + * @param xPayer Name of organization or user who should be charged for this request (optional) + * @param acceptEncoding Encoding to use (optional) + * @param v2 flag to indicate if v2 array UDFs should be used, currently in beta testing. Setting + * any value will enable v2 array UDFs. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
502 Bad Gateway -
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
+ */ + public okhttp3.Call submitUDFAsync( + String namespace, + String array, + MultiArrayUDF udf, + String xPayer, + String acceptEncoding, + String v2, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = submitUDFValidateBeforeCall(namespace, array, udf, xPayer, acceptEncoding, v2, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for udfNamespaceArrayEndTimestampsGet + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 list of timestamps in milliseconds, paginated -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call udfNamespaceArrayEndTimestampsGetCall( + String namespace, String array, Integer page, Integer perPage, 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 = "/udf/{namespace}/{array}/end_timestamps" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + if (perPage != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("per_page", perPage)); + } + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call udfNamespaceArrayEndTimestampsGetValidateBeforeCall(String namespace, String array, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling udfNamespaceArrayEndTimestampsGet(Async)"); + } + + // verify the required parameter 'array' is set + if (array == null) { + throw new ApiException("Missing the required parameter 'array' when calling udfNamespaceArrayEndTimestampsGet(Async)"); + } + + + okhttp3.Call localVarCall = udfNamespaceArrayEndTimestampsGetCall(namespace, array, page, perPage, _callback); + return localVarCall; + + } + + /** + * retrieve a list of timestamps from the array fragment info listing in milliseconds, paginated + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @return ArrayEndTimestampData + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 list of timestamps in milliseconds, paginated -
502 Bad Gateway -
0 error response -
+ */ + public ArrayEndTimestampData udfNamespaceArrayEndTimestampsGet( + String namespace, String array, Integer page, Integer perPage) throws ApiException { + ApiResponse localVarResp = udfNamespaceArrayEndTimestampsGetWithHttpInfo(namespace, array, page, perPage); + return localVarResp.getData(); + } + + /** + * retrieve a list of timestamps from the array fragment info listing in milliseconds, paginated + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @return ApiResponse<ArrayEndTimestampData> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 list of timestamps in milliseconds, paginated -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse udfNamespaceArrayEndTimestampsGetWithHttpInfo( + String namespace, String array, Integer page, Integer perPage) throws ApiException { + okhttp3.Call localVarCall = udfNamespaceArrayEndTimestampsGetValidateBeforeCall(namespace, array, page, perPage, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) retrieve a list of timestamps from the array fragment info listing in + * milliseconds, paginated + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 list of timestamps in milliseconds, paginated -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call udfNamespaceArrayEndTimestampsGetAsync( + String namespace, + String array, + Integer page, + Integer perPage, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = udfNamespaceArrayEndTimestampsGetValidateBeforeCall(namespace, array, page, perPage, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateUDFInfo + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param name name to register UDF under (required) + * @param udf UDF to update (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 UDF updated successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call updateUDFInfoCall( + String namespace, String name, UDFInfoUpdate udf, 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 = udf; + + // create path and map variables + String localVarPath = "/udf/{namespace}/{name}" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.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); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateUDFInfoValidateBeforeCall(String namespace, String name, UDFInfoUpdate udf, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling updateUDFInfo(Async)"); + } + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling updateUDFInfo(Async)"); + } + + // verify the required parameter 'udf' is set + if (udf == null) { + throw new ApiException("Missing the required parameter 'udf' when calling updateUDFInfo(Async)"); + } + + + okhttp3.Call localVarCall = updateUDFInfoCall(namespace, name, udf, _callback); + return localVarCall; + + } + + /** + * update an existing registered UDF in the given namespace + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param name name to register UDF under (required) + * @param udf UDF to update (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 UDF updated successfully -
502 Bad Gateway -
0 error response -
+ */ + public void updateUDFInfo(String namespace, String name, UDFInfoUpdate udf) throws ApiException { + updateUDFInfoWithHttpInfo(namespace, name, udf); + } + + /** + * update an existing registered UDF in the given namespace + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param name name to register UDF under (required) + * @param udf UDF to update (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 UDF updated successfully -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse updateUDFInfoWithHttpInfo( + String namespace, String name, UDFInfoUpdate udf) throws ApiException { + okhttp3.Call localVarCall = updateUDFInfoValidateBeforeCall(namespace, name, udf, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) update an existing registered UDF in the given namespace + * + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param name name to register UDF under (required) + * @param udf UDF to update (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 UDF updated successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call updateUDFInfoAsync( + String namespace, String name, UDFInfoUpdate udf, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = updateUDFInfoValidateBeforeCall(namespace, name, udf, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } +} diff --git a/src/main/java/io/tiledb/cloud/rest_api/UserApi.java b/src/main/java/io/tiledb/cloud/rest_api/UserApi.java new file mode 100644 index 0000000..fee3529 --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/UserApi.java @@ -0,0 +1,3239 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.17.51 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api; + + +import com.google.gson.reflect.TypeToken; + + + +import io.tiledb.cloud.rest_api.model.AWSAccessCredentials; +import java.time.OffsetDateTime; +import io.tiledb.cloud.rest_api.model.OrganizationUser; +import io.tiledb.cloud.rest_api.model.ResetUserPasswordRequest; +import io.tiledb.cloud.rest_api.model.Token; +import io.tiledb.cloud.rest_api.model.TokenRequest; +import io.tiledb.cloud.rest_api.model.TokenScope; +import io.tiledb.cloud.rest_api.model.User; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class UserApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public UserApi() { + this(Configuration.getDefaultApiClient()); + } + + public UserApi(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 addAWSAccessCredentials + * + * @param namespace namespace (required) + * @param awsAccessCredentials aws access credentials to store for a namespace (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 AWS keys added successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call addAWSAccessCredentialsCall( + String namespace, AWSAccessCredentials awsAccessCredentials, 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 = awsAccessCredentials; + + // create path and map variables + String localVarPath = "/credentials/{namespace}/aws" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.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); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addAWSAccessCredentialsValidateBeforeCall(String namespace, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling addAWSAccessCredentials(Async)"); + } + + // verify the required parameter 'awsAccessCredentials' is set + if (awsAccessCredentials == null) { + throw new ApiException("Missing the required parameter 'awsAccessCredentials' when calling addAWSAccessCredentials(Async)"); + } + + + okhttp3.Call localVarCall = addAWSAccessCredentialsCall(namespace, awsAccessCredentials, _callback); + return localVarCall; + + } + + /** + * Add aws keys + * + * @param namespace namespace (required) + * @param awsAccessCredentials aws access credentials to store for a namespace (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 AWS keys added successfully -
502 Bad Gateway -
0 error response -
+ */ + public void addAWSAccessCredentials(String namespace, AWSAccessCredentials awsAccessCredentials) + throws ApiException { + addAWSAccessCredentialsWithHttpInfo(namespace, awsAccessCredentials); + } + + /** + * Add aws keys + * + * @param namespace namespace (required) + * @param awsAccessCredentials aws access credentials to store for a namespace (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 AWS keys added successfully -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse addAWSAccessCredentialsWithHttpInfo( + String namespace, AWSAccessCredentials awsAccessCredentials) throws ApiException { + okhttp3.Call localVarCall = addAWSAccessCredentialsValidateBeforeCall(namespace, awsAccessCredentials, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) Add aws keys + * + * @param namespace namespace (required) + * @param awsAccessCredentials aws access credentials to store for a namespace (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 AWS keys added successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call addAWSAccessCredentialsAsync( + String namespace, + AWSAccessCredentials awsAccessCredentials, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = addAWSAccessCredentialsValidateBeforeCall(namespace, awsAccessCredentials, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for addUserToOrganization + * + * @param organization organization name (required) + * @param user user to add (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 user added to organization successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call addUserToOrganizationCall( + String organization, OrganizationUser user, 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 = user; + + // create path and map variables + String localVarPath = "/organizations/{organization}/user" + .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.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); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call addUserToOrganizationValidateBeforeCall(String organization, OrganizationUser user, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'organization' is set + if (organization == null) { + throw new ApiException("Missing the required parameter 'organization' when calling addUserToOrganization(Async)"); + } + + // verify the required parameter 'user' is set + if (user == null) { + throw new ApiException("Missing the required parameter 'user' when calling addUserToOrganization(Async)"); + } + + + okhttp3.Call localVarCall = addUserToOrganizationCall(organization, user, _callback); + return localVarCall; + + } + + /** + * add a user to an organization + * + * @param organization organization name (required) + * @param user user to add (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 user added to organization successfully -
502 Bad Gateway -
0 error response -
+ */ + public void addUserToOrganization(String organization, OrganizationUser user) + throws ApiException { + addUserToOrganizationWithHttpInfo(organization, user); + } + + /** + * add a user to an organization + * + * @param organization organization name (required) + * @param user user to add (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 user added to organization successfully -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse addUserToOrganizationWithHttpInfo( + String organization, OrganizationUser user) throws ApiException { + okhttp3.Call localVarCall = addUserToOrganizationValidateBeforeCall(organization, user, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) add a user to an organization + * + * @param organization organization name (required) + * @param user user to add (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 user added to organization successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call addUserToOrganizationAsync( + String organization, OrganizationUser user, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = addUserToOrganizationValidateBeforeCall(organization, user, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for checkAWSAccessCredentials + * + * @param namespace namespace (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 AWS keys are set -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call checkAWSAccessCredentialsCall(String namespace, 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 = "/credentials/{namespace}/aws" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call checkAWSAccessCredentialsValidateBeforeCall(String namespace, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling checkAWSAccessCredentials(Async)"); + } + + + okhttp3.Call localVarCall = checkAWSAccessCredentialsCall(namespace, _callback); + return localVarCall; + + } + + /** + * Check if aws keys are set + * + * @param namespace namespace (required) + * @return List<AWSAccessCredentials> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 AWS keys are set -
502 Bad Gateway -
0 error response -
+ */ + public List checkAWSAccessCredentials(String namespace) + throws ApiException { + ApiResponse> localVarResp = checkAWSAccessCredentialsWithHttpInfo(namespace); + return localVarResp.getData(); + } + + /** + * Check if aws keys are set + * + * @param namespace namespace (required) + * @return ApiResponse<List<AWSAccessCredentials>> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 AWS keys are set -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse> checkAWSAccessCredentialsWithHttpInfo( + String namespace) throws ApiException { + okhttp3.Call localVarCall = checkAWSAccessCredentialsValidateBeforeCall(namespace, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Check if aws keys are set + * + * @param namespace namespace (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 AWS keys are set -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call checkAWSAccessCredentialsAsync( + String namespace, final ApiCallback> _callback) + throws ApiException { + + okhttp3.Call localVarCall = checkAWSAccessCredentialsValidateBeforeCall(namespace, _callback); + Type localVarReturnType = new TypeToken>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for checkAWSAccessCredentialsByName + * + * @param namespace namespace (required) + * @param name name (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 AWS keys are set -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call checkAWSAccessCredentialsByNameCall( + String namespace, String name, 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 = "/credentials/{namespace}/aws/{name}" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call checkAWSAccessCredentialsByNameValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling checkAWSAccessCredentialsByName(Async)"); + } + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling checkAWSAccessCredentialsByName(Async)"); + } + + + okhttp3.Call localVarCall = checkAWSAccessCredentialsByNameCall(namespace, name, _callback); + return localVarCall; + + } + + /** + * Check if aws keys are set by name + * + * @param namespace namespace (required) + * @param name name (required) + * @return AWSAccessCredentials + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 AWS keys are set -
502 Bad Gateway -
0 error response -
+ */ + public AWSAccessCredentials checkAWSAccessCredentialsByName(String namespace, String name) + throws ApiException { + ApiResponse localVarResp = checkAWSAccessCredentialsByNameWithHttpInfo(namespace, name); + return localVarResp.getData(); + } + + /** + * Check if aws keys are set by name + * + * @param namespace namespace (required) + * @param name name (required) + * @return ApiResponse<AWSAccessCredentials> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 AWS keys are set -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse checkAWSAccessCredentialsByNameWithHttpInfo( + String namespace, String name) throws ApiException { + okhttp3.Call localVarCall = checkAWSAccessCredentialsByNameValidateBeforeCall(namespace, name, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Check if aws keys are set by name + * + * @param namespace namespace (required) + * @param name name (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 AWS keys are set -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call checkAWSAccessCredentialsByNameAsync( + String namespace, String name, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = checkAWSAccessCredentialsByNameValidateBeforeCall(namespace, name, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for confirmEmail + * + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 User email confirmed successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call confirmEmailCall(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 = "/user/confirm_email"; + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call confirmEmailValidateBeforeCall(final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = confirmEmailCall(_callback); + return localVarCall; + + } + + /** + * confirm user email + * + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 User email confirmed successfully -
502 Bad Gateway -
0 error response -
+ */ + public void confirmEmail() throws ApiException { + confirmEmailWithHttpInfo(); + } + + /** + * confirm user email + * + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 User email confirmed successfully -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse confirmEmailWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = confirmEmailValidateBeforeCall(null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) confirm user email + * + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 User email confirmed successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call confirmEmailAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = confirmEmailValidateBeforeCall(_callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for createUser + * + * @param user user to create (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 user created successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call createUserCall(User user, 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 = user; + + // create path and map variables + String localVarPath = "/user"; + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createUserValidateBeforeCall(User user, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'user' is set + if (user == null) { + throw new ApiException("Missing the required parameter 'user' when calling createUser(Async)"); + } + + + okhttp3.Call localVarCall = createUserCall(user, _callback); + return localVarCall; + + } + + /** + * create a user + * + * @param user user to create (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 user created successfully -
502 Bad Gateway -
0 error response -
+ */ + public void createUser(User user) throws ApiException { + createUserWithHttpInfo(user); + } + + /** + * create a user + * + * @param user user to create (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 user created successfully -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse createUserWithHttpInfo(User user) throws ApiException { + okhttp3.Call localVarCall = createUserValidateBeforeCall(user, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) create a user + * + * @param user user to create (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 user created successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call createUserAsync(User user, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = createUserValidateBeforeCall(user, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for deleteAWSAccessCredentials + * + * @param namespace namespace (required) + * @param name name (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 AWS credentials deleted -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call deleteAWSAccessCredentialsCall( + String namespace, String name, 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 = "/credentials/{namespace}/aws/{name}" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteAWSAccessCredentialsValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteAWSAccessCredentials(Async)"); + } + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteAWSAccessCredentials(Async)"); + } + + + okhttp3.Call localVarCall = deleteAWSAccessCredentialsCall(namespace, name, _callback); + return localVarCall; + + } + + /** + * delete a AWS Access credentials in a namespace. This will likely cause arrays to become + * unreachable + * + * @param namespace namespace (required) + * @param name name (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 AWS credentials deleted -
502 Bad Gateway -
0 error response -
+ */ + public void deleteAWSAccessCredentials(String namespace, String name) throws ApiException { + deleteAWSAccessCredentialsWithHttpInfo(namespace, name); + } + + /** + * delete a AWS Access credentials in a namespace. This will likely cause arrays to become + * unreachable + * + * @param namespace namespace (required) + * @param name name (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 AWS credentials deleted -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse deleteAWSAccessCredentialsWithHttpInfo(String namespace, String name) + throws ApiException { + okhttp3.Call localVarCall = deleteAWSAccessCredentialsValidateBeforeCall(namespace, name, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) delete a AWS Access credentials in a namespace. This will likely cause arrays + * to become unreachable + * + * @param namespace namespace (required) + * @param name name (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 AWS credentials deleted -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call deleteAWSAccessCredentialsAsync( + String namespace, String name, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteAWSAccessCredentialsValidateBeforeCall(namespace, name, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for deleteUser + * + * @param username username or ID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 user deleted -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call deleteUserCall(String username, 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 = "/users/{username}" + .replaceAll("\\{" + "username" + "\\}", localVarApiClient.escapeString(username.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteUserValidateBeforeCall(String username, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'username' is set + if (username == null) { + throw new ApiException("Missing the required parameter 'username' when calling deleteUser(Async)"); + } + + + okhttp3.Call localVarCall = deleteUserCall(username, _callback); + return localVarCall; + + } + + /** + * delete a user + * + * @param username username or ID (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 user deleted -
502 Bad Gateway -
0 error response -
+ */ + public void deleteUser(String username) throws ApiException { + deleteUserWithHttpInfo(username); + } + + /** + * delete a user + * + * @param username username or ID (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 user deleted -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse deleteUserWithHttpInfo(String username) throws ApiException { + okhttp3.Call localVarCall = deleteUserValidateBeforeCall(username, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) delete a user + * + * @param username username or ID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 user deleted -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call deleteUserAsync(String username, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = deleteUserValidateBeforeCall(username, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for deleteUserFromOrganization + * + * @param organization organization name (required) + * @param username username to manipulate (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 user delete from organization successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call deleteUserFromOrganizationCall( + String organization, String username, 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}/{username}" + .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())) + .replaceAll("\\{" + "username" + "\\}", localVarApiClient.escapeString(username.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteUserFromOrganizationValidateBeforeCall(String organization, String username, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'organization' is set + if (organization == null) { + throw new ApiException("Missing the required parameter 'organization' when calling deleteUserFromOrganization(Async)"); + } + + // verify the required parameter 'username' is set + if (username == null) { + throw new ApiException("Missing the required parameter 'username' when calling deleteUserFromOrganization(Async)"); + } + + + okhttp3.Call localVarCall = deleteUserFromOrganizationCall(organization, username, _callback); + return localVarCall; + + } + + /** + * delete a user from an organization + * + * @param organization organization name (required) + * @param username username to manipulate (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 user delete from organization successfully -
502 Bad Gateway -
0 error response -
+ */ + public void deleteUserFromOrganization(String organization, String username) throws ApiException { + deleteUserFromOrganizationWithHttpInfo(organization, username); + } + + /** + * delete a user from an organization + * + * @param organization organization name (required) + * @param username username to manipulate (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 user delete from organization successfully -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse deleteUserFromOrganizationWithHttpInfo( + String organization, String username) throws ApiException { + okhttp3.Call localVarCall = deleteUserFromOrganizationValidateBeforeCall(organization, username, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) delete a user from an organization + * + * @param organization organization name (required) + * @param username username to manipulate (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 user delete from organization successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call deleteUserFromOrganizationAsync( + String organization, String username, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteUserFromOrganizationValidateBeforeCall(organization, username, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for getOrganizationUser + * + * @param organization organization name (required) + * @param username username to manipulate (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 user from organization -
404 User is not in organization -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getOrganizationUserCall( + String organization, String username, 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}/{username}" + .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())) + .replaceAll("\\{" + "username" + "\\}", localVarApiClient.escapeString(username.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getOrganizationUserValidateBeforeCall(String organization, String username, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'organization' is set + if (organization == null) { + throw new ApiException("Missing the required parameter 'organization' when calling getOrganizationUser(Async)"); + } + + // verify the required parameter 'username' is set + if (username == null) { + throw new ApiException("Missing the required parameter 'username' when calling getOrganizationUser(Async)"); + } + + + okhttp3.Call localVarCall = getOrganizationUserCall(organization, username, _callback); + return localVarCall; + + } + + /** + * get a user from an organization + * + * @param organization organization name (required) + * @param username username to manipulate (required) + * @return OrganizationUser + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 user from organization -
404 User is not in organization -
502 Bad Gateway -
0 error response -
+ */ + public OrganizationUser getOrganizationUser(String organization, String username) + throws ApiException { + ApiResponse localVarResp = getOrganizationUserWithHttpInfo(organization, username); + return localVarResp.getData(); + } + + /** + * get a user from an organization + * + * @param organization organization name (required) + * @param username username to manipulate (required) + * @return ApiResponse<OrganizationUser> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 user from organization -
404 User is not in organization -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse getOrganizationUserWithHttpInfo( + String organization, String username) throws ApiException { + okhttp3.Call localVarCall = getOrganizationUserValidateBeforeCall(organization, username, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) get a user from an organization + * + * @param organization organization name (required) + * @param username username to manipulate (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 user from organization -
404 User is not in organization -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getOrganizationUserAsync( + String organization, String username, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = getOrganizationUserValidateBeforeCall(organization, username, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getSession + * + * @param rememberMe flag to create a token with expiration of 30 days, default is false + * (optional) + * @param expires Expiration date for token, if empty token defaults to 30 minutes (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Session token -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getSessionCall( + String rememberMe, OffsetDateTime expires, 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 = "/session"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (rememberMe != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("remember_me", rememberMe)); + } + + if (expires != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("expires", expires)); + } + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getSessionValidateBeforeCall(String rememberMe, OffsetDateTime expires, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = getSessionCall(rememberMe, expires, _callback); + return localVarCall; + + } + + /** + * Get session token for user + * + * @param rememberMe flag to create a token with expiration of 30 days, default is false + * (optional) + * @param expires Expiration date for token, if empty token defaults to 30 minutes (optional) + * @return Token + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Session token -
502 Bad Gateway -
0 error response -
+ */ + public Token getSession(String rememberMe, OffsetDateTime expires) throws ApiException { + ApiResponse localVarResp = getSessionWithHttpInfo(rememberMe, expires); + return localVarResp.getData(); + } + + /** + * Get session token for user + * + * @param rememberMe flag to create a token with expiration of 30 days, default is false + * (optional) + * @param expires Expiration date for token, if empty token defaults to 30 minutes (optional) + * @return ApiResponse<Token> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Session token -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse getSessionWithHttpInfo(String rememberMe, OffsetDateTime expires) + throws ApiException { + okhttp3.Call localVarCall = getSessionValidateBeforeCall(rememberMe, expires, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Get session token for user + * + * @param rememberMe flag to create a token with expiration of 30 days, default is false + * (optional) + * @param expires Expiration date for token, if empty token defaults to 30 minutes (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Session token -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getSessionAsync( + String rememberMe, OffsetDateTime expires, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = getSessionValidateBeforeCall(rememberMe, expires, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getTokenScopes + * + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 available token scopes -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getTokenScopesCall(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 = "/tokens/scopes"; + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getTokenScopesValidateBeforeCall(final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = getTokenScopesCall(_callback); + return localVarCall; + + } + + /** + * retrieves available token scopes for a user + * + * @return List<TokenScope> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 available token scopes -
502 Bad Gateway -
0 error response -
+ */ + public List getTokenScopes() throws ApiException { + ApiResponse> localVarResp = getTokenScopesWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * retrieves available token scopes for a user + * + * @return ApiResponse<List<TokenScope>> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 available token scopes -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse> getTokenScopesWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getTokenScopesValidateBeforeCall(null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) retrieves available token scopes for a user + * + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 available token scopes -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getTokenScopesAsync(final ApiCallback> _callback) + throws ApiException { + + okhttp3.Call localVarCall = getTokenScopesValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getUser + * + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 user details -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getUserCall(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 = "/user"; + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getUserValidateBeforeCall(final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = getUserCall(_callback); + return localVarCall; + + } + + /** + * get a user + * + * @return User + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 user details -
502 Bad Gateway -
0 error response -
+ */ + public User getUser() throws ApiException { + ApiResponse localVarResp = getUserWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * get a user + * + * @return ApiResponse<User> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 user details -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse getUserWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getUserValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) get a user + * + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 user details -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getUserAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getUserValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getUserWithUsername + * + * @param username username or ID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 user details -
404 User does not exist -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getUserWithUsernameCall(String username, 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 = "/users/{username}" + .replaceAll("\\{" + "username" + "\\}", localVarApiClient.escapeString(username.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getUserWithUsernameValidateBeforeCall(String username, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'username' is set + if (username == null) { + throw new ApiException("Missing the required parameter 'username' when calling getUserWithUsername(Async)"); + } + + + okhttp3.Call localVarCall = getUserWithUsernameCall(username, _callback); + return localVarCall; + + } + + /** + * get a user + * + * @param username username or ID (required) + * @return User + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 user details -
404 User does not exist -
502 Bad Gateway -
0 error response -
+ */ + public User getUserWithUsername(String username) throws ApiException { + ApiResponse localVarResp = getUserWithUsernameWithHttpInfo(username); + return localVarResp.getData(); + } + + /** + * get a user + * + * @param username username or ID (required) + * @return ApiResponse<User> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 user details -
404 User does not exist -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse getUserWithUsernameWithHttpInfo(String username) throws ApiException { + okhttp3.Call localVarCall = getUserWithUsernameValidateBeforeCall(username, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) get a user + * + * @param username username or ID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
200 user details -
404 User does not exist -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getUserWithUsernameAsync(String username, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = getUserWithUsernameValidateBeforeCall(username, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for requestToken + * + * @param tokenRequest token request object (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 token -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call requestTokenCall(TokenRequest tokenRequest, 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 = tokenRequest; + + // create path and map variables + String localVarPath = "/token"; + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call requestTokenValidateBeforeCall(TokenRequest tokenRequest, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = requestTokenCall(tokenRequest, _callback); + return localVarCall; + + } + + /** + * Request an authorization token, optionally taken a TokenRequest object to set parameters on the + * token + * + * @param tokenRequest token request object (optional) + * @return Token + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 token -
502 Bad Gateway -
0 error response -
+ */ + public Token requestToken(TokenRequest tokenRequest) throws ApiException { + ApiResponse localVarResp = requestTokenWithHttpInfo(tokenRequest); + return localVarResp.getData(); + } + + /** + * Request an authorization token, optionally taken a TokenRequest object to set parameters on the + * token + * + * @param tokenRequest token request object (optional) + * @return ApiResponse<Token> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 token -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse requestTokenWithHttpInfo(TokenRequest tokenRequest) + throws ApiException { + okhttp3.Call localVarCall = requestTokenValidateBeforeCall(tokenRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Request an authorization token, optionally taken a TokenRequest object to set + * parameters on the token + * + * @param tokenRequest token request object (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 token -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call requestTokenAsync( + TokenRequest tokenRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = requestTokenValidateBeforeCall(tokenRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for resetUserPassword + * + * @param user password to update for user requesting update (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
204 User password updated successfully -
404 User not found -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call resetUserPasswordCall( + ResetUserPasswordRequest user, 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 = user; + + // create path and map variables + String localVarPath = "/user/password_reset"; + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call resetUserPasswordValidateBeforeCall(ResetUserPasswordRequest user, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'user' is set + if (user == null) { + throw new ApiException("Missing the required parameter 'user' when calling resetUserPassword(Async)"); + } + + + okhttp3.Call localVarCall = resetUserPasswordCall(user, _callback); + return localVarCall; + + } + + /** + * reset user password + * + * @param user password to update for user requesting update (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
204 User password updated successfully -
404 User not found -
502 Bad Gateway -
0 error response -
+ */ + public void resetUserPassword(ResetUserPasswordRequest user) throws ApiException { + resetUserPasswordWithHttpInfo(user); + } + + /** + * reset user password + * + * @param user password to update for user requesting update (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
204 User password updated successfully -
404 User not found -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse resetUserPasswordWithHttpInfo(ResetUserPasswordRequest user) + throws ApiException { + okhttp3.Call localVarCall = resetUserPasswordValidateBeforeCall(user, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) reset user password + * + * @param user password to update for user requesting update (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + * + *
Status Code Description Response Headers
204 User password updated successfully -
404 User not found -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call resetUserPasswordAsync( + ResetUserPasswordRequest user, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = resetUserPasswordValidateBeforeCall(user, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for revokeToken + * + * @param token token name or token itself (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 revokation successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call revokeTokenCall(String token, 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 = "/tokens/{token}" + .replaceAll("\\{" + "token" + "\\}", localVarApiClient.escapeString(token.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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call revokeTokenValidateBeforeCall(String token, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'token' is set + if (token == null) { + throw new ApiException("Missing the required parameter 'token' when calling revokeToken(Async)"); + } + + + okhttp3.Call localVarCall = revokeTokenCall(token, _callback); + return localVarCall; + + } + + /** + * revoke an authorization token + * + * @param token token name or token itself (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 revokation successfully -
502 Bad Gateway -
0 error response -
+ */ + public void revokeToken(String token) throws ApiException { + revokeTokenWithHttpInfo(token); + } + + /** + * revoke an authorization token + * + * @param token token name or token itself (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 revokation successfully -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse revokeTokenWithHttpInfo(String token) throws ApiException { + okhttp3.Call localVarCall = revokeTokenValidateBeforeCall(token, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) revoke an authorization token + * + * @param token token name or token itself (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 revokation successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call revokeTokenAsync(String token, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = revokeTokenValidateBeforeCall(token, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for tokensGet + * + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Array of user created non-session tokens -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call tokensGetCall(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 = "/tokens"; + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call tokensGetValidateBeforeCall(final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = tokensGetCall(_callback); + return localVarCall; + + } + + /** + * Fetch a list of user tokens + * + * @return List<Token> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Array of user created non-session tokens -
502 Bad Gateway -
0 error response -
+ */ + public List tokensGet() throws ApiException { + ApiResponse> localVarResp = tokensGetWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * Fetch a list of user tokens + * + * @return ApiResponse<List<Token>> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Array of user created non-session tokens -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse> tokensGetWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = tokensGetValidateBeforeCall(null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Fetch a list of user tokens + * + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Array of user created non-session tokens -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call tokensGetAsync(final ApiCallback> _callback) throws ApiException { + + okhttp3.Call localVarCall = tokensGetValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for tokensSessionGet + * + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Array of user created session tokens -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call tokensSessionGetCall(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 = "/tokens/session"; + + 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[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call tokensSessionGetValidateBeforeCall(final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = tokensSessionGetCall(_callback); + return localVarCall; + + } + + /** + * Fetch a list of user session tokens + * + * @return List<Token> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Array of user created session tokens -
502 Bad Gateway -
0 error response -
+ */ + public List tokensSessionGet() throws ApiException { + ApiResponse> localVarResp = tokensSessionGetWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * Fetch a list of user session tokens + * + * @return ApiResponse<List<Token>> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Array of user created session tokens -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse> tokensSessionGetWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = tokensSessionGetValidateBeforeCall(null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) Fetch a list of user session tokens + * + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
200 Array of user created session tokens -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call tokensSessionGetAsync(final ApiCallback> _callback) + throws ApiException { + + okhttp3.Call localVarCall = tokensSessionGetValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateAWSAccessCredentials + * + * @param namespace namespace (required) + * @param name name (required) + * @param awsAccessCredentials aws credentials to update (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 AWS keys updated successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call updateAWSAccessCredentialsCall( + String namespace, + String name, + AWSAccessCredentials awsAccessCredentials, + 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 = awsAccessCredentials; + + // create path and map variables + String localVarPath = "/credentials/{namespace}/aws/{name}" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.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); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateAWSAccessCredentialsValidateBeforeCall(String namespace, String name, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling updateAWSAccessCredentials(Async)"); + } + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling updateAWSAccessCredentials(Async)"); + } + + // verify the required parameter 'awsAccessCredentials' is set + if (awsAccessCredentials == null) { + throw new ApiException("Missing the required parameter 'awsAccessCredentials' when calling updateAWSAccessCredentials(Async)"); + } + + + okhttp3.Call localVarCall = updateAWSAccessCredentialsCall(namespace, name, awsAccessCredentials, _callback); + return localVarCall; + + } + + /** + * Update aws keys or associated buckets. This will update the key associations for each array in + * the namespace + * + * @param namespace namespace (required) + * @param name name (required) + * @param awsAccessCredentials aws credentials to update (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 AWS keys updated successfully -
502 Bad Gateway -
0 error response -
+ */ + public void updateAWSAccessCredentials( + String namespace, String name, AWSAccessCredentials awsAccessCredentials) + throws ApiException { + updateAWSAccessCredentialsWithHttpInfo(namespace, name, awsAccessCredentials); + } + + /** + * Update aws keys or associated buckets. This will update the key associations for each array in + * the namespace + * + * @param namespace namespace (required) + * @param name name (required) + * @param awsAccessCredentials aws credentials to update (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 AWS keys updated successfully -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse updateAWSAccessCredentialsWithHttpInfo( + String namespace, String name, AWSAccessCredentials awsAccessCredentials) + throws ApiException { + okhttp3.Call localVarCall = updateAWSAccessCredentialsValidateBeforeCall(namespace, name, awsAccessCredentials, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) Update aws keys or associated buckets. This will update the key associations + * for each array in the namespace + * + * @param namespace namespace (required) + * @param name name (required) + * @param awsAccessCredentials aws credentials to update (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 AWS keys updated successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call updateAWSAccessCredentialsAsync( + String namespace, + String name, + AWSAccessCredentials awsAccessCredentials, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = updateAWSAccessCredentialsValidateBeforeCall(namespace, name, awsAccessCredentials, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for updateUser + * + * @param username username or ID (required) + * @param user user details to update (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 user updated successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call updateUserCall(String username, User user, 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 = user; + + // create path and map variables + String localVarPath = "/users/{username}" + .replaceAll("\\{" + "username" + "\\}", localVarApiClient.escapeString(username.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); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateUserValidateBeforeCall(String username, User user, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'username' is set + if (username == null) { + throw new ApiException("Missing the required parameter 'username' when calling updateUser(Async)"); + } + + // verify the required parameter 'user' is set + if (user == null) { + throw new ApiException("Missing the required parameter 'user' when calling updateUser(Async)"); + } + + + okhttp3.Call localVarCall = updateUserCall(username, user, _callback); + return localVarCall; + + } + + /** + * update a user + * + * @param username username or ID (required) + * @param user user details to update (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 user updated successfully -
502 Bad Gateway -
0 error response -
+ */ + public void updateUser(String username, User user) throws ApiException { + updateUserWithHttpInfo(username, user); + } + + /** + * update a user + * + * @param username username or ID (required) + * @param user user details to update (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 user updated successfully -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse updateUserWithHttpInfo(String username, User user) throws ApiException { + okhttp3.Call localVarCall = updateUserValidateBeforeCall(username, user, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) update a user + * + * @param username username or ID (required) + * @param user user details to update (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 user updated successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call updateUserAsync(String username, User user, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = updateUserValidateBeforeCall(username, user, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for updateUserInOrganization + * + * @param organization organization name (required) + * @param username username to manipulate (required) + * @param user user details to update (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws io.tiledb.cloud.rest_api.ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 user update in organization successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call updateUserInOrganizationCall( + String organization, String username, OrganizationUser user, 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 = user; + + // create path and map variables + String localVarPath = "/organizations/{organization}/{username}" + .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())) + .replaceAll("\\{" + "username" + "\\}", localVarApiClient.escapeString(username.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); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateUserInOrganizationValidateBeforeCall(String organization, String username, OrganizationUser user, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'organization' is set + if (organization == null) { + throw new ApiException("Missing the required parameter 'organization' when calling updateUserInOrganization(Async)"); + } + + // verify the required parameter 'username' is set + if (username == null) { + throw new ApiException("Missing the required parameter 'username' when calling updateUserInOrganization(Async)"); + } + + // verify the required parameter 'user' is set + if (user == null) { + throw new ApiException("Missing the required parameter 'user' when calling updateUserInOrganization(Async)"); + } + + + okhttp3.Call localVarCall = updateUserInOrganizationCall(organization, username, user, _callback); + return localVarCall; + + } + + /** + * update a user in an organization + * + * @param organization organization name (required) + * @param username username to manipulate (required) + * @param user user details to update (required) + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 user update in organization successfully -
502 Bad Gateway -
0 error response -
+ */ + public void updateUserInOrganization(String organization, String username, OrganizationUser user) + throws ApiException { + updateUserInOrganizationWithHttpInfo(organization, username, user); + } + + /** + * update a user in an organization + * + * @param organization organization name (required) + * @param username username to manipulate (required) + * @param user user details to update (required) + * @return ApiResponse<Void> + * @throws io.tiledb.cloud.rest_api.ApiException If fail to call the API, e.g. server error or + * cannot deserialize the response body + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 user update in organization successfully -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse updateUserInOrganizationWithHttpInfo( + String organization, String username, OrganizationUser user) throws ApiException { + okhttp3.Call localVarCall = updateUserInOrganizationValidateBeforeCall(organization, username, user, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) update a user in an organization + * + * @param organization organization name (required) + * @param username username to manipulate (required) + * @param user user details to update (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws io.tiledb.cloud.rest_api.ApiException If fail to process the API call, e.g. serializing + * the request body object + * @http.response.details + * + * + * + * + * + *
Status Code Description Response Headers
204 user update in organization successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call updateUserInOrganizationAsync( + String organization, + String username, + OrganizationUser user, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = updateUserInOrganizationValidateBeforeCall(organization, username, user, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } +} diff --git a/src/main/java/io/tiledb/cloud/rest_api/auth/ApiKeyAuth.java b/src/main/java/io/tiledb/cloud/rest_api/auth/ApiKeyAuth.java index 0b12fd9..a20045e 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/auth/ApiKeyAuth.java +++ b/src/main/java/io/tiledb/cloud/rest_api/auth/ApiKeyAuth.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/src/main/java/io/tiledb/cloud/rest_api/auth/Authentication.java b/src/main/java/io/tiledb/cloud/rest_api/auth/Authentication.java index f7face9..378da01 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/auth/Authentication.java +++ b/src/main/java/io/tiledb/cloud/rest_api/auth/Authentication.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/io/tiledb/cloud/rest_api/auth/HttpBasicAuth.java b/src/main/java/io/tiledb/cloud/rest_api/auth/HttpBasicAuth.java index fdf71ec..cad7942 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/auth/HttpBasicAuth.java +++ b/src/main/java/io/tiledb/cloud/rest_api/auth/HttpBasicAuth.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -22,6 +22,7 @@ import java.util.Map; import java.util.List; + public class HttpBasicAuth implements Authentication { private String username; private String password; diff --git a/src/main/java/io/tiledb/cloud/rest_api/auth/HttpBearerAuth.java b/src/main/java/io/tiledb/cloud/rest_api/auth/HttpBearerAuth.java index 5e79465..645bede 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/auth/HttpBearerAuth.java +++ b/src/main/java/io/tiledb/cloud/rest_api/auth/HttpBearerAuth.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class HttpBearerAuth implements Authentication { private final String scheme; private String bearerToken; diff --git a/src/main/java/io/tiledb/cloud/rest_api/auth/OAuth.java b/src/main/java/io/tiledb/cloud/rest_api/auth/OAuth.java index 8869cab..9b74e85 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/auth/OAuth.java +++ b/src/main/java/io/tiledb/cloud/rest_api/auth/OAuth.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class OAuth implements Authentication { private String accessToken; diff --git a/src/main/java/io/tiledb/cloud/rest_api/auth/OAuthFlow.java b/src/main/java/io/tiledb/cloud/rest_api/auth/OAuthFlow.java index 85a361f..96952bb 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/auth/OAuthFlow.java +++ b/src/main/java/io/tiledb/cloud/rest_api/auth/OAuthFlow.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ /** * OAuth flows that are supported by this client */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public enum OAuthFlow { ACCESS_CODE, //called authorizationCode in OpenAPI 3.0 IMPLICIT, diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/AWSAccessCredentials.java b/src/main/java/io/tiledb/cloud/rest_api/model/AWSAccessCredentials.java index cfdb7a4..0a260fe 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/AWSAccessCredentials.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/AWSAccessCredentials.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -42,8 +41,7 @@ * Model representing aws keys or service role, service roles are currently ignored, but will be preferred option in the future */ @ApiModel(description = "Model representing aws keys or service role, service roles are currently ignored, but will be preferred option in the future") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class AWSAccessCredentials { public static final String SERIALIZED_NAME_SECRET_ACCESS_KEY = "secret_access_key"; @SerializedName(SERIALIZED_NAME_SECRET_ACCESS_KEY) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/AbstractOpenApiSchema.java b/src/main/java/io/tiledb/cloud/rest_api/model/AbstractOpenApiSchema.java index 8b19a5f..417e06b 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/AbstractOpenApiSchema.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/AbstractOpenApiSchema.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -22,7 +22,7 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ActivityEventType.java b/src/main/java/io/tiledb/cloud/rest_api/model/ActivityEventType.java index d860b37..45c276a 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ActivityEventType.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ActivityEventType.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package io.tiledb.cloud.rest_api.model; + import java.io.IOException; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -53,7 +54,9 @@ public enum ActivityEventType { ESTIMATED_RESULT_SIZES("estimated_result_sizes"), - READ_FRAGMENT_INFO("read_fragment_info"); + READ_FRAGMENT_INFO("read_fragment_info"), + + READ_ENUMERATIONS("read_enumerations"); private String value; diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Array.java b/src/main/java/io/tiledb/cloud/rest_api/model/Array.java index e6d1bc6..7043908 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Array.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Array.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -40,7 +39,7 @@ * Represents an open array */ @ApiModel(description = "Represents an open array") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class Array { public static final String SERIALIZED_NAME_TIMESTAMP = "timestamp"; @SerializedName(SERIALIZED_NAME_TIMESTAMP) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayActions.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayActions.java index e940b20..f4cdc68 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayActions.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayActions.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package io.tiledb.cloud.rest_api.model; + import java.io.IOException; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayActivityLog.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayActivityLog.java index 55d283e..2ae6331 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayActivityLog.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayActivityLog.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -40,7 +39,7 @@ * Actvity of an Array */ @ApiModel(description = "Actvity of an Array") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class ArrayActivityLog { public static final String SERIALIZED_NAME_EVENT_AT = "event_at"; @SerializedName(SERIALIZED_NAME_EVENT_AT) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayBrowserData.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayBrowserData.java index ce34a3b..8a80981 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayBrowserData.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayBrowserData.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -42,8 +41,7 @@ * Object including array info and pagination metadata */ @ApiModel(description = "Object including array info and pagination metadata") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class ArrayBrowserData { public static final String SERIALIZED_NAME_ARRAYS = "arrays"; @SerializedName(SERIALIZED_NAME_ARRAYS) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayBrowserSidebar.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayBrowserSidebar.java index 79e83f4..d421041 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayBrowserSidebar.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayBrowserSidebar.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -41,7 +40,7 @@ * Object for ui array tasks browser page */ @ApiModel(description = "Object for ui array tasks browser page") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class ArrayBrowserSidebar { public static final String SERIALIZED_NAME_NAMESPACES = "namespaces"; @SerializedName(SERIALIZED_NAME_NAMESPACES) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayConsolidationRequest.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayConsolidationRequest.java index e02cf61..f579795 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayConsolidationRequest.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayConsolidationRequest.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -22,6 +21,8 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.ArrayList; +import java.util.List; import com.google.gson.Gson; import com.google.gson.JsonElement; @@ -39,12 +40,16 @@ * Request to consolidate an array */ @ApiModel(description = "Request to consolidate an array") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class ArrayConsolidationRequest { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) private TileDBConfig config; + public static final String SERIALIZED_NAME_FRAGMENTS = "fragments"; + @SerializedName(SERIALIZED_NAME_FRAGMENTS) + private List fragments = null; + public ArrayConsolidationRequest() { } @@ -70,6 +75,37 @@ public void setConfig(TileDBConfig config) { this.config = config; } + + public ArrayConsolidationRequest fragments(List fragments) { + + this.fragments = fragments; + return this; + } + + public ArrayConsolidationRequest addFragmentsItem(String fragmentsItem) { + if (this.fragments == null) { + this.fragments = new ArrayList<>(); + } + this.fragments.add(fragmentsItem); + return this; + } + + /** + * list of fragments in the array to consolidate + * @return fragments + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "list of fragments in the array to consolidate") + + public List getFragments() { + return fragments; + } + + + public void setFragments(List fragments) { + this.fragments = fragments; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -116,13 +152,14 @@ public boolean equals(Object o) { return false; } ArrayConsolidationRequest arrayConsolidationRequest = (ArrayConsolidationRequest) o; - return Objects.equals(this.config, arrayConsolidationRequest.config)&& + return Objects.equals(this.config, arrayConsolidationRequest.config) && + Objects.equals(this.fragments, arrayConsolidationRequest.fragments)&& Objects.equals(this.additionalProperties, arrayConsolidationRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(config, additionalProperties); + return Objects.hash(config, fragments, additionalProperties); } @Override @@ -130,6 +167,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ArrayConsolidationRequest {\n"); sb.append(" config: ").append(toIndentedString(config)).append("\n"); + sb.append(" fragments: ").append(toIndentedString(fragments)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -154,6 +192,7 @@ private String toIndentedString(Object o) { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); openapiFields.add("config"); + openapiFields.add("fragments"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -177,6 +216,10 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj.get("config") != null && !jsonObj.get("config").isJsonNull()) { TileDBConfig.validateJsonObject(jsonObj.getAsJsonObject("config")); } + // ensure the json data is an array + if ((jsonObj.get("fragments") != null && !jsonObj.get("fragments").isJsonNull()) && !jsonObj.get("fragments").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `fragments` to be an array in the JSON string but got `%s`", jsonObj.get("fragments").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayEndTimestampData.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayEndTimestampData.java index 1eacdbc..ddea198 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayEndTimestampData.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayEndTimestampData.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -41,7 +40,7 @@ * Object including array end_timestamps (list of Unix epoch timestamps in milliseconds) and pagination metadata */ @ApiModel(description = "Object including array end_timestamps (list of Unix epoch timestamps in milliseconds) and pagination metadata") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class ArrayEndTimestampData { public static final String SERIALIZED_NAME_END_TIMESTAMPS = "end_timestamps"; @SerializedName(SERIALIZED_NAME_END_TIMESTAMPS) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayFavorite.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayFavorite.java index 2ad4d03..6a401fd 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayFavorite.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayFavorite.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -39,8 +38,7 @@ * A user-favorite array item */ @ApiModel(description = "A user-favorite array item") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class ArrayFavorite { public static final String SERIALIZED_NAME_ARRAY_UUID = "array_uuid"; @SerializedName(SERIALIZED_NAME_ARRAY_UUID) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayFavoritesData.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayFavoritesData.java index 62976de..9aa193c 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayFavoritesData.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayFavoritesData.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -42,7 +41,7 @@ * Object including array favorites and pagination metadata */ @ApiModel(description = "Object including array favorites and pagination metadata") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class ArrayFavoritesData { public static final String SERIALIZED_NAME_ARRAYS = "arrays"; @SerializedName(SERIALIZED_NAME_ARRAYS) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayInfo.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayInfo.java index 4e1ff3d..55ee934 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayInfo.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayInfo.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,8 +28,6 @@ import java.util.HashMap; import java.util.List; import java.util.Map; - -import io.tiledb.cloud.rest_api.JSON; import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; @@ -39,13 +37,17 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; +import java.util.Map; + +import io.tiledb.cloud.rest_api.JSON; /** * metadata of an array */ @ApiModel(description = "metadata of an array") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class ArrayInfo { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -143,6 +145,18 @@ public class ArrayInfo { @SerializedName(SERIALIZED_NAME_IS_FAVORITE) private Boolean isFavorite; + public static final String SERIALIZED_NAME_CREATED_AT = "created_at"; + @SerializedName(SERIALIZED_NAME_CREATED_AT) + private OffsetDateTime createdAt; + + public static final String SERIALIZED_NAME_CREATED_BY = "created_by"; + @SerializedName(SERIALIZED_NAME_CREATED_BY) + private String createdBy; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private List metadata = null; + public ArrayInfo() { } @@ -736,6 +750,83 @@ public void setIsFavorite(Boolean isFavorite) { this.isFavorite = isFavorite; } + + public ArrayInfo createdAt(OffsetDateTime createdAt) { + + this.createdAt = createdAt; + return this; + } + + /** + * Datetime array was registered with tiledb + * @return createdAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Datetime array was registered with tiledb") + + public OffsetDateTime getCreatedAt() { + return createdAt; + } + + + public void setCreatedAt(OffsetDateTime createdAt) { + this.createdAt = createdAt; + } + + + public ArrayInfo createdBy(String createdBy) { + + this.createdBy = createdBy; + return this; + } + + /** + * The user who created the array, if known. + * @return createdBy + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The user who created the array, if known.") + + public String getCreatedBy() { + return createdBy; + } + + + public void setCreatedBy(String createdBy) { + this.createdBy = createdBy; + } + + + public ArrayInfo metadata(List metadata) { + + this.metadata = metadata; + return this; + } + + public ArrayInfo addMetadataItem(MetadataStringifiedEntry metadataItem) { + if (this.metadata == null) { + this.metadata = new ArrayList<>(); + } + this.metadata.add(metadataItem); + return this; + } + + /** + * Contains the metadata of the array. **Note:** This property is included in the response only if the `with_metadata` query parameter is set to `true`. + * @return metadata + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Contains the metadata of the array. **Note:** This property is included in the response only if the `with_metadata` query parameter is set to `true`. ") + + public List getMetadata() { + return metadata; + } + + + public void setMetadata(List metadata) { + this.metadata = metadata; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -805,7 +896,10 @@ public boolean equals(Object o) { Objects.equals(this.licenseId, arrayInfo.licenseId) && Objects.equals(this.licenseText, arrayInfo.licenseText) && Objects.equals(this.readOnly, arrayInfo.readOnly) && - Objects.equals(this.isFavorite, arrayInfo.isFavorite)&& + Objects.equals(this.isFavorite, arrayInfo.isFavorite) && + Objects.equals(this.createdAt, arrayInfo.createdAt) && + Objects.equals(this.createdBy, arrayInfo.createdBy) && + Objects.equals(this.metadata, arrayInfo.metadata)&& Objects.equals(this.additionalProperties, arrayInfo.additionalProperties); } @@ -815,7 +909,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(id, fileType, fileProperties, uri, namespace, size, lastAccessed, description, name, allowedActions, pricing, subscriptions, logo, accessCredentialsName, type, shareCount, publicShare, namespaceSubscribed, tiledbUri, tags, licenseId, licenseText, readOnly, isFavorite, additionalProperties); + return Objects.hash(id, fileType, fileProperties, uri, namespace, size, lastAccessed, description, name, allowedActions, pricing, subscriptions, logo, accessCredentialsName, type, shareCount, publicShare, namespaceSubscribed, tiledbUri, tags, licenseId, licenseText, readOnly, isFavorite, createdAt, createdBy, metadata, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -853,6 +947,9 @@ public String toString() { sb.append(" licenseText: ").append(toIndentedString(licenseText)).append("\n"); sb.append(" readOnly: ").append(toIndentedString(readOnly)).append("\n"); sb.append(" isFavorite: ").append(toIndentedString(isFavorite)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" createdBy: ").append(toIndentedString(createdBy)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -900,6 +997,9 @@ private String toIndentedString(Object o) { openapiFields.add("license_text"); openapiFields.add("read_only"); openapiFields.add("is_favorite"); + openapiFields.add("created_at"); + openapiFields.add("created_by"); + openapiFields.add("metadata"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -981,6 +1081,21 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if ((jsonObj.get("license_text") != null && !jsonObj.get("license_text").isJsonNull()) && !jsonObj.get("license_text").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `license_text` to be a primitive type in the JSON string but got `%s`", jsonObj.get("license_text").toString())); } + if ((jsonObj.get("created_by") != null && !jsonObj.get("created_by").isJsonNull()) && !jsonObj.get("created_by").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `created_by` to be a primitive type in the JSON string but got `%s`", jsonObj.get("created_by").toString())); + } + JsonArray jsonArraymetadata = jsonObj.getAsJsonArray("metadata"); + if (jsonArraymetadata != null) { + // ensure the json data is an array + if (!jsonObj.get("metadata").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `metadata` to be an array in the JSON string but got `%s`", jsonObj.get("metadata").toString())); + } + + // validate the optional field `metadata` (array) + for (int i = 0; i < jsonArraymetadata.size(); i++) { + MetadataStringifiedEntry.validateJsonObject(jsonArraymetadata.get(i).getAsJsonObject()); + }; + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayInfoUpdate.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayInfoUpdate.java index 7a70912..0fbf369 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayInfoUpdate.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayInfoUpdate.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -26,8 +26,6 @@ import java.util.HashMap; import java.util.List; import java.util.Map; - -import io.tiledb.cloud.rest_api.JSON; import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; @@ -36,13 +34,17 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; +import java.util.Map; + +import io.tiledb.cloud.rest_api.JSON; /** * metadata of an array */ @ApiModel(description = "metadata of an array") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class ArrayInfoUpdate { public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayMetadata.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayMetadata.java index defbdda..ffd336a 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayMetadata.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayMetadata.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -42,7 +41,7 @@ * user's TileDB array metadata */ @ApiModel(description = "user's TileDB array metadata") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class ArrayMetadata { public static final String SERIALIZED_NAME_ENTRIES = "entries"; @SerializedName(SERIALIZED_NAME_ENTRIES) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayMetadataEntry.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayMetadataEntry.java index fff00f8..ad08b52 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayMetadataEntry.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayMetadataEntry.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -41,8 +40,7 @@ * key/value pair representing an array metadata map entry */ @ApiModel(description = "key/value pair representing an array metadata map entry") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class ArrayMetadataEntry { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArraySample.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArraySample.java index 4410f69..ca168fc 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArraySample.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArraySample.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -39,8 +38,7 @@ * Sample data from array */ @ApiModel(description = "Sample data from array") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class ArraySample { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArraySchema.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArraySchema.java index ba710cb..5d2ab09 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArraySchema.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArraySchema.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -42,8 +41,7 @@ * ArraySchema during creation or retrieval */ @ApiModel(description = "ArraySchema during creation or retrieval") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class ArraySchema { public static final String SERIALIZED_NAME_URI = "uri"; @SerializedName(SERIALIZED_NAME_URI) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArraySharing.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArraySharing.java index 699939a..1f2e778 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArraySharing.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArraySharing.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -41,7 +40,7 @@ * details for sharing a given array */ @ApiModel(description = "details for sharing a given array") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class ArraySharing { public static final String SERIALIZED_NAME_ACTIONS = "actions"; @SerializedName(SERIALIZED_NAME_ACTIONS) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTask.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTask.java index 5bd1e78..b9d138d 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTask.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTask.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -26,8 +26,6 @@ import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.List; - -import io.tiledb.cloud.rest_api.JSON; import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; @@ -41,11 +39,13 @@ import java.util.HashSet; import java.util.Map; +import io.tiledb.cloud.rest_api.JSON; + /** * Synchronous Task to Run */ @ApiModel(description = "Synchronous Task to Run") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class ArrayTask { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -163,6 +163,14 @@ public class ArrayTask { @SerializedName(SERIALIZED_NAME_CLIENT_NODE_UUID) private String clientNodeUuid; + public static final String SERIALIZED_NAME_CLOUD_PROVIDER = "cloud_provider"; + @SerializedName(SERIALIZED_NAME_CLOUD_PROVIDER) + private String cloudProvider; + + public static final String SERIALIZED_NAME_CLOUD_REGION = "cloud_region"; + @SerializedName(SERIALIZED_NAME_CLOUD_REGION) + private String cloudRegion; + public ArrayTask() { } @@ -856,6 +864,52 @@ public void setClientNodeUuid(String clientNodeUuid) { this.clientNodeUuid = clientNodeUuid; } + + public ArrayTask cloudProvider(String cloudProvider) { + + this.cloudProvider = cloudProvider; + return this; + } + + /** + * The name of the cloud provider where this task executed. + * @return cloudProvider + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The name of the cloud provider where this task executed.") + + public String getCloudProvider() { + return cloudProvider; + } + + + public void setCloudProvider(String cloudProvider) { + this.cloudProvider = cloudProvider; + } + + + public ArrayTask cloudRegion(String cloudRegion) { + + this.cloudRegion = cloudRegion; + return this; + } + + /** + * The region of the cloud provider where this task executed. + * @return cloudRegion + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The region of the cloud provider where this task executed.") + + public String getCloudRegion() { + return cloudRegion; + } + + + public void setCloudRegion(String cloudRegion) { + this.cloudRegion = cloudRegion; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -930,7 +984,9 @@ public boolean equals(Object o) { Objects.equals(this.sqlParameters, arrayTask.sqlParameters) && Objects.equals(this.resultFormat, arrayTask.resultFormat) && Objects.equals(this.taskGraphUuid, arrayTask.taskGraphUuid) && - Objects.equals(this.clientNodeUuid, arrayTask.clientNodeUuid)&& + Objects.equals(this.clientNodeUuid, arrayTask.clientNodeUuid) && + Objects.equals(this.cloudProvider, arrayTask.cloudProvider) && + Objects.equals(this.cloudRegion, arrayTask.cloudRegion)&& Objects.equals(this.additionalProperties, arrayTask.additionalProperties); } @@ -940,7 +996,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(id, name, username, description, arrayMetadata, subarray, memory, cpu, namespace, status, statusMessage, startTime, finishTime, cost, egressCost, accessCost, queryType, udfCode, udfLanguage, sqlQuery, type, activity, logs, duration, sqlInitCommands, sqlParameters, resultFormat, taskGraphUuid, clientNodeUuid, additionalProperties); + return Objects.hash(id, name, username, description, arrayMetadata, subarray, memory, cpu, namespace, status, statusMessage, startTime, finishTime, cost, egressCost, accessCost, queryType, udfCode, udfLanguage, sqlQuery, type, activity, logs, duration, sqlInitCommands, sqlParameters, resultFormat, taskGraphUuid, clientNodeUuid, cloudProvider, cloudRegion, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -983,6 +1039,8 @@ public String toString() { sb.append(" resultFormat: ").append(toIndentedString(resultFormat)).append("\n"); sb.append(" taskGraphUuid: ").append(toIndentedString(taskGraphUuid)).append("\n"); sb.append(" clientNodeUuid: ").append(toIndentedString(clientNodeUuid)).append("\n"); + sb.append(" cloudProvider: ").append(toIndentedString(cloudProvider)).append("\n"); + sb.append(" cloudRegion: ").append(toIndentedString(cloudRegion)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -1035,6 +1093,8 @@ private String toIndentedString(Object o) { openapiFields.add("result_format"); openapiFields.add("task_graph_uuid"); openapiFields.add("client_node_uuid"); + openapiFields.add("cloud_provider"); + openapiFields.add("cloud_region"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -1118,6 +1178,12 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if ((jsonObj.get("client_node_uuid") != null && !jsonObj.get("client_node_uuid").isJsonNull()) && !jsonObj.get("client_node_uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `client_node_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("client_node_uuid").toString())); } + if ((jsonObj.get("cloud_provider") != null && !jsonObj.get("cloud_provider").isJsonNull()) && !jsonObj.get("cloud_provider").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `cloud_provider` to be a primitive type in the JSON string but got `%s`", jsonObj.get("cloud_provider").toString())); + } + if ((jsonObj.get("cloud_region") != null && !jsonObj.get("cloud_region").isJsonNull()) && !jsonObj.get("cloud_region").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `cloud_region` to be a primitive type in the JSON string but got `%s`", jsonObj.get("cloud_region").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskBrowserSidebar.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskBrowserSidebar.java index f4d5e3a..3e2ba94 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskBrowserSidebar.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskBrowserSidebar.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -41,7 +40,7 @@ * Object for ui array tasks browser page */ @ApiModel(description = "Object for ui array tasks browser page") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class ArrayTaskBrowserSidebar { public static final String SERIALIZED_NAME_ORGANIZATIONS = "organizations"; @SerializedName(SERIALIZED_NAME_ORGANIZATIONS) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskData.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskData.java index da3a4b9..21f5d53 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskData.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskData.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -42,7 +41,7 @@ * Object including array tasks and metadata */ @ApiModel(description = "Object including array tasks and metadata") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class ArrayTaskData { public static final String SERIALIZED_NAME_ARRAY_TASKS = "array_tasks"; @SerializedName(SERIALIZED_NAME_ARRAY_TASKS) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskLog.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskLog.java index 7e26d23..c7a4005 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskLog.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskLog.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -39,7 +38,7 @@ * Array task stderr/stdout logs */ @ApiModel(description = "Array task stderr/stdout logs") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class ArrayTaskLog { public static final String SERIALIZED_NAME_ARRAY_TASK_ID = "array_task_id"; @SerializedName(SERIALIZED_NAME_ARRAY_TASK_ID) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskStatus.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskStatus.java index 4c9622b..755aef1 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskStatus.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskStatus.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package io.tiledb.cloud.rest_api.model; + import java.io.IOException; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskType.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskType.java index 0c9ee94..5a74672 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskType.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskType.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package io.tiledb.cloud.rest_api.model; + import java.io.IOException; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayType.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayType.java index 0442677..d553c1f 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayType.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayType.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package io.tiledb.cloud.rest_api.model; + import java.io.IOException; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayVacuumRequest.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayVacuumRequest.java index b0dbffa..37b5f6c 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ArrayVacuumRequest.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayVacuumRequest.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -39,7 +38,7 @@ * Request to consolidate an array */ @ApiModel(description = "Request to consolidate an array") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class ArrayVacuumRequest { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/AssetBackingType.java b/src/main/java/io/tiledb/cloud/rest_api/model/AssetBackingType.java new file mode 100644 index 0000000..8f8dc34 --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/AssetBackingType.java @@ -0,0 +1,70 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.17.51 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api.model; + + +import java.io.IOException; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; + +/** + * The technology that an asset is backed by + */ +@JsonAdapter(AssetBackingType.Adapter.class) +public enum AssetBackingType { + + ARRAY("array"), + + GROUP("group"); + + private String value; + + AssetBackingType(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static AssetBackingType fromValue(String value) { + for (AssetBackingType b : AssetBackingType.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 AssetBackingType enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public AssetBackingType read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return AssetBackingType.fromValue(value); + } + } +} + diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/AssetInfo.java b/src/main/java/io/tiledb/cloud/rest_api/model/AssetInfo.java new file mode 100644 index 0000000..b59f517 --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/AssetInfo.java @@ -0,0 +1,550 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.17.51 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.time.OffsetDateTime; + +import com.google.gson.Gson; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; + +import io.tiledb.cloud.rest_api.JSON; + +/** + * metadata of an asset + */ +@ApiModel(description = "metadata of an asset") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") +public class AssetInfo { + public static final String SERIALIZED_NAME_UUID = "uuid"; + @SerializedName(SERIALIZED_NAME_UUID) + private String uuid; + + public static final String SERIALIZED_NAME_ASSET_TYPE = "asset_type"; + @SerializedName(SERIALIZED_NAME_ASSET_TYPE) + private AssetType assetType; + + public static final String SERIALIZED_NAME_ASSET_BACKING_TYPE = "asset_backing_type"; + @SerializedName(SERIALIZED_NAME_ASSET_BACKING_TYPE) + private AssetBackingType assetBackingType; + + public static final String SERIALIZED_NAME_ASSET_OWNERSHIP_LEVEL = "asset_ownership_level"; + @SerializedName(SERIALIZED_NAME_ASSET_OWNERSHIP_LEVEL) + private AssetOwnershipLevel assetOwnershipLevel; + + public static final String SERIALIZED_NAME_NAMESPACE_NAME = "namespace_name"; + @SerializedName(SERIALIZED_NAME_NAMESPACE_NAME) + private String namespaceName; + + public static final String SERIALIZED_NAME_NAMESPACE_UUID = "namespace_uuid"; + @SerializedName(SERIALIZED_NAME_NAMESPACE_UUID) + private String namespaceUuid; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_MIME_TYPE = "mime_type"; + @SerializedName(SERIALIZED_NAME_MIME_TYPE) + private String mimeType; + + public static final String SERIALIZED_NAME_CREATED_AT = "created_at"; + @SerializedName(SERIALIZED_NAME_CREATED_AT) + private OffsetDateTime createdAt; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private MetadataStringified metadata; + + public AssetInfo() { + } + + + public AssetInfo( + OffsetDateTime createdAt + ) { + this(); + this.createdAt = createdAt; + } + + public AssetInfo uuid(String uuid) { + + this.uuid = uuid; + return this; + } + + /** + * unique ID of a registered asset + * @return uuid + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", value = "unique ID of a registered asset") + + public String getUuid() { + return uuid; + } + + + public void setUuid(String uuid) { + this.uuid = uuid; + } + + + public AssetInfo assetType(AssetType assetType) { + + this.assetType = assetType; + return this; + } + + /** + * Get assetType + * @return assetType + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public AssetType getAssetType() { + return assetType; + } + + + public void setAssetType(AssetType assetType) { + this.assetType = assetType; + } + + + public AssetInfo assetBackingType(AssetBackingType assetBackingType) { + + this.assetBackingType = assetBackingType; + return this; + } + + /** + * Get assetBackingType + * @return assetBackingType + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public AssetBackingType getAssetBackingType() { + return assetBackingType; + } + + + public void setAssetBackingType(AssetBackingType assetBackingType) { + this.assetBackingType = assetBackingType; + } + + + public AssetInfo assetOwnershipLevel(AssetOwnershipLevel assetOwnershipLevel) { + + this.assetOwnershipLevel = assetOwnershipLevel; + return this; + } + + /** + * Get assetOwnershipLevel + * @return assetOwnershipLevel + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public AssetOwnershipLevel getAssetOwnershipLevel() { + return assetOwnershipLevel; + } + + + public void setAssetOwnershipLevel(AssetOwnershipLevel assetOwnershipLevel) { + this.assetOwnershipLevel = assetOwnershipLevel; + } + + + public AssetInfo namespaceName(String namespaceName) { + + this.namespaceName = namespaceName; + return this; + } + + /** + * namespace_name that the asset is registered to + * @return namespaceName + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "user1", value = "namespace_name that the asset is registered to") + + public String getNamespaceName() { + return namespaceName; + } + + + public void setNamespaceName(String namespaceName) { + this.namespaceName = namespaceName; + } + + + public AssetInfo namespaceUuid(String namespaceUuid) { + + this.namespaceUuid = namespaceUuid; + return this; + } + + /** + * namespace_uuid that the asset is registered to + * @return namespaceUuid + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", value = "namespace_uuid that the asset is registered to") + + public String getNamespaceUuid() { + return namespaceUuid; + } + + + public void setNamespaceUuid(String namespaceUuid) { + this.namespaceUuid = namespaceUuid; + } + + + public AssetInfo name(String name) { + + this.name = name; + return this; + } + + /** + * name of asset + * @return name + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "myarray1", value = "name of asset") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public AssetInfo mimeType(String mimeType) { + + this.mimeType = mimeType; + return this; + } + + /** + * mime type of the asset + * @return mimeType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "application/vnd.tiledb.v1.array", value = "mime type of the asset") + + public String getMimeType() { + return mimeType; + } + + + public void setMimeType(String mimeType) { + this.mimeType = mimeType; + } + + + /** + * Time when the asset was created (rfc3339) + * @return createdAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Time when the asset was created (rfc3339)") + + public OffsetDateTime getCreatedAt() { + return createdAt; + } + + + + + public AssetInfo metadata(MetadataStringified metadata) { + + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public MetadataStringified getMetadata() { + return metadata; + } + + + public void setMetadata(MetadataStringified metadata) { + this.metadata = metadata; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public AssetInfo putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AssetInfo assetInfo = (AssetInfo) o; + return Objects.equals(this.uuid, assetInfo.uuid) && + Objects.equals(this.assetType, assetInfo.assetType) && + Objects.equals(this.assetBackingType, assetInfo.assetBackingType) && + Objects.equals(this.assetOwnershipLevel, assetInfo.assetOwnershipLevel) && + Objects.equals(this.namespaceName, assetInfo.namespaceName) && + Objects.equals(this.namespaceUuid, assetInfo.namespaceUuid) && + Objects.equals(this.name, assetInfo.name) && + Objects.equals(this.mimeType, assetInfo.mimeType) && + Objects.equals(this.createdAt, assetInfo.createdAt) && + Objects.equals(this.metadata, assetInfo.metadata)&& + Objects.equals(this.additionalProperties, assetInfo.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(uuid, assetType, assetBackingType, assetOwnershipLevel, namespaceName, namespaceUuid, name, mimeType, createdAt, metadata, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AssetInfo {\n"); + sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n"); + sb.append(" assetType: ").append(toIndentedString(assetType)).append("\n"); + sb.append(" assetBackingType: ").append(toIndentedString(assetBackingType)).append("\n"); + sb.append(" assetOwnershipLevel: ").append(toIndentedString(assetOwnershipLevel)).append("\n"); + sb.append(" namespaceName: ").append(toIndentedString(namespaceName)).append("\n"); + sb.append(" namespaceUuid: ").append(toIndentedString(namespaceUuid)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" mimeType: ").append(toIndentedString(mimeType)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).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("uuid"); + openapiFields.add("asset_type"); + openapiFields.add("asset_backing_type"); + openapiFields.add("asset_ownership_level"); + openapiFields.add("namespace_name"); + openapiFields.add("namespace_uuid"); + openapiFields.add("name"); + openapiFields.add("mime_type"); + openapiFields.add("created_at"); + openapiFields.add("metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to AssetInfo + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (AssetInfo.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in AssetInfo is not found in the empty JSON string", AssetInfo.openapiRequiredFields.toString())); + } + } + if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + } + if ((jsonObj.get("namespace_name") != null && !jsonObj.get("namespace_name").isJsonNull()) && !jsonObj.get("namespace_name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `namespace_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace_name").toString())); + } + if ((jsonObj.get("namespace_uuid") != null && !jsonObj.get("namespace_uuid").isJsonNull()) && !jsonObj.get("namespace_uuid").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `namespace_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace_uuid").toString())); + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("mime_type") != null && !jsonObj.get("mime_type").isJsonNull()) && !jsonObj.get("mime_type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `mime_type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("mime_type").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + MetadataStringified.validateJsonObject(jsonObj.getAsJsonObject("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!AssetInfo.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AssetInfo' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AssetInfo.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AssetInfo value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public AssetInfo read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + AssetInfo instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of AssetInfo given an JSON string + * + * @param jsonString JSON string + * @return An instance of AssetInfo + * @throws IOException if the JSON string is invalid with respect to AssetInfo + */ + public static AssetInfo fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AssetInfo.class); + } + + /** + * Convert an instance of AssetInfo to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/AssetListResponse.java b/src/main/java/io/tiledb/cloud/rest_api/model/AssetListResponse.java new file mode 100644 index 0000000..c70a3b7 --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/AssetListResponse.java @@ -0,0 +1,318 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.17.51 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.JsonArray; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; + +import io.tiledb.cloud.rest_api.JSON; + +/** + * Asset associated with a TileDB Cloud account + */ +@ApiModel(description = "Asset associated with a TileDB Cloud account") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") +public class AssetListResponse { + public static final String SERIALIZED_NAME_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) + private List data = null; + + public static final String SERIALIZED_NAME_PAGINATION_METADATA = "pagination_metadata"; + @SerializedName(SERIALIZED_NAME_PAGINATION_METADATA) + private PaginationMetadata paginationMetadata; + + public AssetListResponse() { + } + + public AssetListResponse data(List data) { + + this.data = data; + return this; + } + + public AssetListResponse addDataItem(AssetInfo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * asset information for each asset + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "asset information for each asset") + + public List getData() { + return data; + } + + + public void setData(List data) { + this.data = data; + } + + + public AssetListResponse paginationMetadata(PaginationMetadata paginationMetadata) { + + this.paginationMetadata = paginationMetadata; + return this; + } + + /** + * Get paginationMetadata + * @return paginationMetadata + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public PaginationMetadata getPaginationMetadata() { + return paginationMetadata; + } + + + public void setPaginationMetadata(PaginationMetadata paginationMetadata) { + this.paginationMetadata = paginationMetadata; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public AssetListResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AssetListResponse assetListResponse = (AssetListResponse) o; + return Objects.equals(this.data, assetListResponse.data) && + Objects.equals(this.paginationMetadata, assetListResponse.paginationMetadata)&& + Objects.equals(this.additionalProperties, assetListResponse.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(data, paginationMetadata, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AssetListResponse {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" paginationMetadata: ").append(toIndentedString(paginationMetadata)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).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("data"); + openapiFields.add("pagination_metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to AssetListResponse + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (AssetListResponse.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in AssetListResponse is not found in the empty JSON string", AssetListResponse.openapiRequiredFields.toString())); + } + } + JsonArray jsonArraydata = jsonObj.getAsJsonArray("data"); + if (jsonArraydata != null) { + // ensure the json data is an array + if (!jsonObj.get("data").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + } + + // validate the optional field `data` (array) + for (int i = 0; i < jsonArraydata.size(); i++) { + AssetInfo.validateJsonObject(jsonArraydata.get(i).getAsJsonObject()); + }; + } + // validate the optional field `pagination_metadata` + if (jsonObj.get("pagination_metadata") != null && !jsonObj.get("pagination_metadata").isJsonNull()) { + PaginationMetadata.validateJsonObject(jsonObj.getAsJsonObject("pagination_metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!AssetListResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AssetListResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AssetListResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AssetListResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public AssetListResponse read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + AssetListResponse instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of AssetListResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of AssetListResponse + * @throws IOException if the JSON string is invalid with respect to AssetListResponse + */ + public static AssetListResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AssetListResponse.class); + } + + /** + * Convert an instance of AssetListResponse to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/AssetLocations.java b/src/main/java/io/tiledb/cloud/rest_api/model/AssetLocations.java index 205ecf4..c6e9368 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/AssetLocations.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/AssetLocations.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -39,7 +38,7 @@ * Custom storage locations on a per–asset type basis. If any is unset, a suffix of the owning (user/organization) `default_s3_path` is used. */ @ApiModel(description = "Custom storage locations on a per–asset type basis. If any is unset, a suffix of the owning (user/organization) `default_s3_path` is used. ") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class AssetLocations { public static final String SERIALIZED_NAME_ARRAYS = "arrays"; @SerializedName(SERIALIZED_NAME_ARRAYS) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/AssetOwnershipLevel.java b/src/main/java/io/tiledb/cloud/rest_api/model/AssetOwnershipLevel.java new file mode 100644 index 0000000..c7393cc --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/AssetOwnershipLevel.java @@ -0,0 +1,70 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.17.51 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api.model; + + +import java.io.IOException; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; + +/** + * The ownership level of the asset + */ +@JsonAdapter(AssetOwnershipLevel.Adapter.class) +public enum AssetOwnershipLevel { + + OWNED("owned"), + + SHARED("shared"); + + private String value; + + AssetOwnershipLevel(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static AssetOwnershipLevel fromValue(String value) { + for (AssetOwnershipLevel b : AssetOwnershipLevel.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 AssetOwnershipLevel enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public AssetOwnershipLevel read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return AssetOwnershipLevel.fromValue(value); + } + } +} + diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/AssetType.java b/src/main/java/io/tiledb/cloud/rest_api/model/AssetType.java index 6264c63..f16f782 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/AssetType.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/AssetType.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package io.tiledb.cloud.rest_api.model; + import java.io.IOException; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Attribute.java b/src/main/java/io/tiledb/cloud/rest_api/model/Attribute.java index a441375..b9f78b7 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Attribute.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Attribute.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -41,7 +40,7 @@ * Attribute of array */ @ApiModel(description = "Attribute of array") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class Attribute { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/AttributeBufferHeader.java b/src/main/java/io/tiledb/cloud/rest_api/model/AttributeBufferHeader.java index 796d0cf..fd0d8c2 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/AttributeBufferHeader.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/AttributeBufferHeader.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -39,7 +38,7 @@ * Represents an attribute buffer header information */ @ApiModel(description = "Represents an attribute buffer header information") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class AttributeBufferHeader { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/AttributeBufferSize.java b/src/main/java/io/tiledb/cloud/rest_api/model/AttributeBufferSize.java index df7d41f..43e302b 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/AttributeBufferSize.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/AttributeBufferSize.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -39,7 +38,7 @@ * object representing buffer size of an attribute */ @ApiModel(description = "object representing buffer size of an attribute") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class AttributeBufferSize { public static final String SERIALIZED_NAME_ATTRIBUTE = "attribute"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Backoff.java b/src/main/java/io/tiledb/cloud/rest_api/model/Backoff.java index b479999..f4293cd 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Backoff.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Backoff.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -39,7 +38,7 @@ * Backoff is a backoff strategy to use within retryStrategy */ @ApiModel(description = "Backoff is a backoff strategy to use within retryStrategy") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class Backoff { public static final String SERIALIZED_NAME_DURATION = "duration"; @SerializedName(SERIALIZED_NAME_DURATION) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ChangeAssetCredentialsRequest.java b/src/main/java/io/tiledb/cloud/rest_api/model/ChangeAssetCredentialsRequest.java new file mode 100644 index 0000000..7c36030 --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ChangeAssetCredentialsRequest.java @@ -0,0 +1,314 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.17.51 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; + +import io.tiledb.cloud.rest_api.JSON; + +/** + * Request body to change the credentials of the given assets + */ +@ApiModel(description = "Request body to change the credentials of the given assets") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") +public class ChangeAssetCredentialsRequest { + public static final String SERIALIZED_NAME_ACCESS_CREDENTIALS = "access_credentials"; + @SerializedName(SERIALIZED_NAME_ACCESS_CREDENTIALS) + private String accessCredentials; + + public static final String SERIALIZED_NAME_ASSET_UUIDS = "asset_uuids"; + @SerializedName(SERIALIZED_NAME_ASSET_UUIDS) + private List assetUuids = new ArrayList<>(); + + public ChangeAssetCredentialsRequest() { + } + + public ChangeAssetCredentialsRequest accessCredentials(String accessCredentials) { + + this.accessCredentials = accessCredentials; + return this; + } + + /** + * The name or uuid of the access credentials + * @return accessCredentials + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "The name or uuid of the access credentials") + + public String getAccessCredentials() { + return accessCredentials; + } + + + public void setAccessCredentials(String accessCredentials) { + this.accessCredentials = accessCredentials; + } + + + public ChangeAssetCredentialsRequest assetUuids(List assetUuids) { + + this.assetUuids = assetUuids; + return this; + } + + public ChangeAssetCredentialsRequest addAssetUuidsItem(String assetUuidsItem) { + this.assetUuids.add(assetUuidsItem); + return this; + } + + /** + * The list of asset uuids to have their credentials changed + * @return assetUuids + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "The list of asset uuids to have their credentials changed") + + public List getAssetUuids() { + return assetUuids; + } + + + public void setAssetUuids(List assetUuids) { + this.assetUuids = assetUuids; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public ChangeAssetCredentialsRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ChangeAssetCredentialsRequest changeAssetCredentialsRequest = (ChangeAssetCredentialsRequest) o; + return Objects.equals(this.accessCredentials, changeAssetCredentialsRequest.accessCredentials) && + Objects.equals(this.assetUuids, changeAssetCredentialsRequest.assetUuids)&& + Objects.equals(this.additionalProperties, changeAssetCredentialsRequest.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(accessCredentials, assetUuids, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ChangeAssetCredentialsRequest {\n"); + sb.append(" accessCredentials: ").append(toIndentedString(accessCredentials)).append("\n"); + sb.append(" assetUuids: ").append(toIndentedString(assetUuids)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).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("access_credentials"); + openapiFields.add("asset_uuids"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("access_credentials"); + openapiRequiredFields.add("asset_uuids"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ChangeAssetCredentialsRequest + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (ChangeAssetCredentialsRequest.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in ChangeAssetCredentialsRequest is not found in the empty JSON string", ChangeAssetCredentialsRequest.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : ChangeAssetCredentialsRequest.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("access_credentials") != null && !jsonObj.get("access_credentials").isJsonNull()) && !jsonObj.get("access_credentials").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `access_credentials` to be a primitive type in the JSON string but got `%s`", jsonObj.get("access_credentials").toString())); + } + // ensure the json data is an array + if ((jsonObj.get("asset_uuids") != null && !jsonObj.get("asset_uuids").isJsonNull()) && !jsonObj.get("asset_uuids").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `asset_uuids` to be an array in the JSON string but got `%s`", jsonObj.get("asset_uuids").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ChangeAssetCredentialsRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ChangeAssetCredentialsRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ChangeAssetCredentialsRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ChangeAssetCredentialsRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public ChangeAssetCredentialsRequest read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + ChangeAssetCredentialsRequest instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ChangeAssetCredentialsRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of ChangeAssetCredentialsRequest + * @throws IOException if the JSON string is invalid with respect to ChangeAssetCredentialsRequest + */ + public static ChangeAssetCredentialsRequest fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ChangeAssetCredentialsRequest.class); + } + + /** + * Convert an instance of ChangeAssetCredentialsRequest to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Datatype.java b/src/main/java/io/tiledb/cloud/rest_api/model/Datatype.java index aeb42fd..9d8478d 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Datatype.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Datatype.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package io.tiledb.cloud.rest_api.model; + import java.io.IOException; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -58,54 +59,56 @@ public enum Datatype { STRING_UCS2("STRING_UCS2"), STRING_UCS4("STRING_UCS4"), - + + ANY("ANY"), + DATETIME_YEAR("DATETIME_YEAR"), - + DATETIME_MONTH("DATETIME_MONTH"), - + DATETIME_WEEK("DATETIME_WEEK"), - + DATETIME_DAY("DATETIME_DAY"), - + DATETIME_HR("DATETIME_HR"), - + DATETIME_MIN("DATETIME_MIN"), - + DATETIME_SEC("DATETIME_SEC"), - + DATETIME_MS("DATETIME_MS"), - + DATETIME_US("DATETIME_US"), - + DATETIME_NS("DATETIME_NS"), - + DATETIME_PS("DATETIME_PS"), - + DATETIME_FS("DATETIME_FS"), - + DATETIME_AS("DATETIME_AS"), - + TIME_HR("TIME_HR"), - + TIME_MIN("TIME_MIN"), - + TIME_SEC("TIME_SEC"), - + TIME_MS("TIME_MS"), - + TIME_US("TIME_US"), - + TIME_NS("TIME_NS"), - + TIME_PS("TIME_PS"), - + TIME_FS("TIME_FS"), - + TIME_AS("TIME_AS"), - - BOOL("BOOL"), - - ANY("ANY"); + + BLOB("BLOB"), + + BOOL("BOOL"); private String value; diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Dimension.java b/src/main/java/io/tiledb/cloud/rest_api/model/Dimension.java index f59148b..6a43bde 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Dimension.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Dimension.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -39,7 +38,7 @@ * Dimension of array */ @ApiModel(description = "Dimension of array") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class Dimension { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/DimensionCoordinate.java b/src/main/java/io/tiledb/cloud/rest_api/model/DimensionCoordinate.java index 7011bd1..1ba0a01 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/DimensionCoordinate.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/DimensionCoordinate.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -39,7 +38,7 @@ * A single, typed coordinate for a dimension */ @ApiModel(description = "A single, typed coordinate for a dimension") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class DimensionCoordinate { public static final String SERIALIZED_NAME_INT8 = "int8"; @SerializedName(SERIALIZED_NAME_INT8) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/DimensionTileExtent.java b/src/main/java/io/tiledb/cloud/rest_api/model/DimensionTileExtent.java index d2380df..5fbfcaf 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/DimensionTileExtent.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/DimensionTileExtent.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -39,8 +38,7 @@ * Extent of tile */ @ApiModel(description = "Extent of tile") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class DimensionTileExtent { public static final String SERIALIZED_NAME_INT8 = "int8"; @SerializedName(SERIALIZED_NAME_INT8) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Domain.java b/src/main/java/io/tiledb/cloud/rest_api/model/Domain.java index d6b6a15..0b9174d 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Domain.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Domain.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -42,7 +41,7 @@ * Domain of array */ @ApiModel(description = "Domain of array") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class Domain { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/DomainArray.java b/src/main/java/io/tiledb/cloud/rest_api/model/DomainArray.java index 864474a..b4915ea 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/DomainArray.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/DomainArray.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -41,7 +40,7 @@ * Domain object for an array of each type */ @ApiModel(description = "Domain object for an array of each type") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class DomainArray { public static final String SERIALIZED_NAME_INT8 = "int8"; @SerializedName(SERIALIZED_NAME_INT8) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/DomainCheckResult.java b/src/main/java/io/tiledb/cloud/rest_api/model/DomainCheckResult.java index 07d164f..01523c7 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/DomainCheckResult.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/DomainCheckResult.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -40,7 +39,7 @@ * The record of a check of a single domain's status. */ @ApiModel(description = "The record of a check of a single domain's status.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class DomainCheckResult { public static final String SERIALIZED_NAME_TIME = "time"; @SerializedName(SERIALIZED_NAME_TIME) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/DomainCheckStatus.java b/src/main/java/io/tiledb/cloud/rest_api/model/DomainCheckStatus.java index 4a95b20..0945df0 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/DomainCheckStatus.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/DomainCheckStatus.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package io.tiledb.cloud.rest_api.model; + import java.io.IOException; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/DomainVerificationStatus.java b/src/main/java/io/tiledb/cloud/rest_api/model/DomainVerificationStatus.java index f88c59c..fc9c8eb 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/DomainVerificationStatus.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/DomainVerificationStatus.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package io.tiledb.cloud.rest_api.model; + import java.io.IOException; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Enumeration.java b/src/main/java/io/tiledb/cloud/rest_api/model/Enumeration.java new file mode 100644 index 0000000..40f4368 --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Enumeration.java @@ -0,0 +1,476 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.17.51 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; + +import io.tiledb.cloud.rest_api.JSON; + +/** + * The enumerations of a single attribute + */ +@ApiModel(description = "The enumerations of a single attribute") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") +public class Enumeration { + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_PATH_NAME = "path_name"; + @SerializedName(SERIALIZED_NAME_PATH_NAME) + private String pathName; + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; + + public static final String SERIALIZED_NAME_CELL_VAL_NUM = "cell_val_num"; + @SerializedName(SERIALIZED_NAME_CELL_VAL_NUM) + private Integer cellValNum; + + public static final String SERIALIZED_NAME_ORDERED = "ordered"; + @SerializedName(SERIALIZED_NAME_ORDERED) + private Boolean ordered; + + public static final String SERIALIZED_NAME_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) + private List data = null; + + public static final String SERIALIZED_NAME_OFFSETS = "offsets"; + @SerializedName(SERIALIZED_NAME_OFFSETS) + private List offsets = null; + + public Enumeration() { + } + + public Enumeration name(String name) { + + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public Enumeration pathName(String pathName) { + + this.pathName = pathName; + return this; + } + + /** + * Get pathName + * @return pathName + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getPathName() { + return pathName; + } + + + public void setPathName(String pathName) { + this.pathName = pathName; + } + + + public Enumeration type(String type) { + + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getType() { + return type; + } + + + public void setType(String type) { + this.type = type; + } + + + public Enumeration cellValNum(Integer cellValNum) { + + this.cellValNum = cellValNum; + return this; + } + + /** + * Get cellValNum + * @return cellValNum + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Integer getCellValNum() { + return cellValNum; + } + + + public void setCellValNum(Integer cellValNum) { + this.cellValNum = cellValNum; + } + + + public Enumeration ordered(Boolean ordered) { + + this.ordered = ordered; + return this; + } + + /** + * Get ordered + * @return ordered + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Boolean getOrdered() { + return ordered; + } + + + public void setOrdered(Boolean ordered) { + this.ordered = ordered; + } + + + public Enumeration data(List data) { + + this.data = data; + return this; + } + + public Enumeration addDataItem(Integer dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public List getData() { + return data; + } + + + public void setData(List data) { + this.data = data; + } + + + public Enumeration offsets(List offsets) { + + this.offsets = offsets; + return this; + } + + public Enumeration addOffsetsItem(Integer offsetsItem) { + if (this.offsets == null) { + this.offsets = new ArrayList<>(); + } + this.offsets.add(offsetsItem); + return this; + } + + /** + * Get offsets + * @return offsets + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public List getOffsets() { + return offsets; + } + + + public void setOffsets(List offsets) { + this.offsets = offsets; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public Enumeration putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Enumeration enumeration = (Enumeration) o; + return Objects.equals(this.name, enumeration.name) && + Objects.equals(this.pathName, enumeration.pathName) && + Objects.equals(this.type, enumeration.type) && + Objects.equals(this.cellValNum, enumeration.cellValNum) && + Objects.equals(this.ordered, enumeration.ordered) && + Objects.equals(this.data, enumeration.data) && + Objects.equals(this.offsets, enumeration.offsets)&& + Objects.equals(this.additionalProperties, enumeration.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(name, pathName, type, cellValNum, ordered, data, offsets, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Enumeration {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" pathName: ").append(toIndentedString(pathName)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" cellValNum: ").append(toIndentedString(cellValNum)).append("\n"); + sb.append(" ordered: ").append(toIndentedString(ordered)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" offsets: ").append(toIndentedString(offsets)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("name"); + openapiFields.add("path_name"); + openapiFields.add("type"); + openapiFields.add("cell_val_num"); + openapiFields.add("ordered"); + openapiFields.add("data"); + openapiFields.add("offsets"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to Enumeration + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (Enumeration.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in Enumeration is not found in the empty JSON string", Enumeration.openapiRequiredFields.toString())); + } + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("path_name") != null && !jsonObj.get("path_name").isJsonNull()) && !jsonObj.get("path_name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `path_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path_name").toString())); + } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !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())); + } + // ensure the json data is an array + if ((jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) && !jsonObj.get("data").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `data` to be an array in the JSON string but got `%s`", jsonObj.get("data").toString())); + } + // ensure the json data is an array + if ((jsonObj.get("offsets") != null && !jsonObj.get("offsets").isJsonNull()) && !jsonObj.get("offsets").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `offsets` to be an array in the JSON string but got `%s`", jsonObj.get("offsets").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!Enumeration.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'Enumeration' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(Enumeration.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, Enumeration value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public Enumeration read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + Enumeration instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of Enumeration given an JSON string + * + * @param jsonString JSON string + * @return An instance of Enumeration + * @throws IOException if the JSON string is invalid with respect to Enumeration + */ + public static Enumeration fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, Enumeration.class); + } + + /** + * Convert an instance of Enumeration to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Error.java b/src/main/java/io/tiledb/cloud/rest_api/model/Error.java index 2189a99..dd67d3d 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Error.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Error.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -37,7 +36,7 @@ /** * Error */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class Error { public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/FileCreate.java b/src/main/java/io/tiledb/cloud/rest_api/model/FileCreate.java index 146e8f0..858b895 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/FileCreate.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/FileCreate.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -39,8 +38,7 @@ * Input/Output information required to create a new file */ @ApiModel(description = "Input/Output information required to create a new file") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class FileCreate { public static final String SERIALIZED_NAME_INPUT_URI = "input_uri"; @SerializedName(SERIALIZED_NAME_INPUT_URI) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/FileCreated.java b/src/main/java/io/tiledb/cloud/rest_api/model/FileCreated.java index e409d13..22fcbba 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/FileCreated.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/FileCreated.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -39,8 +38,7 @@ * Created file name and information */ @ApiModel(description = "Created file name and information") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class FileCreated { public static final String SERIALIZED_NAME_OUTPUT_URI = "output_uri"; @SerializedName(SERIALIZED_NAME_OUTPUT_URI) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/FileExport.java b/src/main/java/io/tiledb/cloud/rest_api/model/FileExport.java index 5dcc4bc..5700f48 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/FileExport.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/FileExport.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -39,7 +38,7 @@ * Output information required to export a file */ @ApiModel(description = "Output information required to export a file") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class FileExport { public static final String SERIALIZED_NAME_OUTPUT_URI = "output_uri"; @SerializedName(SERIALIZED_NAME_OUTPUT_URI) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/FileExported.java b/src/main/java/io/tiledb/cloud/rest_api/model/FileExported.java index 427c35a..a6e1848 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/FileExported.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/FileExported.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -39,7 +38,7 @@ * Output uri of the exported file */ @ApiModel(description = "Output uri of the exported file") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class FileExported { public static final String SERIALIZED_NAME_OUTPUT_URI = "output_uri"; @SerializedName(SERIALIZED_NAME_OUTPUT_URI) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/FilePropertyName.java b/src/main/java/io/tiledb/cloud/rest_api/model/FilePropertyName.java index b6a0be4..b8927bb 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/FilePropertyName.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/FilePropertyName.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package io.tiledb.cloud.rest_api.model; + import java.io.IOException; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/FileType.java b/src/main/java/io/tiledb/cloud/rest_api/model/FileType.java index b4ec9a5..29d8378 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/FileType.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/FileType.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package io.tiledb.cloud.rest_api.model; + import java.io.IOException; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/FileUploaded.java b/src/main/java/io/tiledb/cloud/rest_api/model/FileUploaded.java index c77dcad..10c2b96 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/FileUploaded.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/FileUploaded.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -39,7 +38,7 @@ * Uploaded file name and information */ @ApiModel(description = "Uploaded file name and information") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class FileUploaded { public static final String SERIALIZED_NAME_OUTPUT_URI = "output_uri"; @SerializedName(SERIALIZED_NAME_OUTPUT_URI) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Filter.java b/src/main/java/io/tiledb/cloud/rest_api/model/Filter.java index f593eff..3781e41 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Filter.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Filter.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -39,7 +38,7 @@ * Filter */ @ApiModel(description = "Filter") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class Filter { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/FilterData.java b/src/main/java/io/tiledb/cloud/rest_api/model/FilterData.java index 74efd6d..0debc4b 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/FilterData.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/FilterData.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -39,7 +38,7 @@ * Filter data */ @ApiModel(description = "Filter data") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class FilterData { public static final String SERIALIZED_NAME_INT8 = "int8"; @SerializedName(SERIALIZED_NAME_INT8) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/FilterOption.java b/src/main/java/io/tiledb/cloud/rest_api/model/FilterOption.java index 502568c..2422220 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/FilterOption.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/FilterOption.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package io.tiledb.cloud.rest_api.model; + import java.io.IOException; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/FilterPipeline.java b/src/main/java/io/tiledb/cloud/rest_api/model/FilterPipeline.java index dc65bb1..08e9d33 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/FilterPipeline.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/FilterPipeline.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -42,7 +41,7 @@ * One or more filters to apply */ @ApiModel(description = "One or more filters to apply") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class FilterPipeline { public static final String SERIALIZED_NAME_FILTERS = "filters"; @SerializedName(SERIALIZED_NAME_FILTERS) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/FilterType.java b/src/main/java/io/tiledb/cloud/rest_api/model/FilterType.java index 7f62564..b1be4b6 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/FilterType.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/FilterType.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package io.tiledb.cloud.rest_api.model; + import java.io.IOException; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/FragmentInfo.java b/src/main/java/io/tiledb/cloud/rest_api/model/FragmentInfo.java index 31a51b0..2bc5b79 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/FragmentInfo.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/FragmentInfo.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -34,7 +33,9 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; +import java.util.Map; import io.tiledb.cloud.rest_api.JSON; @@ -42,7 +43,7 @@ * Fragment info of an array */ @ApiModel(description = "Fragment info of an array") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class FragmentInfo { public static final String SERIALIZED_NAME_ARRAY_SCHEMA_ALL = "arraySchemaAll"; @SerializedName(SERIALIZED_NAME_ARRAY_SCHEMA_ALL) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/FragmentInfoRequest.java b/src/main/java/io/tiledb/cloud/rest_api/model/FragmentInfoRequest.java index 0bc0f1f..f13cf83 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/FragmentInfoRequest.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/FragmentInfoRequest.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -39,7 +38,7 @@ * Fragment info request */ @ApiModel(description = "Fragment info request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class FragmentInfoRequest { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/FragmentMetadata.java b/src/main/java/io/tiledb/cloud/rest_api/model/FragmentMetadata.java index 7de1e32..6f70a69 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/FragmentMetadata.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/FragmentMetadata.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -41,7 +40,7 @@ * Fragment Metadata */ @ApiModel(description = "Fragment Metadata") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class FragmentMetadata { public static final String SERIALIZED_NAME_FILE_SIZES = "fileSizes"; @SerializedName(SERIALIZED_NAME_FILE_SIZES) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GenericUDF.java b/src/main/java/io/tiledb/cloud/rest_api/model/GenericUDF.java index 2642b82..b99a610 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GenericUDF.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GenericUDF.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -41,7 +40,7 @@ * User-defined function */ @ApiModel(description = "User-defined function") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class GenericUDF { public static final String SERIALIZED_NAME_UDF_INFO_NAME = "udf_info_name"; @SerializedName(SERIALIZED_NAME_UDF_INFO_NAME) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GetTiledbStats200Response.java b/src/main/java/io/tiledb/cloud/rest_api/model/GetTiledbStats200Response.java index 7b9da9a..49fa02e 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GetTiledbStats200Response.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GetTiledbStats200Response.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -37,8 +36,7 @@ /** * GetTiledbStats200Response */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class GetTiledbStats200Response { public static final String SERIALIZED_NAME_STATS = "stats"; @SerializedName(SERIALIZED_NAME_STATS) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupActions.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupActions.java index c163a08..accbb0c 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupActions.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupActions.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package io.tiledb.cloud.rest_api.model; + import java.io.IOException; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupActivity.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupActivity.java index 2e121ce..3d0d6c4 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupActivity.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupActivity.java @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -39,7 +38,7 @@ * Object containing activity of an asset of a group */ @ApiModel(description = "Object containing activity of an asset of a group") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:07:56.250391Z[Etc/UTC]") public class GroupActivity { public static final String SERIALIZED_NAME_ASSET = "asset"; @SerializedName(SERIALIZED_NAME_ASSET) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupActivityAsset.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupActivityAsset.java index f4302a5..941fc37 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupActivityAsset.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupActivityAsset.java @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -39,7 +38,7 @@ * The asset details */ @ApiModel(description = "The asset details") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:07:56.250391Z[Etc/UTC]") public class GroupActivityAsset { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupActivityResponse.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupActivityResponse.java index 8cd3c58..da6f620 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupActivityResponse.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupActivityResponse.java @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -42,7 +41,7 @@ * Object containing activity logs of group content along with the pagination metadata */ @ApiModel(description = "Object containing activity logs of group content along with the pagination metadata") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:07:56.250391Z[Etc/UTC]") public class GroupActivityResponse { public static final String SERIALIZED_NAME_ACTIVITY = "activity"; @SerializedName(SERIALIZED_NAME_ACTIVITY) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupBrowserData.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupBrowserData.java index a1f7649..be5f606 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupBrowserData.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupBrowserData.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -42,8 +41,7 @@ * Object including group info and pagination metadata */ @ApiModel(description = "Object including group info and pagination metadata") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class GroupBrowserData { public static final String SERIALIZED_NAME_GROUPS = "groups"; @SerializedName(SERIALIZED_NAME_GROUPS) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupBrowserFilterData.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupBrowserFilterData.java index 336fea5..e32fe82 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupBrowserFilterData.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupBrowserFilterData.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -41,8 +40,7 @@ * Object with data to fill browser filter */ @ApiModel(description = "Object with data to fill browser filter") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class GroupBrowserFilterData { public static final String SERIALIZED_NAME_NAMESPACES = "namespaces"; @SerializedName(SERIALIZED_NAME_NAMESPACES) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupChanges.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupChanges.java index d78ff41..5cfbfd6 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupChanges.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupChanges.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -42,8 +41,7 @@ * A request to change the members of a group. Contains assets to add or remove. */ @ApiModel(description = "A request to change the members of a group. Contains assets to add or remove.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class GroupChanges { public static final String SERIALIZED_NAME_ADD = "add"; @SerializedName(SERIALIZED_NAME_ADD) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivity.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivity.java new file mode 100644 index 0000000..c426a49 --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivity.java @@ -0,0 +1,299 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.17.51 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +import com.google.gson.Gson; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; + +import io.tiledb.cloud.rest_api.JSON; + +/** + * Object containing activity of an asset of a group + */ +@ApiModel(description = "Object containing activity of an asset of a group") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") +public class GroupContentActivity { + public static final String SERIALIZED_NAME_ASSET = "asset"; + @SerializedName(SERIALIZED_NAME_ASSET) + private GroupContentActivityAsset asset; + + public static final String SERIALIZED_NAME_ACTIVITY_LOG = "activity_log"; + @SerializedName(SERIALIZED_NAME_ACTIVITY_LOG) + private ArrayActivityLog activityLog; + + public GroupContentActivity() { + } + + public GroupContentActivity asset(GroupContentActivityAsset asset) { + + this.asset = asset; + return this; + } + + /** + * Get asset + * @return asset + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public GroupContentActivityAsset getAsset() { + return asset; + } + + + public void setAsset(GroupContentActivityAsset asset) { + this.asset = asset; + } + + + public GroupContentActivity activityLog(ArrayActivityLog activityLog) { + + this.activityLog = activityLog; + return this; + } + + /** + * Get activityLog + * @return activityLog + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public ArrayActivityLog getActivityLog() { + return activityLog; + } + + + public void setActivityLog(ArrayActivityLog activityLog) { + this.activityLog = activityLog; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public GroupContentActivity putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GroupContentActivity groupContentActivity = (GroupContentActivity) o; + return Objects.equals(this.asset, groupContentActivity.asset) && + Objects.equals(this.activityLog, groupContentActivity.activityLog)&& + Objects.equals(this.additionalProperties, groupContentActivity.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(asset, activityLog, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GroupContentActivity {\n"); + sb.append(" asset: ").append(toIndentedString(asset)).append("\n"); + sb.append(" activityLog: ").append(toIndentedString(activityLog)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).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("asset"); + openapiFields.add("activity_log"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to GroupContentActivity + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (GroupContentActivity.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in GroupContentActivity is not found in the empty JSON string", GroupContentActivity.openapiRequiredFields.toString())); + } + } + // validate the optional field `asset` + if (jsonObj.get("asset") != null && !jsonObj.get("asset").isJsonNull()) { + GroupContentActivityAsset.validateJsonObject(jsonObj.getAsJsonObject("asset")); + } + // validate the optional field `activity_log` + if (jsonObj.get("activity_log") != null && !jsonObj.get("activity_log").isJsonNull()) { + ArrayActivityLog.validateJsonObject(jsonObj.getAsJsonObject("activity_log")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GroupContentActivity.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GroupContentActivity' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GroupContentActivity.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GroupContentActivity value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public GroupContentActivity read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + GroupContentActivity instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of GroupContentActivity given an JSON string + * + * @param jsonString JSON string + * @return An instance of GroupContentActivity + * @throws IOException if the JSON string is invalid with respect to GroupContentActivity + */ + public static GroupContentActivity fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GroupContentActivity.class); + } + + /** + * Convert an instance of GroupContentActivity to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivityAsset.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivityAsset.java new file mode 100644 index 0000000..17814b1 --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivityAsset.java @@ -0,0 +1,360 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.17.51 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +import com.google.gson.Gson; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; + +import io.tiledb.cloud.rest_api.JSON; + +/** + * The asset details + */ +@ApiModel(description = "The asset details") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") +public class GroupContentActivityAsset { + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private String id; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; + @SerializedName(SERIALIZED_NAME_NAMESPACE) + private String namespace; + + public static final String SERIALIZED_NAME_ASSET_TYPE = "asset_type"; + @SerializedName(SERIALIZED_NAME_ASSET_TYPE) + private AssetType assetType; + + public GroupContentActivityAsset() { + } + + public GroupContentActivityAsset id(String id) { + + this.id = id; + return this; + } + + /** + * The asset ID + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The asset ID") + + public String getId() { + return id; + } + + + public void setId(String id) { + this.id = id; + } + + + public GroupContentActivityAsset name(String name) { + + this.name = name; + return this; + } + + /** + * The asset name + * @return name + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The asset name") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public GroupContentActivityAsset namespace(String namespace) { + + this.namespace = namespace; + return this; + } + + /** + * The namespace that the asset belongs to + * @return namespace + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The namespace that the asset belongs to") + + public String getNamespace() { + return namespace; + } + + + public void setNamespace(String namespace) { + this.namespace = namespace; + } + + + public GroupContentActivityAsset assetType(AssetType assetType) { + + this.assetType = assetType; + return this; + } + + /** + * Get assetType + * @return assetType + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public AssetType getAssetType() { + return assetType; + } + + + public void setAssetType(AssetType assetType) { + this.assetType = assetType; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public GroupContentActivityAsset putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GroupContentActivityAsset groupContentActivityAsset = (GroupContentActivityAsset) o; + return Objects.equals(this.id, groupContentActivityAsset.id) && + Objects.equals(this.name, groupContentActivityAsset.name) && + Objects.equals(this.namespace, groupContentActivityAsset.namespace) && + Objects.equals(this.assetType, groupContentActivityAsset.assetType)&& + Objects.equals(this.additionalProperties, groupContentActivityAsset.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, namespace, assetType, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GroupContentActivityAsset {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); + sb.append(" assetType: ").append(toIndentedString(assetType)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).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("id"); + openapiFields.add("name"); + openapiFields.add("namespace"); + openapiFields.add("asset_type"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to GroupContentActivityAsset + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (GroupContentActivityAsset.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in GroupContentActivityAsset is not found in the empty JSON string", GroupContentActivityAsset.openapiRequiredFields.toString())); + } + } + if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GroupContentActivityAsset.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GroupContentActivityAsset' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GroupContentActivityAsset.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GroupContentActivityAsset value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public GroupContentActivityAsset read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + GroupContentActivityAsset instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of GroupContentActivityAsset given an JSON string + * + * @param jsonString JSON string + * @return An instance of GroupContentActivityAsset + * @throws IOException if the JSON string is invalid with respect to GroupContentActivityAsset + */ + public static GroupContentActivityAsset fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GroupContentActivityAsset.class); + } + + /** + * Convert an instance of GroupContentActivityAsset to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivityResponse.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivityResponse.java new file mode 100644 index 0000000..46e7ce6 --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivityResponse.java @@ -0,0 +1,318 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.17.51 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.JsonArray; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; + +import io.tiledb.cloud.rest_api.JSON; + +/** + * Object containing activity logs of group content along with the pagination metadata + */ +@ApiModel(description = "Object containing activity logs of group content along with the pagination metadata") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") +public class GroupContentActivityResponse { + public static final String SERIALIZED_NAME_ACTIVITY = "activity"; + @SerializedName(SERIALIZED_NAME_ACTIVITY) + private List activity = null; + + public static final String SERIALIZED_NAME_PAGINATION_METADATA = "pagination_metadata"; + @SerializedName(SERIALIZED_NAME_PAGINATION_METADATA) + private PaginationMetadata paginationMetadata; + + public GroupContentActivityResponse() { + } + + public GroupContentActivityResponse activity(List activity) { + + this.activity = activity; + return this; + } + + public GroupContentActivityResponse addActivityItem(GroupContentActivity activityItem) { + if (this.activity == null) { + this.activity = new ArrayList<>(); + } + this.activity.add(activityItem); + return this; + } + + /** + * Activity of a group's content + * @return activity + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Activity of a group's content") + + public List getActivity() { + return activity; + } + + + public void setActivity(List activity) { + this.activity = activity; + } + + + public GroupContentActivityResponse paginationMetadata(PaginationMetadata paginationMetadata) { + + this.paginationMetadata = paginationMetadata; + return this; + } + + /** + * Get paginationMetadata + * @return paginationMetadata + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public PaginationMetadata getPaginationMetadata() { + return paginationMetadata; + } + + + public void setPaginationMetadata(PaginationMetadata paginationMetadata) { + this.paginationMetadata = paginationMetadata; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public GroupContentActivityResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GroupContentActivityResponse groupContentActivityResponse = (GroupContentActivityResponse) o; + return Objects.equals(this.activity, groupContentActivityResponse.activity) && + Objects.equals(this.paginationMetadata, groupContentActivityResponse.paginationMetadata)&& + Objects.equals(this.additionalProperties, groupContentActivityResponse.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(activity, paginationMetadata, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GroupContentActivityResponse {\n"); + sb.append(" activity: ").append(toIndentedString(activity)).append("\n"); + sb.append(" paginationMetadata: ").append(toIndentedString(paginationMetadata)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).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("activity"); + openapiFields.add("pagination_metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to GroupContentActivityResponse + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (GroupContentActivityResponse.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in GroupContentActivityResponse is not found in the empty JSON string", GroupContentActivityResponse.openapiRequiredFields.toString())); + } + } + JsonArray jsonArrayactivity = jsonObj.getAsJsonArray("activity"); + if (jsonArrayactivity != null) { + // ensure the json data is an array + if (!jsonObj.get("activity").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `activity` to be an array in the JSON string but got `%s`", jsonObj.get("activity").toString())); + } + + // validate the optional field `activity` (array) + for (int i = 0; i < jsonArrayactivity.size(); i++) { + GroupContentActivity.validateJsonObject(jsonArrayactivity.get(i).getAsJsonObject()); + }; + } + // validate the optional field `pagination_metadata` + if (jsonObj.get("pagination_metadata") != null && !jsonObj.get("pagination_metadata").isJsonNull()) { + PaginationMetadata.validateJsonObject(jsonObj.getAsJsonObject("pagination_metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GroupContentActivityResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GroupContentActivityResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GroupContentActivityResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GroupContentActivityResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public GroupContentActivityResponse read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + GroupContentActivityResponse instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of GroupContentActivityResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of GroupContentActivityResponse + * @throws IOException if the JSON string is invalid with respect to GroupContentActivityResponse + */ + public static GroupContentActivityResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GroupContentActivityResponse.class); + } + + /** + * Convert an instance of GroupContentActivityResponse to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupContents.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupContents.java index 8edd821..00d1829 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupContents.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupContents.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -42,7 +41,7 @@ * Object including a page of members of a group and pagination metadata */ @ApiModel(description = "Object including a page of members of a group and pagination metadata") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class GroupContents { public static final String SERIALIZED_NAME_ENTRIES = "entries"; @SerializedName(SERIALIZED_NAME_ENTRIES) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentsFilterData.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentsFilterData.java index 2c2c072..5633ddd 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentsFilterData.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentsFilterData.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -41,7 +40,7 @@ * Object with data to fill contents filter */ @ApiModel(description = "Object with data to fill contents filter") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class GroupContentsFilterData { public static final String SERIALIZED_NAME_NAMESPACES = "namespaces"; @SerializedName(SERIALIZED_NAME_NAMESPACES) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupCreate.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupCreate.java index f10112b..18d565c 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupCreate.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupCreate.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -41,7 +40,7 @@ * Initial attributes for the creation of a group. */ @ApiModel(description = "Initial attributes for the creation of a group.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class GroupCreate { public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupEntry.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupEntry.java index 9c9e8b3..dca7646 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupEntry.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupEntry.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -39,8 +38,7 @@ * Object describing a single member of a group, which can be an array or a group */ @ApiModel(description = "Object describing a single member of a group, which can be an array or a group") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class GroupEntry { public static final String SERIALIZED_NAME_MEMBER_ID = "member_id"; @SerializedName(SERIALIZED_NAME_MEMBER_ID) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupInfo.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupInfo.java index 13f5d45..cb9103a 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupInfo.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupInfo.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -26,11 +26,10 @@ import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.List; - -import io.tiledb.cloud.rest_api.JSON; import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; +import com.google.gson.JsonArray; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.TypeAdapterFactory; @@ -40,11 +39,13 @@ import java.util.HashSet; import java.util.Map; +import io.tiledb.cloud.rest_api.JSON; + /** * metadata of a group */ @ApiModel(description = "metadata of a group") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class GroupInfo { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -122,6 +123,18 @@ public class GroupInfo { @SerializedName(SERIALIZED_NAME_LICENSE_TEXT) private String licenseText; + public static final String SERIALIZED_NAME_CREATED_AT = "created_at"; + @SerializedName(SERIALIZED_NAME_CREATED_AT) + private OffsetDateTime createdAt; + + public static final String SERIALIZED_NAME_CREATED_BY = "created_by"; + @SerializedName(SERIALIZED_NAME_CREATED_BY) + private String createdBy; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private List metadata = null; + public GroupInfo() { } @@ -577,6 +590,83 @@ public void setLicenseText(String licenseText) { this.licenseText = licenseText; } + + public GroupInfo createdAt(OffsetDateTime createdAt) { + + this.createdAt = createdAt; + return this; + } + + /** + * Datetime the group was registered with tiledb + * @return createdAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Datetime the group was registered with tiledb") + + public OffsetDateTime getCreatedAt() { + return createdAt; + } + + + public void setCreatedAt(OffsetDateTime createdAt) { + this.createdAt = createdAt; + } + + + public GroupInfo createdBy(String createdBy) { + + this.createdBy = createdBy; + return this; + } + + /** + * The username of the group's creator, if known. + * @return createdBy + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The username of the group's creator, if known.") + + public String getCreatedBy() { + return createdBy; + } + + + public void setCreatedBy(String createdBy) { + this.createdBy = createdBy; + } + + + public GroupInfo metadata(List metadata) { + + this.metadata = metadata; + return this; + } + + public GroupInfo addMetadataItem(MetadataStringifiedEntry metadataItem) { + if (this.metadata == null) { + this.metadata = new ArrayList<>(); + } + this.metadata.add(metadataItem); + return this; + } + + /** + * Contains metadata of the group. **Note:** This property is included in the response only if the `with_metadata` query parameter is set to `true`. + * @return metadata + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Contains metadata of the group. **Note:** This property is included in the response only if the `with_metadata` query parameter is set to `true`. ") + + public List getMetadata() { + return metadata; + } + + + public void setMetadata(List metadata) { + this.metadata = metadata; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -641,7 +731,10 @@ public boolean equals(Object o) { Objects.equals(this.publicShare, groupInfo.publicShare) && Objects.equals(this.tags, groupInfo.tags) && Objects.equals(this.licenseId, groupInfo.licenseId) && - Objects.equals(this.licenseText, groupInfo.licenseText)&& + Objects.equals(this.licenseText, groupInfo.licenseText) && + Objects.equals(this.createdAt, groupInfo.createdAt) && + Objects.equals(this.createdBy, groupInfo.createdBy) && + Objects.equals(this.metadata, groupInfo.metadata)&& Objects.equals(this.additionalProperties, groupInfo.additionalProperties); } @@ -651,7 +744,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(id, namespace, name, description, uri, tiledbUri, assetCount, groupCount, size, lastAccessed, allowedActions, groupType, logo, accessCredentialsName, shareCount, publicShare, tags, licenseId, licenseText, additionalProperties); + return Objects.hash(id, namespace, name, description, uri, tiledbUri, assetCount, groupCount, size, lastAccessed, allowedActions, groupType, logo, accessCredentialsName, shareCount, publicShare, tags, licenseId, licenseText, createdAt, createdBy, metadata, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -684,6 +777,9 @@ public String toString() { sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" licenseId: ").append(toIndentedString(licenseId)).append("\n"); sb.append(" licenseText: ").append(toIndentedString(licenseText)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" createdBy: ").append(toIndentedString(createdBy)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -726,6 +822,9 @@ private String toIndentedString(Object o) { openapiFields.add("tags"); openapiFields.add("license_id"); openapiFields.add("license_text"); + openapiFields.add("created_at"); + openapiFields.add("created_by"); + openapiFields.add("metadata"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -783,6 +882,21 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if ((jsonObj.get("license_text") != null && !jsonObj.get("license_text").isJsonNull()) && !jsonObj.get("license_text").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `license_text` to be a primitive type in the JSON string but got `%s`", jsonObj.get("license_text").toString())); } + if ((jsonObj.get("created_by") != null && !jsonObj.get("created_by").isJsonNull()) && !jsonObj.get("created_by").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `created_by` to be a primitive type in the JSON string but got `%s`", jsonObj.get("created_by").toString())); + } + JsonArray jsonArraymetadata = jsonObj.getAsJsonArray("metadata"); + if (jsonArraymetadata != null) { + // ensure the json data is an array + if (!jsonObj.get("metadata").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `metadata` to be an array in the JSON string but got `%s`", jsonObj.get("metadata").toString())); + } + + // validate the optional field `metadata` (array) + for (int i = 0; i < jsonArraymetadata.size(); i++) { + MetadataStringifiedEntry.validateJsonObject(jsonArraymetadata.get(i).getAsJsonObject()); + }; + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupMember.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupMember.java index df2b9b1..e32c5f2 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupMember.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupMember.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -39,7 +38,7 @@ * A groups member, array or another groups, to add or remove from an existing group. */ @ApiModel(description = "A groups member, array or another groups, to add or remove from an existing group.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class GroupMember { public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; @SerializedName(SERIALIZED_NAME_NAMESPACE) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupMemberAssetType.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupMemberAssetType.java index 079806a..3e9da7c 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupMemberAssetType.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupMemberAssetType.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package io.tiledb.cloud.rest_api.model; + import java.io.IOException; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupMemberType.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupMemberType.java index 98fa6a5..0c7a1f6 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupMemberType.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupMemberType.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package io.tiledb.cloud.rest_api.model; + import java.io.IOException; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupRegister.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupRegister.java index cb9e953..632fa8b 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupRegister.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupRegister.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -41,7 +40,7 @@ * Initial attributes for the registration of a an existing group. */ @ApiModel(description = "Initial attributes for the registration of a an existing group.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class GroupRegister { public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupSharing.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupSharing.java index 731ac3a..c9b3cbd 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupSharing.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupSharing.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -41,7 +40,7 @@ * sharing state of a group with a namespace */ @ApiModel(description = "sharing state of a group with a namespace") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class GroupSharing { public static final String SERIALIZED_NAME_GROUP_ACTIONS = "group_actions"; @SerializedName(SERIALIZED_NAME_GROUP_ACTIONS) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupSharingRequest.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupSharingRequest.java index c5b8d56..37bc123 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupSharingRequest.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupSharingRequest.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -41,7 +40,7 @@ * a request to share a group and all the contents with a namespace */ @ApiModel(description = "a request to share a group and all the contents with a namespace") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class GroupSharingRequest { public static final String SERIALIZED_NAME_GROUP_ACTIONS = "group_actions"; @SerializedName(SERIALIZED_NAME_GROUP_ACTIONS) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupType.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupType.java index 42869a4..280a8fe 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupType.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupType.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package io.tiledb.cloud.rest_api.model; + import java.io.IOException; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupTypeMetadataKey.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupTypeMetadataKey.java index 9ddc9e0..8b27415 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupTypeMetadataKey.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupTypeMetadataKey.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package io.tiledb.cloud.rest_api.model; + import java.io.IOException; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupUpdate.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupUpdate.java index 1b4c4a1..85a954d 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/GroupUpdate.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupUpdate.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -42,8 +42,7 @@ * Updates for a group. New values for the attributes. */ @ApiModel(description = "Updates for a group. New values for the attributes.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class GroupUpdate { public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Invitation.java b/src/main/java/io/tiledb/cloud/rest_api/model/Invitation.java index 84e3a0e..1a26882 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Invitation.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Invitation.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -40,7 +39,7 @@ * Invitations to share or collaborate */ @ApiModel(description = "Invitations to share or collaborate") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class Invitation { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/InvitationArrayShareEmail.java b/src/main/java/io/tiledb/cloud/rest_api/model/InvitationArrayShareEmail.java index ab800d2..a347c62 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/InvitationArrayShareEmail.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/InvitationArrayShareEmail.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -41,7 +40,7 @@ * Encapsulates information regarding inviting people using email to share array, same permissions for all invitees */ @ApiModel(description = "Encapsulates information regarding inviting people using email to share array, same permissions for all invitees") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class InvitationArrayShareEmail { public static final String SERIALIZED_NAME_ACTIONS = "actions"; @SerializedName(SERIALIZED_NAME_ACTIONS) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/InvitationData.java b/src/main/java/io/tiledb/cloud/rest_api/model/InvitationData.java index aa30c70..c55a401 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/InvitationData.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/InvitationData.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -42,7 +41,7 @@ * Object including invitations and metadata */ @ApiModel(description = "Object including invitations and metadata") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class InvitationData { public static final String SERIALIZED_NAME_INVITATIONS = "invitations"; @SerializedName(SERIALIZED_NAME_INVITATIONS) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/InvitationFailedRecipients.java b/src/main/java/io/tiledb/cloud/rest_api/model/InvitationFailedRecipients.java index caff6b6..92e9c0b 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/InvitationFailedRecipients.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/InvitationFailedRecipients.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -41,7 +40,7 @@ * Encapsulates information regarding the failed invitation recipients */ @ApiModel(description = "Encapsulates information regarding the failed invitation recipients") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class InvitationFailedRecipients { public static final String SERIALIZED_NAME_FAILED_RECIPIENTS = "failed_recipients"; @SerializedName(SERIALIZED_NAME_FAILED_RECIPIENTS) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/InvitationGroupShareEmail.java b/src/main/java/io/tiledb/cloud/rest_api/model/InvitationGroupShareEmail.java index 946f4db..85c114f 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/InvitationGroupShareEmail.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/InvitationGroupShareEmail.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -41,7 +40,7 @@ * Encapsulates information regarding inviting people using email to share group, same permissions for all invitees */ @ApiModel(description = "Encapsulates information regarding inviting people using email to share group, same permissions for all invitees") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class InvitationGroupShareEmail { public static final String SERIALIZED_NAME_ARRAY_ACTIONS = "array_actions"; @SerializedName(SERIALIZED_NAME_ARRAY_ACTIONS) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/InvitationOrganizationJoinEmail.java b/src/main/java/io/tiledb/cloud/rest_api/model/InvitationOrganizationJoinEmail.java index db83662..f51519c 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/InvitationOrganizationJoinEmail.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/InvitationOrganizationJoinEmail.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -41,8 +40,7 @@ * Encapsulates information regarding inviting people using email to join organization, same permissions for all invitees */ @ApiModel(description = "Encapsulates information regarding inviting people using email to join organization, same permissions for all invitees") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class InvitationOrganizationJoinEmail { public static final String SERIALIZED_NAME_ACTIONS = "actions"; @SerializedName(SERIALIZED_NAME_ACTIONS) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/InvitationStatus.java b/src/main/java/io/tiledb/cloud/rest_api/model/InvitationStatus.java index 7a94bd6..a454265 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/InvitationStatus.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/InvitationStatus.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package io.tiledb.cloud.rest_api.model; + import java.io.IOException; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/InvitationType.java b/src/main/java/io/tiledb/cloud/rest_api/model/InvitationType.java index 4b73767..11b877a 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/InvitationType.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/InvitationType.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package io.tiledb.cloud.rest_api.model; + import java.io.IOException; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -29,7 +30,9 @@ public enum InvitationType { GROUP_SHARE("GROUP_SHARE"), - JOIN_ORGANIZATION("JOIN_ORGANIZATION"); + JOIN_ORGANIZATION("JOIN_ORGANIZATION"), + + PAYMENT_SHARE("PAYMENT_SHARE"); private String value; diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/LastAccessedArray.java b/src/main/java/io/tiledb/cloud/rest_api/model/LastAccessedArray.java index f538f94..ef2e0fb 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/LastAccessedArray.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/LastAccessedArray.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -40,7 +39,7 @@ * Information related to last access of an array */ @ApiModel(description = "Information related to last access of an array") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class LastAccessedArray { public static final String SERIALIZED_NAME_ARRAY_ID = "array_id"; @SerializedName(SERIALIZED_NAME_ARRAY_ID) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Layout.java b/src/main/java/io/tiledb/cloud/rest_api/model/Layout.java index 1590f22..457f9a8 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Layout.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Layout.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package io.tiledb.cloud.rest_api.model; + import java.io.IOException; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaRequest.java b/src/main/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaRequest.java new file mode 100644 index 0000000..0170fc2 --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaRequest.java @@ -0,0 +1,265 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.17.51 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +import com.google.gson.Gson; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; + +import io.tiledb.cloud.rest_api.JSON; + +/** + * Request to load an array schema + */ +@ApiModel(description = "Request to load an array schema") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") +public class LoadArraySchemaRequest { + public static final String SERIALIZED_NAME_CONFIG = "config"; + @SerializedName(SERIALIZED_NAME_CONFIG) + private TileDBConfig config; + + public LoadArraySchemaRequest() { + } + + public LoadArraySchemaRequest config(TileDBConfig config) { + + this.config = config; + return this; + } + + /** + * Get config + * @return config + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public TileDBConfig getConfig() { + return config; + } + + + public void setConfig(TileDBConfig config) { + this.config = config; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public LoadArraySchemaRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LoadArraySchemaRequest loadArraySchemaRequest = (LoadArraySchemaRequest) o; + return Objects.equals(this.config, loadArraySchemaRequest.config)&& + Objects.equals(this.additionalProperties, loadArraySchemaRequest.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(config, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LoadArraySchemaRequest {\n"); + sb.append(" config: ").append(toIndentedString(config)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).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("config"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to LoadArraySchemaRequest + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (LoadArraySchemaRequest.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in LoadArraySchemaRequest is not found in the empty JSON string", LoadArraySchemaRequest.openapiRequiredFields.toString())); + } + } + // validate the optional field `config` + if (jsonObj.get("config") != null && !jsonObj.get("config").isJsonNull()) { + TileDBConfig.validateJsonObject(jsonObj.getAsJsonObject("config")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!LoadArraySchemaRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'LoadArraySchemaRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(LoadArraySchemaRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, LoadArraySchemaRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public LoadArraySchemaRequest read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + LoadArraySchemaRequest instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of LoadArraySchemaRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of LoadArraySchemaRequest + * @throws IOException if the JSON string is invalid with respect to LoadArraySchemaRequest + */ + public static LoadArraySchemaRequest fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, LoadArraySchemaRequest.class); + } + + /** + * Convert an instance of LoadArraySchemaRequest to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaResponse.java b/src/main/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaResponse.java new file mode 100644 index 0000000..7882cf1 --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaResponse.java @@ -0,0 +1,305 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.17.51 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +import com.google.gson.Gson; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; + +import io.tiledb.cloud.rest_api.JSON; + +/** + * Contains the latest schema and all schemas for the opened array + */ +@ApiModel(description = "Contains the latest schema and all schemas for the opened array") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") +public class LoadArraySchemaResponse { + public static final String SERIALIZED_NAME_LATEST_ARRAY_SCHEMA = "latest_array_schema"; + @SerializedName(SERIALIZED_NAME_LATEST_ARRAY_SCHEMA) + private ArraySchema latestArraySchema; + + public static final String SERIALIZED_NAME_ALL_ARRAY_SCHEMAS = "all_array_schemas"; + @SerializedName(SERIALIZED_NAME_ALL_ARRAY_SCHEMAS) + private Map allArraySchemas = null; + + public LoadArraySchemaResponse() { + } + + public LoadArraySchemaResponse latestArraySchema(ArraySchema latestArraySchema) { + + this.latestArraySchema = latestArraySchema; + return this; + } + + /** + * Get latestArraySchema + * @return latestArraySchema + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public ArraySchema getLatestArraySchema() { + return latestArraySchema; + } + + + public void setLatestArraySchema(ArraySchema latestArraySchema) { + this.latestArraySchema = latestArraySchema; + } + + + public LoadArraySchemaResponse allArraySchemas(Map allArraySchemas) { + + this.allArraySchemas = allArraySchemas; + return this; + } + + public LoadArraySchemaResponse putAllArraySchemasItem(String key, ArraySchema allArraySchemasItem) { + if (this.allArraySchemas == null) { + this.allArraySchemas = new HashMap<>(); + } + this.allArraySchemas.put(key, allArraySchemasItem); + return this; + } + + /** + * map of all array schemas + * @return allArraySchemas + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "map of all array schemas") + + public Map getAllArraySchemas() { + return allArraySchemas; + } + + + public void setAllArraySchemas(Map allArraySchemas) { + this.allArraySchemas = allArraySchemas; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public LoadArraySchemaResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LoadArraySchemaResponse loadArraySchemaResponse = (LoadArraySchemaResponse) o; + return Objects.equals(this.latestArraySchema, loadArraySchemaResponse.latestArraySchema) && + Objects.equals(this.allArraySchemas, loadArraySchemaResponse.allArraySchemas)&& + Objects.equals(this.additionalProperties, loadArraySchemaResponse.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(latestArraySchema, allArraySchemas, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LoadArraySchemaResponse {\n"); + sb.append(" latestArraySchema: ").append(toIndentedString(latestArraySchema)).append("\n"); + sb.append(" allArraySchemas: ").append(toIndentedString(allArraySchemas)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).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("latest_array_schema"); + openapiFields.add("all_array_schemas"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to LoadArraySchemaResponse + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (LoadArraySchemaResponse.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in LoadArraySchemaResponse is not found in the empty JSON string", LoadArraySchemaResponse.openapiRequiredFields.toString())); + } + } + // validate the optional field `latest_array_schema` + if (jsonObj.get("latest_array_schema") != null && !jsonObj.get("latest_array_schema").isJsonNull()) { + ArraySchema.validateJsonObject(jsonObj.getAsJsonObject("latest_array_schema")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!LoadArraySchemaResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'LoadArraySchemaResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(LoadArraySchemaResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, LoadArraySchemaResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public LoadArraySchemaResponse read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + LoadArraySchemaResponse instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of LoadArraySchemaResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of LoadArraySchemaResponse + * @throws IOException if the JSON string is invalid with respect to LoadArraySchemaResponse + */ + public static LoadArraySchemaResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, LoadArraySchemaResponse.class); + } + + /** + * Convert an instance of LoadArraySchemaResponse to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsRequest.java b/src/main/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsRequest.java new file mode 100644 index 0000000..a9cb9ff --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsRequest.java @@ -0,0 +1,309 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.17.51 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; + +import io.tiledb.cloud.rest_api.JSON; + +/** + * Request to return enumerations for attributes + */ +@ApiModel(description = "Request to return enumerations for attributes") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") +public class LoadEnumerationsRequest { + public static final String SERIALIZED_NAME_CONFIG = "config"; + @SerializedName(SERIALIZED_NAME_CONFIG) + private TileDBConfig config; + + public static final String SERIALIZED_NAME_ENUMERATIONS = "enumerations"; + @SerializedName(SERIALIZED_NAME_ENUMERATIONS) + private List enumerations = null; + + public LoadEnumerationsRequest() { + } + + public LoadEnumerationsRequest config(TileDBConfig config) { + + this.config = config; + return this; + } + + /** + * Get config + * @return config + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public TileDBConfig getConfig() { + return config; + } + + + public void setConfig(TileDBConfig config) { + this.config = config; + } + + + public LoadEnumerationsRequest enumerations(List enumerations) { + + this.enumerations = enumerations; + return this; + } + + public LoadEnumerationsRequest addEnumerationsItem(String enumerationsItem) { + if (this.enumerations == null) { + this.enumerations = new ArrayList<>(); + } + this.enumerations.add(enumerationsItem); + return this; + } + + /** + * Get enumerations + * @return enumerations + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public List getEnumerations() { + return enumerations; + } + + + public void setEnumerations(List enumerations) { + this.enumerations = enumerations; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public LoadEnumerationsRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LoadEnumerationsRequest loadEnumerationsRequest = (LoadEnumerationsRequest) o; + return Objects.equals(this.config, loadEnumerationsRequest.config) && + Objects.equals(this.enumerations, loadEnumerationsRequest.enumerations)&& + Objects.equals(this.additionalProperties, loadEnumerationsRequest.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(config, enumerations, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LoadEnumerationsRequest {\n"); + sb.append(" config: ").append(toIndentedString(config)).append("\n"); + sb.append(" enumerations: ").append(toIndentedString(enumerations)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).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("config"); + openapiFields.add("enumerations"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to LoadEnumerationsRequest + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (LoadEnumerationsRequest.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in LoadEnumerationsRequest is not found in the empty JSON string", LoadEnumerationsRequest.openapiRequiredFields.toString())); + } + } + // validate the optional field `config` + if (jsonObj.get("config") != null && !jsonObj.get("config").isJsonNull()) { + TileDBConfig.validateJsonObject(jsonObj.getAsJsonObject("config")); + } + // ensure the json data is an array + if ((jsonObj.get("enumerations") != null && !jsonObj.get("enumerations").isJsonNull()) && !jsonObj.get("enumerations").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `enumerations` to be an array in the JSON string but got `%s`", jsonObj.get("enumerations").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!LoadEnumerationsRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'LoadEnumerationsRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(LoadEnumerationsRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, LoadEnumerationsRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public LoadEnumerationsRequest read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + LoadEnumerationsRequest instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of LoadEnumerationsRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of LoadEnumerationsRequest + * @throws IOException if the JSON string is invalid with respect to LoadEnumerationsRequest + */ + public static LoadEnumerationsRequest fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, LoadEnumerationsRequest.class); + } + + /** + * Convert an instance of LoadEnumerationsRequest to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsResponse.java b/src/main/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsResponse.java new file mode 100644 index 0000000..69ed18d --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsResponse.java @@ -0,0 +1,284 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.17.51 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.JsonArray; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; + +import io.tiledb.cloud.rest_api.JSON; + +/** + * Contains the enumerations of the array's attributes + */ +@ApiModel(description = "Contains the enumerations of the array's attributes") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") +public class LoadEnumerationsResponse { + public static final String SERIALIZED_NAME_ENUMERATIONS = "enumerations"; + @SerializedName(SERIALIZED_NAME_ENUMERATIONS) + private List enumerations = null; + + public LoadEnumerationsResponse() { + } + + public LoadEnumerationsResponse enumerations(List enumerations) { + + this.enumerations = enumerations; + return this; + } + + public LoadEnumerationsResponse addEnumerationsItem(Enumeration enumerationsItem) { + if (this.enumerations == null) { + this.enumerations = new ArrayList<>(); + } + this.enumerations.add(enumerationsItem); + return this; + } + + /** + * Get enumerations + * @return enumerations + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public List getEnumerations() { + return enumerations; + } + + + public void setEnumerations(List enumerations) { + this.enumerations = enumerations; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public LoadEnumerationsResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LoadEnumerationsResponse loadEnumerationsResponse = (LoadEnumerationsResponse) o; + return Objects.equals(this.enumerations, loadEnumerationsResponse.enumerations)&& + Objects.equals(this.additionalProperties, loadEnumerationsResponse.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(enumerations, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LoadEnumerationsResponse {\n"); + sb.append(" enumerations: ").append(toIndentedString(enumerations)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).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("enumerations"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to LoadEnumerationsResponse + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (LoadEnumerationsResponse.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in LoadEnumerationsResponse is not found in the empty JSON string", LoadEnumerationsResponse.openapiRequiredFields.toString())); + } + } + JsonArray jsonArrayenumerations = jsonObj.getAsJsonArray("enumerations"); + if (jsonArrayenumerations != null) { + // ensure the json data is an array + if (!jsonObj.get("enumerations").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `enumerations` to be an array in the JSON string but got `%s`", jsonObj.get("enumerations").toString())); + } + + // validate the optional field `enumerations` (array) + for (int i = 0; i < jsonArrayenumerations.size(); i++) { + Enumeration.validateJsonObject(jsonArrayenumerations.get(i).getAsJsonObject()); + }; + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!LoadEnumerationsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'LoadEnumerationsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(LoadEnumerationsResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, LoadEnumerationsResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public LoadEnumerationsResponse read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + LoadEnumerationsResponse instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of LoadEnumerationsResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of LoadEnumerationsResponse + * @throws IOException if the JSON string is invalid with respect to LoadEnumerationsResponse + */ + public static LoadEnumerationsResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, LoadEnumerationsResponse.class); + } + + /** + * Convert an instance of LoadEnumerationsResponse to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/MLModelFavorite.java b/src/main/java/io/tiledb/cloud/rest_api/model/MLModelFavorite.java index b2e1648..7ac7b79 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/MLModelFavorite.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/MLModelFavorite.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -39,7 +38,7 @@ * A user-favorite MLModel item */ @ApiModel(description = "A user-favorite MLModel item") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class MLModelFavorite { public static final String SERIALIZED_NAME_MLMODEL_UUID = "mlmodel_uuid"; @SerializedName(SERIALIZED_NAME_MLMODEL_UUID) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/MLModelFavoritesData.java b/src/main/java/io/tiledb/cloud/rest_api/model/MLModelFavoritesData.java index d17853c..5c9c6b3 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/MLModelFavoritesData.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/MLModelFavoritesData.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -42,7 +41,7 @@ * Object including MLModel favorites and pagination metadata */ @ApiModel(description = "Object including MLModel favorites and pagination metadata") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class MLModelFavoritesData { public static final String SERIALIZED_NAME_MLMODELS = "mlmodels"; @SerializedName(SERIALIZED_NAME_MLMODELS) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/MaxBufferSizes.java b/src/main/java/io/tiledb/cloud/rest_api/model/MaxBufferSizes.java index e82a328..4d0d4f2 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/MaxBufferSizes.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/MaxBufferSizes.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -42,7 +41,7 @@ * a list of max buffer sizes, one per attribute */ @ApiModel(description = "a list of max buffer sizes, one per attribute") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class MaxBufferSizes { public static final String SERIALIZED_NAME_MAX_BUFFER_SIZES = "maxBufferSizes"; @SerializedName(SERIALIZED_NAME_MAX_BUFFER_SIZES) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/MetadataStringified.java b/src/main/java/io/tiledb/cloud/rest_api/model/MetadataStringified.java new file mode 100644 index 0000000..25860db --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/MetadataStringified.java @@ -0,0 +1,284 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.17.51 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.JsonArray; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; + +import io.tiledb.cloud.rest_api.JSON; + +/** + * The user's TileDB metadata + */ +@ApiModel(description = "The user's TileDB metadata") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") +public class MetadataStringified { + public static final String SERIALIZED_NAME_ENTRIES = "entries"; + @SerializedName(SERIALIZED_NAME_ENTRIES) + private List entries = null; + + public MetadataStringified() { + } + + public MetadataStringified entries(List entries) { + + this.entries = entries; + return this; + } + + public MetadataStringified addEntriesItem(MetadataStringifiedEntry entriesItem) { + if (this.entries == null) { + this.entries = new ArrayList<>(); + } + this.entries.add(entriesItem); + return this; + } + + /** + * List of metadata entries + * @return entries + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "List of metadata entries") + + public List getEntries() { + return entries; + } + + + public void setEntries(List entries) { + this.entries = entries; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public MetadataStringified putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MetadataStringified metadataStringified = (MetadataStringified) o; + return Objects.equals(this.entries, metadataStringified.entries)&& + Objects.equals(this.additionalProperties, metadataStringified.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(entries, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MetadataStringified {\n"); + sb.append(" entries: ").append(toIndentedString(entries)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).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("entries"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to MetadataStringified + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (MetadataStringified.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in MetadataStringified is not found in the empty JSON string", MetadataStringified.openapiRequiredFields.toString())); + } + } + JsonArray jsonArrayentries = jsonObj.getAsJsonArray("entries"); + if (jsonArrayentries != null) { + // ensure the json data is an array + if (!jsonObj.get("entries").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `entries` to be an array in the JSON string but got `%s`", jsonObj.get("entries").toString())); + } + + // validate the optional field `entries` (array) + for (int i = 0; i < jsonArrayentries.size(); i++) { + MetadataStringifiedEntry.validateJsonObject(jsonArrayentries.get(i).getAsJsonObject()); + }; + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!MetadataStringified.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'MetadataStringified' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(MetadataStringified.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, MetadataStringified value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public MetadataStringified read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + MetadataStringified instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of MetadataStringified given an JSON string + * + * @param jsonString JSON string + * @return An instance of MetadataStringified + * @throws IOException if the JSON string is invalid with respect to MetadataStringified + */ + public static MetadataStringified fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, MetadataStringified.class); + } + + /** + * Convert an instance of MetadataStringified to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/MetadataStringifiedEntry.java b/src/main/java/io/tiledb/cloud/rest_api/model/MetadataStringifiedEntry.java new file mode 100644 index 0000000..bc62868 --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/MetadataStringifiedEntry.java @@ -0,0 +1,330 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.17.51 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +import com.google.gson.Gson; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; + +import io.tiledb.cloud.rest_api.JSON; + +/** + * key/value pair representing an asset metadata map entry + */ +@ApiModel(description = "key/value pair representing an asset metadata map entry") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") +public class MetadataStringifiedEntry { + public static final String SERIALIZED_NAME_KEY = "key"; + @SerializedName(SERIALIZED_NAME_KEY) + private String key; + + public static final String SERIALIZED_NAME_VALUE = "value"; + @SerializedName(SERIALIZED_NAME_VALUE) + private String value; + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; + + public MetadataStringifiedEntry() { + } + + public MetadataStringifiedEntry key(String key) { + + this.key = key; + return this; + } + + /** + * The metadata key + * @return key + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The metadata key") + + public String getKey() { + return key; + } + + + public void setKey(String key) { + this.key = key; + } + + + public MetadataStringifiedEntry value(String value) { + + this.value = value; + return this; + } + + /** + * The metadata value + * @return value + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The metadata value") + + public String getValue() { + return value; + } + + + public void setValue(String value) { + this.value = value; + } + + + public MetadataStringifiedEntry type(String type) { + + this.type = type; + return this; + } + + /** + * The metadata type + * @return type + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "array_metadata", value = "The metadata type") + + public String getType() { + return type; + } + + + public void setType(String type) { + this.type = type; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public MetadataStringifiedEntry putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MetadataStringifiedEntry metadataStringifiedEntry = (MetadataStringifiedEntry) o; + return Objects.equals(this.key, metadataStringifiedEntry.key) && + Objects.equals(this.value, metadataStringifiedEntry.value) && + Objects.equals(this.type, metadataStringifiedEntry.type)&& + Objects.equals(this.additionalProperties, metadataStringifiedEntry.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(key, value, type, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MetadataStringifiedEntry {\n"); + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("key"); + openapiFields.add("value"); + openapiFields.add("type"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to MetadataStringifiedEntry + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (MetadataStringifiedEntry.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in MetadataStringifiedEntry is not found in the empty JSON string", MetadataStringifiedEntry.openapiRequiredFields.toString())); + } + } + if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) && !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("value") != null && !jsonObj.get("value").isJsonNull()) && !jsonObj.get("value").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); + } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!MetadataStringifiedEntry.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'MetadataStringifiedEntry' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(MetadataStringifiedEntry.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, MetadataStringifiedEntry value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public MetadataStringifiedEntry read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + MetadataStringifiedEntry instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of MetadataStringifiedEntry given an JSON string + * + * @param jsonString JSON string + * @return An instance of MetadataStringifiedEntry + * @throws IOException if the JSON string is invalid with respect to MetadataStringifiedEntry + */ + public static MetadataStringifiedEntry fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, MetadataStringifiedEntry.class); + } + + /** + * Convert an instance of MetadataStringifiedEntry to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/MultiArrayUDF.java b/src/main/java/io/tiledb/cloud/rest_api/model/MultiArrayUDF.java index 4f31df8..52eeb07 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/MultiArrayUDF.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/MultiArrayUDF.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -24,8 +24,6 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; - -import io.tiledb.cloud.rest_api.JSON; import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; @@ -39,12 +37,13 @@ import java.util.HashSet; import java.util.Map; +import io.tiledb.cloud.rest_api.JSON; + /** * User-defined function */ @ApiModel(description = "User-defined function") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class MultiArrayUDF { public static final String SERIALIZED_NAME_UDF_INFO_NAME = "udf_info_name"; @SerializedName(SERIALIZED_NAME_UDF_INFO_NAME) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/NamespaceActions.java b/src/main/java/io/tiledb/cloud/rest_api/model/NamespaceActions.java index a83622d..a67c540 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/NamespaceActions.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/NamespaceActions.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package io.tiledb.cloud.rest_api.model; + import java.io.IOException; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/NonEmptyDomain.java b/src/main/java/io/tiledb/cloud/rest_api/model/NonEmptyDomain.java index eec5a32..db3d8fe 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/NonEmptyDomain.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/NonEmptyDomain.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -39,7 +38,7 @@ * object representing a non-empty domain */ @ApiModel(description = "object representing a non-empty domain") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class NonEmptyDomain { public static final String SERIALIZED_NAME_NON_EMPTY_DOMAIN = "nonEmptyDomain"; @SerializedName(SERIALIZED_NAME_NON_EMPTY_DOMAIN) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/NotebookCopied.java b/src/main/java/io/tiledb/cloud/rest_api/model/NotebookCopied.java index dedf556..77e0c32 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/NotebookCopied.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/NotebookCopied.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -39,7 +38,7 @@ * Copied notebook uri and information */ @ApiModel(description = "Copied notebook uri and information") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class NotebookCopied { public static final String SERIALIZED_NAME_OUTPUT_URI = "output_uri"; @SerializedName(SERIALIZED_NAME_OUTPUT_URI) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/NotebookCopy.java b/src/main/java/io/tiledb/cloud/rest_api/model/NotebookCopy.java index 069be7f..38eb520 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/NotebookCopy.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/NotebookCopy.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -39,7 +38,7 @@ * Output information required to copy a notebook */ @ApiModel(description = "Output information required to copy a notebook") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class NotebookCopy { public static final String SERIALIZED_NAME_OUTPUT_URI = "output_uri"; @SerializedName(SERIALIZED_NAME_OUTPUT_URI) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/NotebookFavorite.java b/src/main/java/io/tiledb/cloud/rest_api/model/NotebookFavorite.java index 3523de4..1f66bd9 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/NotebookFavorite.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/NotebookFavorite.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -39,7 +38,7 @@ * A user-favorite notebook item */ @ApiModel(description = "A user-favorite notebook item") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class NotebookFavorite { public static final String SERIALIZED_NAME_NOTEBOOK_UUID = "notebook_uuid"; @SerializedName(SERIALIZED_NAME_NOTEBOOK_UUID) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/NotebookFavoritesData.java b/src/main/java/io/tiledb/cloud/rest_api/model/NotebookFavoritesData.java index e31b860..35e155e 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/NotebookFavoritesData.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/NotebookFavoritesData.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -42,8 +41,7 @@ * Object including notebook favorites and pagination metadata */ @ApiModel(description = "Object including notebook favorites and pagination metadata") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class NotebookFavoritesData { public static final String SERIALIZED_NAME_NOTEBOOKS = "notebooks"; @SerializedName(SERIALIZED_NAME_NOTEBOOKS) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/NotebookStatus.java b/src/main/java/io/tiledb/cloud/rest_api/model/NotebookStatus.java index 8a9f708..3fd82c7 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/NotebookStatus.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/NotebookStatus.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -22,8 +22,6 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; - -import io.tiledb.cloud.rest_api.JSON; import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; @@ -36,11 +34,13 @@ import java.util.HashSet; import java.util.Map; +import io.tiledb.cloud.rest_api.JSON; + /** * Status details of a notebook server */ @ApiModel(description = "Status details of a notebook server") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class NotebookStatus { public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; @SerializedName(SERIALIZED_NAME_NAMESPACE) @@ -86,6 +86,10 @@ public class NotebookStatus { @SerializedName(SERIALIZED_NAME_COST) private Double cost; + public static final String SERIALIZED_NAME_POD_STATUS = "pod_status"; + @SerializedName(SERIALIZED_NAME_POD_STATUS) + private PodStatus podStatus; + public NotebookStatus() { } @@ -341,6 +345,29 @@ public void setCost(Double cost) { this.cost = cost; } + + public NotebookStatus podStatus(PodStatus podStatus) { + + this.podStatus = podStatus; + return this; + } + + /** + * Get podStatus + * @return podStatus + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public PodStatus getPodStatus() { + return podStatus; + } + + + public void setPodStatus(PodStatus podStatus) { + this.podStatus = podStatus; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -397,7 +424,8 @@ public boolean equals(Object o) { Objects.equals(this.storageUsage, notebookStatus.storageUsage) && Objects.equals(this.storageLimit, notebookStatus.storageLimit) && Objects.equals(this.cpuCount, notebookStatus.cpuCount) && - Objects.equals(this.cost, notebookStatus.cost)&& + Objects.equals(this.cost, notebookStatus.cost) && + Objects.equals(this.podStatus, notebookStatus.podStatus)&& Objects.equals(this.additionalProperties, notebookStatus.additionalProperties); } @@ -407,7 +435,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(namespace, uptime, cpuUsage, gpuUsage, memoryUsage, gpuLimit, memoryLimit, storageUsage, storageLimit, cpuCount, cost, additionalProperties); + return Objects.hash(namespace, uptime, cpuUsage, gpuUsage, memoryUsage, gpuLimit, memoryLimit, storageUsage, storageLimit, cpuCount, cost, podStatus, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -432,6 +460,7 @@ public String toString() { sb.append(" storageLimit: ").append(toIndentedString(storageLimit)).append("\n"); sb.append(" cpuCount: ").append(toIndentedString(cpuCount)).append("\n"); sb.append(" cost: ").append(toIndentedString(cost)).append("\n"); + sb.append(" podStatus: ").append(toIndentedString(podStatus)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -466,6 +495,7 @@ private String toIndentedString(Object o) { openapiFields.add("storage_limit"); openapiFields.add("cpu_count"); openapiFields.add("cost"); + openapiFields.add("pod_status"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Organization.java b/src/main/java/io/tiledb/cloud/rest_api/model/Organization.java index 5837ce6..5bf5ba9 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Organization.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Organization.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -26,8 +26,6 @@ import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.List; - -import io.tiledb.cloud.rest_api.JSON; import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; @@ -41,12 +39,13 @@ import java.util.HashSet; import java.util.Map; +import io.tiledb.cloud.rest_api.JSON; + /** * Organization */ @ApiModel(description = "Organization") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class Organization { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -112,6 +111,10 @@ public class Organization { @SerializedName(SERIALIZED_NAME_STRIPE_CONNECT) private Boolean stripeConnect; + public static final String SERIALIZED_NAME_ASSUME_ROLE_ARN = "assume_role_arn"; + @SerializedName(SERIALIZED_NAME_ASSUME_ROLE_ARN) + private String assumeRoleArn; + public Organization() { } @@ -483,6 +486,29 @@ public Boolean getStripeConnect() { + + public Organization assumeRoleArn(String assumeRoleArn) { + + this.assumeRoleArn = assumeRoleArn; + return this; + } + + /** + * A AWS Role that will be first assumed before assuming the organization's AWS Role. Visible to owners and admins. + * @return assumeRoleArn + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "A AWS Role that will be first assumed before assuming the organization's AWS Role. Visible to owners and admins. ") + + public String getAssumeRoleArn() { + return assumeRoleArn; + } + + + public void setAssumeRoleArn(String assumeRoleArn) { + this.assumeRoleArn = assumeRoleArn; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -544,7 +570,8 @@ public boolean equals(Object o) { Objects.equals(this.defaultS3Path, organization.defaultS3Path) && Objects.equals(this.defaultS3PathCredentialsName, organization.defaultS3PathCredentialsName) && Objects.equals(this.assetLocations, organization.assetLocations) && - Objects.equals(this.stripeConnect, organization.stripeConnect)&& + Objects.equals(this.stripeConnect, organization.stripeConnect) && + Objects.equals(this.assumeRoleArn, organization.assumeRoleArn)&& Objects.equals(this.additionalProperties, organization.additionalProperties); } @@ -554,7 +581,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(id, role, name, createdAt, updatedAt, logo, description, users, allowedActions, numOfArrays, enabledFeatures, unpaidSubscription, defaultS3Path, defaultS3PathCredentialsName, assetLocations, stripeConnect, additionalProperties); + return Objects.hash(id, role, name, createdAt, updatedAt, logo, description, users, allowedActions, numOfArrays, enabledFeatures, unpaidSubscription, defaultS3Path, defaultS3PathCredentialsName, assetLocations, stripeConnect, assumeRoleArn, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -584,6 +611,7 @@ public String toString() { sb.append(" defaultS3PathCredentialsName: ").append(toIndentedString(defaultS3PathCredentialsName)).append("\n"); sb.append(" assetLocations: ").append(toIndentedString(assetLocations)).append("\n"); sb.append(" stripeConnect: ").append(toIndentedString(stripeConnect)).append("\n"); + sb.append(" assumeRoleArn: ").append(toIndentedString(assumeRoleArn)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -623,6 +651,7 @@ private String toIndentedString(Object o) { openapiFields.add("default_s3_path_credentials_name"); openapiFields.add("asset_locations"); openapiFields.add("stripe_connect"); + openapiFields.add("assume_role_arn"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -692,6 +721,9 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj.get("asset_locations") != null && !jsonObj.get("asset_locations").isJsonNull()) { AssetLocations.validateJsonObject(jsonObj.getAsJsonObject("asset_locations")); } + if ((jsonObj.get("assume_role_arn") != null && !jsonObj.get("assume_role_arn").isJsonNull()) && !jsonObj.get("assume_role_arn").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `assume_role_arn` to be a primitive type in the JSON string but got `%s`", jsonObj.get("assume_role_arn").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/OrganizationRoles.java b/src/main/java/io/tiledb/cloud/rest_api/model/OrganizationRoles.java index 167d012..e108a47 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/OrganizationRoles.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/OrganizationRoles.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package io.tiledb.cloud.rest_api.model; + import java.io.IOException; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -29,6 +30,8 @@ public enum OrganizationRoles { ADMIN("admin"), + READ_WRITE_DELETE("read_write_delete"), + READ_WRITE("read_write"), READ_ONLY("read_only"); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/OrganizationUpdate.java b/src/main/java/io/tiledb/cloud/rest_api/model/OrganizationUpdate.java new file mode 100644 index 0000000..3726c4e --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/OrganizationUpdate.java @@ -0,0 +1,443 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.17.51 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; + +import io.tiledb.cloud.rest_api.JSON; + +/** + * OrganizationUpdate + */ +@ApiModel(description = "OrganizationUpdate") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") +public class OrganizationUpdate { + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_LOGO = "logo"; + @SerializedName(SERIALIZED_NAME_LOGO) + private String logo; + + public static final String SERIALIZED_NAME_DESCRIPTION = "description"; + @SerializedName(SERIALIZED_NAME_DESCRIPTION) + private String description; + + public static final String SERIALIZED_NAME_DEFAULT_S3_PATH = "default_s3_path"; + @SerializedName(SERIALIZED_NAME_DEFAULT_S3_PATH) + private String defaultS3Path; + + public static final String SERIALIZED_NAME_DEFAULT_S3_PATH_CREDENTIALS_NAME = "default_s3_path_credentials_name"; + @SerializedName(SERIALIZED_NAME_DEFAULT_S3_PATH_CREDENTIALS_NAME) + private String defaultS3PathCredentialsName; + + public static final String SERIALIZED_NAME_ASSET_LOCATIONS = "asset_locations"; + @SerializedName(SERIALIZED_NAME_ASSET_LOCATIONS) + private AssetLocations assetLocations; + + public OrganizationUpdate() { + } + + public OrganizationUpdate name(String name) { + + this.name = name; + return this; + } + + /** + * organization name must be unique + * @return name + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "organization name must be unique") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public OrganizationUpdate logo(String logo) { + + this.logo = logo; + return this; + } + + /** + * Organization logo + * @return logo + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Organization logo") + + public String getLogo() { + return logo; + } + + + public void setLogo(String logo) { + this.logo = logo; + } + + + public OrganizationUpdate description(String description) { + + this.description = description; + return this; + } + + /** + * Organization description + * @return description + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Organization description") + + public String getDescription() { + return description; + } + + + public void setDescription(String description) { + this.description = description; + } + + + public OrganizationUpdate defaultS3Path(String defaultS3Path) { + + this.defaultS3Path = defaultS3Path; + return this; + } + + /** + * The default location to store newly-created notebooks and other assets like UDFs. The name `default_s3_path` is a legacy holdover; it may refer to any supported storage location. + * @return defaultS3Path + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The default location to store newly-created notebooks and other assets like UDFs. The name `default_s3_path` is a legacy holdover; it may refer to any supported storage location. ") + + public String getDefaultS3Path() { + return defaultS3Path; + } + + + public void setDefaultS3Path(String defaultS3Path) { + this.defaultS3Path = defaultS3Path; + } + + + public OrganizationUpdate defaultS3PathCredentialsName(String defaultS3PathCredentialsName) { + + this.defaultS3PathCredentialsName = defaultS3PathCredentialsName; + return this; + } + + /** + * The name of the credentials used to create and access files in the `default_s3_path`, if needed. + * @return defaultS3PathCredentialsName + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The name of the credentials used to create and access files in the `default_s3_path`, if needed. ") + + public String getDefaultS3PathCredentialsName() { + return defaultS3PathCredentialsName; + } + + + public void setDefaultS3PathCredentialsName(String defaultS3PathCredentialsName) { + this.defaultS3PathCredentialsName = defaultS3PathCredentialsName; + } + + + public OrganizationUpdate assetLocations(AssetLocations assetLocations) { + + this.assetLocations = assetLocations; + return this; + } + + /** + * Get assetLocations + * @return assetLocations + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public AssetLocations getAssetLocations() { + return assetLocations; + } + + + public void setAssetLocations(AssetLocations assetLocations) { + this.assetLocations = assetLocations; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public OrganizationUpdate putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OrganizationUpdate organizationUpdate = (OrganizationUpdate) o; + return Objects.equals(this.name, organizationUpdate.name) && + Objects.equals(this.logo, organizationUpdate.logo) && + Objects.equals(this.description, organizationUpdate.description) && + Objects.equals(this.defaultS3Path, organizationUpdate.defaultS3Path) && + Objects.equals(this.defaultS3PathCredentialsName, organizationUpdate.defaultS3PathCredentialsName) && + Objects.equals(this.assetLocations, organizationUpdate.assetLocations)&& + Objects.equals(this.additionalProperties, organizationUpdate.additionalProperties); + } + + 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(name, logo, description, defaultS3Path, defaultS3PathCredentialsName, assetLocations, additionalProperties); + } + + 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 OrganizationUpdate {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" logo: ").append(toIndentedString(logo)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" defaultS3Path: ").append(toIndentedString(defaultS3Path)).append("\n"); + sb.append(" defaultS3PathCredentialsName: ").append(toIndentedString(defaultS3PathCredentialsName)).append("\n"); + sb.append(" assetLocations: ").append(toIndentedString(assetLocations)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("name"); + openapiFields.add("logo"); + openapiFields.add("description"); + openapiFields.add("default_s3_path"); + openapiFields.add("default_s3_path_credentials_name"); + openapiFields.add("asset_locations"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to OrganizationUpdate + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (OrganizationUpdate.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in OrganizationUpdate is not found in the empty JSON string", OrganizationUpdate.openapiRequiredFields.toString())); + } + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("logo") != null && !jsonObj.get("logo").isJsonNull()) && !jsonObj.get("logo").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `logo` to be a primitive type in the JSON string but got `%s`", jsonObj.get("logo").toString())); + } + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + } + if ((jsonObj.get("default_s3_path") != null && !jsonObj.get("default_s3_path").isJsonNull()) && !jsonObj.get("default_s3_path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `default_s3_path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("default_s3_path").toString())); + } + if ((jsonObj.get("default_s3_path_credentials_name") != null && !jsonObj.get("default_s3_path_credentials_name").isJsonNull()) && !jsonObj.get("default_s3_path_credentials_name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `default_s3_path_credentials_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("default_s3_path_credentials_name").toString())); + } + // validate the optional field `asset_locations` + if (jsonObj.get("asset_locations") != null && !jsonObj.get("asset_locations").isJsonNull()) { + AssetLocations.validateJsonObject(jsonObj.getAsJsonObject("asset_locations")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!OrganizationUpdate.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'OrganizationUpdate' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(OrganizationUpdate.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, OrganizationUpdate value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public OrganizationUpdate read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + OrganizationUpdate instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of OrganizationUpdate given an JSON string + * + * @param jsonString JSON string + * @return An instance of OrganizationUpdate + * @throws IOException if the JSON string is invalid with respect to OrganizationUpdate + */ + public static OrganizationUpdate fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, OrganizationUpdate.class); + } + + /** + * Convert an instance of OrganizationUpdate to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/OrganizationUser.java b/src/main/java/io/tiledb/cloud/rest_api/model/OrganizationUser.java index f1ed197..653dd36 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/OrganizationUser.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/OrganizationUser.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -41,7 +40,7 @@ * user in an organization */ @ApiModel(description = "user in an organization") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class OrganizationUser { public static final String SERIALIZED_NAME_USER_ID = "user_id"; @SerializedName(SERIALIZED_NAME_USER_ID) @@ -55,6 +54,14 @@ public class OrganizationUser { @SerializedName(SERIALIZED_NAME_USERNAME) private String username; + public static final String SERIALIZED_NAME_USER_FULL_NAME = "user_full_name"; + @SerializedName(SERIALIZED_NAME_USER_FULL_NAME) + private String userFullName; + + public static final String SERIALIZED_NAME_USER_EMAIL = "user_email"; + @SerializedName(SERIALIZED_NAME_USER_EMAIL) + private String userEmail; + public static final String SERIALIZED_NAME_ORGANIZATION_NAME = "organization_name"; @SerializedName(SERIALIZED_NAME_ORGANIZATION_NAME) private String organizationName; @@ -139,6 +146,52 @@ public void setUsername(String username) { } + public OrganizationUser userFullName(String userFullName) { + + this.userFullName = userFullName; + return this; + } + + /** + * full name of the user; available to organization admins + * @return userFullName + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "Alice Hanna", value = "full name of the user; available to organization admins") + + public String getUserFullName() { + return userFullName; + } + + + public void setUserFullName(String userFullName) { + this.userFullName = userFullName; + } + + + public OrganizationUser userEmail(String userEmail) { + + this.userEmail = userEmail; + return this; + } + + /** + * email address of the user; available to organization admins + * @return userEmail + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "alice@example.com", value = "email address of the user; available to organization admins") + + public String getUserEmail() { + return userEmail; + } + + + public void setUserEmail(String userEmail) { + this.userEmail = userEmail; + } + + public OrganizationUser organizationName(String organizationName) { this.organizationName = organizationName; @@ -264,6 +317,8 @@ public boolean equals(Object o) { return Objects.equals(this.userId, organizationUser.userId) && Objects.equals(this.organizationId, organizationUser.organizationId) && Objects.equals(this.username, organizationUser.username) && + Objects.equals(this.userFullName, organizationUser.userFullName) && + Objects.equals(this.userEmail, organizationUser.userEmail) && Objects.equals(this.organizationName, organizationUser.organizationName) && Objects.equals(this.role, organizationUser.role) && Objects.equals(this.allowedActions, organizationUser.allowedActions)&& @@ -272,7 +327,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(userId, organizationId, username, organizationName, role, allowedActions, additionalProperties); + return Objects.hash(userId, organizationId, username, userFullName, userEmail, organizationName, role, allowedActions, additionalProperties); } @Override @@ -282,6 +337,8 @@ public String toString() { sb.append(" userId: ").append(toIndentedString(userId)).append("\n"); sb.append(" organizationId: ").append(toIndentedString(organizationId)).append("\n"); sb.append(" username: ").append(toIndentedString(username)).append("\n"); + sb.append(" userFullName: ").append(toIndentedString(userFullName)).append("\n"); + sb.append(" userEmail: ").append(toIndentedString(userEmail)).append("\n"); sb.append(" organizationName: ").append(toIndentedString(organizationName)).append("\n"); sb.append(" role: ").append(toIndentedString(role)).append("\n"); sb.append(" allowedActions: ").append(toIndentedString(allowedActions)).append("\n"); @@ -311,6 +368,8 @@ private String toIndentedString(Object o) { openapiFields.add("user_id"); openapiFields.add("organization_id"); openapiFields.add("username"); + openapiFields.add("user_full_name"); + openapiFields.add("user_email"); openapiFields.add("organization_name"); openapiFields.add("role"); openapiFields.add("allowed_actions"); @@ -342,6 +401,12 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if ((jsonObj.get("username") != null && !jsonObj.get("username").isJsonNull()) && !jsonObj.get("username").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `username` to be a primitive type in the JSON string but got `%s`", jsonObj.get("username").toString())); } + if ((jsonObj.get("user_full_name") != null && !jsonObj.get("user_full_name").isJsonNull()) && !jsonObj.get("user_full_name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `user_full_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("user_full_name").toString())); + } + if ((jsonObj.get("user_email") != null && !jsonObj.get("user_email").isJsonNull()) && !jsonObj.get("user_email").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `user_email` to be a primitive type in the JSON string but got `%s`", jsonObj.get("user_email").toString())); + } if ((jsonObj.get("organization_name") != null && !jsonObj.get("organization_name").isJsonNull()) && !jsonObj.get("organization_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `organization_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("organization_name").toString())); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/PaginationMetadata.java b/src/main/java/io/tiledb/cloud/rest_api/model/PaginationMetadata.java index ac60f87..247caab 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/PaginationMetadata.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/PaginationMetadata.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -38,7 +37,7 @@ /** * PaginationMetadata */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class PaginationMetadata { public static final String SERIALIZED_NAME_PAGE = "page"; @SerializedName(SERIALIZED_NAME_PAGE) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/PodStatus.java b/src/main/java/io/tiledb/cloud/rest_api/model/PodStatus.java new file mode 100644 index 0000000..ddee9d4 --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/PodStatus.java @@ -0,0 +1,72 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.17.51 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api.model; + + +import java.io.IOException; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; + +/** + * List of all available pod statuses + */ +@JsonAdapter(PodStatus.Adapter.class) +public enum PodStatus { + + TERMINATING("TERMINATING"), + + RUNNING("RUNNING"), + + LAUNCHING("LAUNCHING"); + + private String value; + + PodStatus(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static PodStatus fromValue(String value) { + for (PodStatus b : PodStatus.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 PodStatus enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public PodStatus read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return PodStatus.fromValue(value); + } + } +} + diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Pricing.java b/src/main/java/io/tiledb/cloud/rest_api/model/Pricing.java index 91b5ca8..f9e66a3 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Pricing.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Pricing.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -39,7 +38,7 @@ * Pricing created by converting an array to product */ @ApiModel(description = "Pricing created by converting an array to product") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class Pricing { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/PricingAggregateUsage.java b/src/main/java/io/tiledb/cloud/rest_api/model/PricingAggregateUsage.java index b80ac94..20e604a 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/PricingAggregateUsage.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/PricingAggregateUsage.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package io.tiledb.cloud.rest_api.model; + import java.io.IOException; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/PricingCurrency.java b/src/main/java/io/tiledb/cloud/rest_api/model/PricingCurrency.java index 45357ef..c9b1a24 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/PricingCurrency.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/PricingCurrency.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package io.tiledb.cloud.rest_api.model; + import java.io.IOException; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/PricingInterval.java b/src/main/java/io/tiledb/cloud/rest_api/model/PricingInterval.java index 3b60c65..5a0d3e4 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/PricingInterval.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/PricingInterval.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package io.tiledb.cloud.rest_api.model; + import java.io.IOException; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/PricingType.java b/src/main/java/io/tiledb/cloud/rest_api/model/PricingType.java index 7ff4557..f213a6e 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/PricingType.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/PricingType.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package io.tiledb.cloud.rest_api.model; + import java.io.IOException; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/PricingUnitLabel.java b/src/main/java/io/tiledb/cloud/rest_api/model/PricingUnitLabel.java index e4217f0..c49c1f0 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/PricingUnitLabel.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/PricingUnitLabel.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package io.tiledb.cloud.rest_api.model; + import java.io.IOException; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/PublicShareFilter.java b/src/main/java/io/tiledb/cloud/rest_api/model/PublicShareFilter.java index ccb029e..eb16a9d 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/PublicShareFilter.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/PublicShareFilter.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package io.tiledb.cloud.rest_api.model; + import java.io.IOException; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Query.java b/src/main/java/io/tiledb/cloud/rest_api/model/Query.java index 3040526..8ed885c 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Query.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Query.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -40,8 +39,7 @@ /** * Query */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class Query { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/QueryJson.java b/src/main/java/io/tiledb/cloud/rest_api/model/QueryJson.java index 824c792..38fa4ec 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/QueryJson.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/QueryJson.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -41,8 +40,7 @@ * Query returning results as JSON */ @ApiModel(description = "Query returning results as JSON") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class QueryJson { public static final String SERIALIZED_NAME_QUERY_RANGES = "query_ranges"; @SerializedName(SERIALIZED_NAME_QUERY_RANGES) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/QueryRanges.java b/src/main/java/io/tiledb/cloud/rest_api/model/QueryRanges.java index dd96261..d569ed1 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/QueryRanges.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/QueryRanges.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -42,8 +41,7 @@ * Subarray bounds to query */ @ApiModel(description = "Subarray bounds to query") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class QueryRanges { public static final String SERIALIZED_NAME_LAYOUT = "layout"; @SerializedName(SERIALIZED_NAME_LAYOUT) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/QueryReader.java b/src/main/java/io/tiledb/cloud/rest_api/model/QueryReader.java index 932117c..1353e14 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/QueryReader.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/QueryReader.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -39,8 +38,7 @@ * Read struct (can't be called reader due to class name conflict) */ @ApiModel(description = "Read struct (can't be called reader due to class name conflict)") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class QueryReader { public static final String SERIALIZED_NAME_LAYOUT = "layout"; @SerializedName(SERIALIZED_NAME_LAYOUT) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Querystatus.java b/src/main/java/io/tiledb/cloud/rest_api/model/Querystatus.java index 081a679..3138148 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Querystatus.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Querystatus.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package io.tiledb.cloud.rest_api.model; + import java.io.IOException; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Querytype.java b/src/main/java/io/tiledb/cloud/rest_api/model/Querytype.java index 79a70a8..fd20276 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Querytype.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Querytype.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package io.tiledb.cloud.rest_api.model; + import java.io.IOException; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ReadState.java b/src/main/java/io/tiledb/cloud/rest_api/model/ReadState.java index b4daaea..63ff048 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ReadState.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ReadState.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -39,8 +38,7 @@ * state for reads */ @ApiModel(description = "state for reads") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class ReadState { public static final String SERIALIZED_NAME_INITIALIZED = "initialized"; @SerializedName(SERIALIZED_NAME_INITIALIZED) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/RegisteredTaskGraph.java b/src/main/java/io/tiledb/cloud/rest_api/model/RegisteredTaskGraph.java index 8a9dc4b..562634c 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/RegisteredTaskGraph.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/RegisteredTaskGraph.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -24,8 +24,6 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; - -import io.tiledb.cloud.rest_api.JSON; import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; @@ -39,12 +37,13 @@ import java.util.HashSet; import java.util.Map; +import io.tiledb.cloud.rest_api.JSON; + /** * The structure and metadata of a task graph that can be stored on TileDB Cloud and executed by users who have access to it. */ @ApiModel(description = "The structure and metadata of a task graph that can be stored on TileDB Cloud and executed by users who have access to it. ") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class RegisteredTaskGraph { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ResetUserPasswordRequest.java b/src/main/java/io/tiledb/cloud/rest_api/model/ResetUserPasswordRequest.java index 9fd739e..8203373 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ResetUserPasswordRequest.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ResetUserPasswordRequest.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -39,8 +38,7 @@ * Password to update */ @ApiModel(description = "Password to update") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class ResetUserPasswordRequest { public static final String SERIALIZED_NAME_PASSWORD = "password"; @SerializedName(SERIALIZED_NAME_PASSWORD) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ResultFormat.java b/src/main/java/io/tiledb/cloud/rest_api/model/ResultFormat.java index 3855536..d2d960c 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/ResultFormat.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ResultFormat.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package io.tiledb.cloud.rest_api.model; + import java.io.IOException; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/RetryPolicy.java b/src/main/java/io/tiledb/cloud/rest_api/model/RetryPolicy.java index 95603ba..c35c03c 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/RetryPolicy.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/RetryPolicy.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package io.tiledb.cloud.rest_api.model; + import java.io.IOException; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/RetryStrategy.java b/src/main/java/io/tiledb/cloud/rest_api/model/RetryStrategy.java index 6e8d937..8524a0b 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/RetryStrategy.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/RetryStrategy.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -39,7 +38,7 @@ * RetryStrategy provides controls on how to retry a taskgraph node */ @ApiModel(description = "RetryStrategy provides controls on how to retry a taskgraph node") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class RetryStrategy { public static final String SERIALIZED_NAME_BACKOFF = "backoff"; @SerializedName(SERIALIZED_NAME_BACKOFF) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/SQLParameters.java b/src/main/java/io/tiledb/cloud/rest_api/model/SQLParameters.java index 75ae1e7..99d06af 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/SQLParameters.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/SQLParameters.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -41,8 +40,7 @@ * Parameters for running sql query */ @ApiModel(description = "Parameters for running sql query") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class SQLParameters { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/SSODomainConfig.java b/src/main/java/io/tiledb/cloud/rest_api/model/SSODomainConfig.java index 2aa1220..38427f5 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/SSODomainConfig.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/SSODomainConfig.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -24,7 +24,6 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; - import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; @@ -44,8 +43,7 @@ * The information used to set up a single-sign on connection to a customer domain. */ @ApiModel(description = "The information used to set up a single-sign on connection to a customer domain. ") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class SSODomainConfig { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/SSODomainConfigResponse.java b/src/main/java/io/tiledb/cloud/rest_api/model/SSODomainConfigResponse.java index 52259f7..873fc21 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/SSODomainConfigResponse.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/SSODomainConfigResponse.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -42,8 +41,7 @@ * The response to a request for the list of domain claims associated with a particular organization. */ @ApiModel(description = "The response to a request for the list of domain claims associated with a particular organization. ") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class SSODomainConfigResponse { public static final String SERIALIZED_NAME_DOMAIN_CONFIGS = "domain_configs"; @SerializedName(SERIALIZED_NAME_DOMAIN_CONFIGS) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/SSODomainSetup.java b/src/main/java/io/tiledb/cloud/rest_api/model/SSODomainSetup.java index d0f4d4c..c3ee27f 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/SSODomainSetup.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/SSODomainSetup.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -39,8 +38,7 @@ * Configuration settings to verify ownership of a given domain. At least one of these must be completed enable user login from the domain. */ @ApiModel(description = "Configuration settings to verify ownership of a given domain. At least one of these must be completed enable user login from the domain. ") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class SSODomainSetup { public static final String SERIALIZED_NAME_TXT = "txt"; @SerializedName(SERIALIZED_NAME_TXT) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/SSOProvider.java b/src/main/java/io/tiledb/cloud/rest_api/model/SSOProvider.java index 5e7e300..710c06d 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/SSOProvider.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/SSOProvider.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package io.tiledb.cloud.rest_api.model; + import java.io.IOException; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -31,7 +32,11 @@ public enum SSOProvider { STRIPE("stripe"), - OKTA("okta"); + OKTA("okta"), + + PERDOMAIN("perdomain"), + + SCIM("scim"); private String value; diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/SharePaymentRequest.java b/src/main/java/io/tiledb/cloud/rest_api/model/SharePaymentRequest.java new file mode 100644 index 0000000..6cfde66 --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/SharePaymentRequest.java @@ -0,0 +1,273 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.17.51 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; + +import io.tiledb.cloud.rest_api.JSON; + +/** + * SharePaymentRequest + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") +public class SharePaymentRequest { + public static final String SERIALIZED_NAME_NAMESPACES = "namespaces"; + @SerializedName(SERIALIZED_NAME_NAMESPACES) + private List namespaces = null; + + public SharePaymentRequest() { + } + + public SharePaymentRequest namespaces(List namespaces) { + + this.namespaces = namespaces; + return this; + } + + public SharePaymentRequest addNamespacesItem(String namespacesItem) { + if (this.namespaces == null) { + this.namespaces = new ArrayList<>(); + } + this.namespaces.add(namespacesItem); + return this; + } + + /** + * Get namespaces + * @return namespaces + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public List getNamespaces() { + return namespaces; + } + + + public void setNamespaces(List namespaces) { + this.namespaces = namespaces; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public SharePaymentRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SharePaymentRequest sharePaymentRequest = (SharePaymentRequest) o; + return Objects.equals(this.namespaces, sharePaymentRequest.namespaces)&& + Objects.equals(this.additionalProperties, sharePaymentRequest.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(namespaces, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SharePaymentRequest {\n"); + sb.append(" namespaces: ").append(toIndentedString(namespaces)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).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("namespaces"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to SharePaymentRequest + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (SharePaymentRequest.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in SharePaymentRequest is not found in the empty JSON string", SharePaymentRequest.openapiRequiredFields.toString())); + } + } + // ensure the json data is an array + if ((jsonObj.get("namespaces") != null && !jsonObj.get("namespaces").isJsonNull()) && !jsonObj.get("namespaces").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `namespaces` to be an array in the JSON string but got `%s`", jsonObj.get("namespaces").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!SharePaymentRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SharePaymentRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(SharePaymentRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SharePaymentRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public SharePaymentRequest read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + SharePaymentRequest instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of SharePaymentRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of SharePaymentRequest + * @throws IOException if the JSON string is invalid with respect to SharePaymentRequest + */ + public static SharePaymentRequest fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, SharePaymentRequest.class); + } + + /** + * Convert an instance of SharePaymentRequest to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/SingleFragmentInfo.java b/src/main/java/io/tiledb/cloud/rest_api/model/SingleFragmentInfo.java index 7ee92f2..7c8a040 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/SingleFragmentInfo.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/SingleFragmentInfo.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -39,8 +38,7 @@ * Single Fragment info of an array */ @ApiModel(description = "Single Fragment info of an array") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class SingleFragmentInfo { public static final String SERIALIZED_NAME_ARRAY_SCHEMA_NAME = "ArraySchemaName"; @SerializedName(SERIALIZED_NAME_ARRAY_SCHEMA_NAME) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/StorageLocation.java b/src/main/java/io/tiledb/cloud/rest_api/model/StorageLocation.java index ac0ec01..f218442 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/StorageLocation.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/StorageLocation.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -22,8 +22,6 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; - -import io.tiledb.cloud.rest_api.JSON; import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; @@ -36,12 +34,13 @@ import java.util.HashSet; import java.util.Map; +import io.tiledb.cloud.rest_api.JSON; + /** * The path at which a given asset will be stored, and the credentials used to access that asset. */ @ApiModel(description = "The path at which a given asset will be stored, and the credentials used to access that asset. ") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class StorageLocation { public static final String SERIALIZED_NAME_PATH = "path"; @SerializedName(SERIALIZED_NAME_PATH) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Subarray.java b/src/main/java/io/tiledb/cloud/rest_api/model/Subarray.java index 627f307..5bbd571 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Subarray.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Subarray.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -42,8 +41,7 @@ * A Subarray */ @ApiModel(description = "A Subarray") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class Subarray { public static final String SERIALIZED_NAME_LAYOUT = "layout"; @SerializedName(SERIALIZED_NAME_LAYOUT) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayPartitioner.java b/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayPartitioner.java index 45b3a74..c9f8136 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayPartitioner.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayPartitioner.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -42,8 +41,7 @@ * The subarray partitioner */ @ApiModel(description = "The subarray partitioner") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class SubarrayPartitioner { public static final String SERIALIZED_NAME_SUBARRAY = "subarray"; @SerializedName(SERIALIZED_NAME_SUBARRAY) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerCurrent.java b/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerCurrent.java index bcc0725..8597428 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerCurrent.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerCurrent.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -39,8 +38,7 @@ * The current partition info */ @ApiModel(description = "The current partition info") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class SubarrayPartitionerCurrent { public static final String SERIALIZED_NAME_SUBARRAY = "subarray"; @SerializedName(SERIALIZED_NAME_SUBARRAY) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerState.java b/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerState.java index 13ced4d..1a7c923 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerState.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerState.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -42,8 +41,7 @@ * The state information for the remaining partitions to be produced */ @ApiModel(description = "The state information for the remaining partitions to be produced") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class SubarrayPartitionerState { public static final String SERIALIZED_NAME_START = "start"; @SerializedName(SERIALIZED_NAME_START) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayRanges.java b/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayRanges.java index ce5aff3..1dfcc9d 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayRanges.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayRanges.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -41,8 +40,7 @@ * A set of 1D ranges for a subarray */ @ApiModel(description = "A set of 1D ranges for a subarray") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class SubarrayRanges { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Subscription.java b/src/main/java/io/tiledb/cloud/rest_api/model/Subscription.java index 1463005..77a3203 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Subscription.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Subscription.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -42,8 +41,7 @@ * Subscription of a user (customer) to another user's arrays */ @ApiModel(description = "Subscription of a user (customer) to another user's arrays") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class Subscription { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TGArrayNodeData.java b/src/main/java/io/tiledb/cloud/rest_api/model/TGArrayNodeData.java index 6a9eb9e..0368444 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TGArrayNodeData.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TGArrayNodeData.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -39,8 +38,7 @@ * The details of an array that should be queried and provided as the input to a UDF Node. This is essentially a `UDFArrayDetails`, but you’re allowed to provide most of the values as Nodes if you want. */ @ApiModel(description = "The details of an array that should be queried and provided as the input to a UDF Node. This is essentially a `UDFArrayDetails`, but you’re allowed to provide most of the values as Nodes if you want. ") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class TGArrayNodeData { public static final String SERIALIZED_NAME_URI = "uri"; @SerializedName(SERIALIZED_NAME_URI) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TGInputNodeData.java b/src/main/java/io/tiledb/cloud/rest_api/model/TGInputNodeData.java index 73c28c4..cc4b7cb 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TGInputNodeData.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TGInputNodeData.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -40,8 +40,7 @@ * Specifies that a node is an “input value”, allowing for parameterized task graphs. An input node may not depend upon any other nodes. */ @ApiModel(description = "Specifies that a node is an “input value”, allowing for parameterized task graphs. An input node may not depend upon any other nodes. ") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class TGInputNodeData { public static final String SERIALIZED_NAME_DEFAULT_VALUE = "default_value"; @SerializedName(SERIALIZED_NAME_DEFAULT_VALUE) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TGQueryRanges.java b/src/main/java/io/tiledb/cloud/rest_api/model/TGQueryRanges.java index 3738a69..37c87ec 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TGQueryRanges.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TGQueryRanges.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -39,7 +38,7 @@ * Parameterizable version of `QueryRanges`. */ @ApiModel(description = "Parameterizable version of `QueryRanges`.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class TGQueryRanges { public static final String SERIALIZED_NAME_LAYOUT = "layout"; @SerializedName(SERIALIZED_NAME_LAYOUT) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TGSQLNodeData.java b/src/main/java/io/tiledb/cloud/rest_api/model/TGSQLNodeData.java index 0c100b0..bd3891f 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TGSQLNodeData.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TGSQLNodeData.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -24,8 +24,6 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; - -import io.tiledb.cloud.rest_api.JSON; import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; @@ -38,12 +36,13 @@ import java.util.HashSet; import java.util.Map; +import io.tiledb.cloud.rest_api.JSON; + /** * A node specifying an SQL query to execute in TileDB Cloud. */ @ApiModel(description = "A node specifying an SQL query to execute in TileDB Cloud. ") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class TGSQLNodeData { public static final String SERIALIZED_NAME_INIT_COMMANDS = "init_commands"; @SerializedName(SERIALIZED_NAME_INIT_COMMANDS) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFArgument.java b/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFArgument.java index 5ee6ce5..6b27941 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFArgument.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFArgument.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -22,8 +22,6 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; - -import io.tiledb.cloud.rest_api.JSON; import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; @@ -36,12 +34,13 @@ import java.util.HashSet; import java.util.Map; +import io.tiledb.cloud.rest_api.JSON; + /** * A single argument to a UDF. This may represent a positional argument or a named argument, depending upon whether `name` is set. */ @ApiModel(description = "A single argument to a UDF. This may represent a positional argument or a named argument, depending upon whether `name` is set. ") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class TGUDFArgument { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironment.java b/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironment.java index 7b0a305..0a13eff 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironment.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironment.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -23,11 +23,12 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.math.BigDecimal; - -import io.tiledb.cloud.rest_api.JSON; +import java.util.ArrayList; +import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; +import com.google.gson.JsonArray; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.TypeAdapterFactory; @@ -37,12 +38,13 @@ import java.util.HashSet; import java.util.Map; +import io.tiledb.cloud.rest_api.JSON; + /** * Metadata about the environment where we want to execute a UDF. */ @ApiModel(description = "Metadata about the environment where we want to execute a UDF.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class TGUDFEnvironment { public static final String SERIALIZED_NAME_LANGUAGE = "language"; @SerializedName(SERIALIZED_NAME_LANGUAGE) @@ -80,6 +82,10 @@ public class TGUDFEnvironment { @SerializedName(SERIALIZED_NAME_TIMEOUT) private BigDecimal timeout; + public static final String SERIALIZED_NAME_STORAGE = "storage"; + @SerializedName(SERIALIZED_NAME_STORAGE) + private List storage = null; + public TGUDFEnvironment() { } @@ -289,6 +295,37 @@ public void setTimeout(BigDecimal timeout) { this.timeout = timeout; } + + public TGUDFEnvironment storage(List storage) { + + this.storage = storage; + return this; + } + + public TGUDFEnvironment addStorageItem(TGUDFStorage storageItem) { + if (this.storage == null) { + this.storage = new ArrayList<>(); + } + this.storage.add(storageItem); + return this; + } + + /** + * Storage options for mounting persistent volumes. + * @return storage + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Storage options for mounting persistent volumes. ") + + public List getStorage() { + return storage; + } + + + public void setStorage(List storage) { + this.storage = storage; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -343,7 +380,8 @@ public boolean equals(Object o) { Objects.equals(this.resourceClass, tgUDFEnvironment.resourceClass) && Objects.equals(this.resources, tgUDFEnvironment.resources) && Objects.equals(this.runClientSide, tgUDFEnvironment.runClientSide) && - Objects.equals(this.timeout, tgUDFEnvironment.timeout)&& + Objects.equals(this.timeout, tgUDFEnvironment.timeout) && + Objects.equals(this.storage, tgUDFEnvironment.storage)&& Objects.equals(this.additionalProperties, tgUDFEnvironment.additionalProperties); } @@ -353,7 +391,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(language, languageVersion, imageName, accessCredentialsName, namespace, resourceClass, resources, runClientSide, timeout, additionalProperties); + return Objects.hash(language, languageVersion, imageName, accessCredentialsName, namespace, resourceClass, resources, runClientSide, timeout, storage, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -376,6 +414,7 @@ public String toString() { sb.append(" resources: ").append(toIndentedString(resources)).append("\n"); sb.append(" runClientSide: ").append(toIndentedString(runClientSide)).append("\n"); sb.append(" timeout: ").append(toIndentedString(timeout)).append("\n"); + sb.append(" storage: ").append(toIndentedString(storage)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -408,6 +447,7 @@ private String toIndentedString(Object o) { openapiFields.add("resources"); openapiFields.add("run_client_side"); openapiFields.add("timeout"); + openapiFields.add("storage"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -446,6 +486,18 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj.get("resources") != null && !jsonObj.get("resources").isJsonNull()) { TGUDFEnvironmentResources.validateJsonObject(jsonObj.getAsJsonObject("resources")); } + JsonArray jsonArraystorage = jsonObj.getAsJsonArray("storage"); + if (jsonArraystorage != null) { + // ensure the json data is an array + if (!jsonObj.get("storage").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `storage` to be an array in the JSON string but got `%s`", jsonObj.get("storage").toString())); + } + + // validate the optional field `storage` (array) + for (int i = 0; i < jsonArraystorage.size(); i++) { + TGUDFStorage.validateJsonObject(jsonArraystorage.get(i).getAsJsonObject()); + }; + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironmentResources.java b/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironmentResources.java index 07233d7..49252f8 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironmentResources.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironmentResources.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -36,11 +35,10 @@ import io.tiledb.cloud.rest_api.JSON; /** - * The resources requested for this particular node. If resources are not specified resource_class is used, if it is not set the standard resource // defaults are used + * The resources requested for this particular node. If resources are not specified resource_class is used, if it is not set the standard resource // defaults are used */ -@ApiModel(description = "The resources requested for this particular node. If resources are not specified resource_class is used, if it is not set the standard resource // defaults are used ") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@ApiModel(description = "The resources requested for this particular node. If resources are not specified resource_class is used, if it is not set the standard resource // defaults are used ") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class TGUDFEnvironmentResources { public static final String SERIALIZED_NAME_CPU = "cpu"; @SerializedName(SERIALIZED_NAME_CPU) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFNodeData.java b/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFNodeData.java index 983fb76..e721381 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFNodeData.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFNodeData.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -24,8 +24,6 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; - -import io.tiledb.cloud.rest_api.JSON; import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; @@ -39,12 +37,13 @@ import java.util.HashSet; import java.util.Map; +import io.tiledb.cloud.rest_api.JSON; + /** * A node specifying the execution of a user-defined function. */ @ApiModel(description = "A node specifying the execution of a user-defined function.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class TGUDFNodeData { public static final String SERIALIZED_NAME_REGISTERED_UDF_NAME = "registered_udf_name"; @SerializedName(SERIALIZED_NAME_REGISTERED_UDF_NAME) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFStorage.java b/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFStorage.java new file mode 100644 index 0000000..3ada3a5 --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFStorage.java @@ -0,0 +1,330 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.17.51 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +import com.google.gson.Gson; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; + +import io.tiledb.cloud.rest_api.JSON; + +/** + * Storage options for mounting persistent volumes. + */ +@ApiModel(description = "Storage options for mounting persistent volumes.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") +public class TGUDFStorage { + public static final String SERIALIZED_NAME_PATH = "path"; + @SerializedName(SERIALIZED_NAME_PATH) + private String path; + + public static final String SERIALIZED_NAME_SIZE = "size"; + @SerializedName(SERIALIZED_NAME_SIZE) + private String size; + + public static final String SERIALIZED_NAME_STORAGE_CLASS = "storage_class"; + @SerializedName(SERIALIZED_NAME_STORAGE_CLASS) + private String storageClass; + + public TGUDFStorage() { + } + + public TGUDFStorage path(String path) { + + this.path = path; + return this; + } + + /** + * Mount path for the attached volume. + * @return path + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Mount path for the attached volume. ") + + public String getPath() { + return path; + } + + + public void setPath(String path) { + this.path = path; + } + + + public TGUDFStorage size(String size) { + + this.size = size; + return this; + } + + /** + * Storage size. + * @return size + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "8Gi", value = "Storage size. ") + + public String getSize() { + return size; + } + + + public void setSize(String size) { + this.size = size; + } + + + public TGUDFStorage storageClass(String storageClass) { + + this.storageClass = storageClass; + return this; + } + + /** + * Storage class to use for creating the volume. + * @return storageClass + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "gp2", value = "Storage class to use for creating the volume. ") + + public String getStorageClass() { + return storageClass; + } + + + public void setStorageClass(String storageClass) { + this.storageClass = storageClass; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public TGUDFStorage putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TGUDFStorage tgUDFStorage = (TGUDFStorage) o; + return Objects.equals(this.path, tgUDFStorage.path) && + Objects.equals(this.size, tgUDFStorage.size) && + Objects.equals(this.storageClass, tgUDFStorage.storageClass)&& + Objects.equals(this.additionalProperties, tgUDFStorage.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(path, size, storageClass, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TGUDFStorage {\n"); + sb.append(" path: ").append(toIndentedString(path)).append("\n"); + sb.append(" size: ").append(toIndentedString(size)).append("\n"); + sb.append(" storageClass: ").append(toIndentedString(storageClass)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).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("path"); + openapiFields.add("size"); + openapiFields.add("storage_class"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to TGUDFStorage + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (TGUDFStorage.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in TGUDFStorage is not found in the empty JSON string", TGUDFStorage.openapiRequiredFields.toString())); + } + } + if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) && !jsonObj.get("path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + } + if ((jsonObj.get("size") != null && !jsonObj.get("size").isJsonNull()) && !jsonObj.get("size").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `size` to be a primitive type in the JSON string but got `%s`", jsonObj.get("size").toString())); + } + if ((jsonObj.get("storage_class") != null && !jsonObj.get("storage_class").isJsonNull()) && !jsonObj.get("storage_class").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `storage_class` to be a primitive type in the JSON string but got `%s`", jsonObj.get("storage_class").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!TGUDFStorage.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'TGUDFStorage' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(TGUDFStorage.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, TGUDFStorage value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public TGUDFStorage read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + TGUDFStorage instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of TGUDFStorage given an JSON string + * + * @param jsonString JSON string + * @return An instance of TGUDFStorage + * @throws IOException if the JSON string is invalid with respect to TGUDFStorage + */ + public static TGUDFStorage fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, TGUDFStorage.class); + } + + /** + * Convert an instance of TGUDFStorage to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraph.java b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraph.java index c5241a1..f1b6e0c 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraph.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraph.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -25,8 +25,6 @@ import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.List; - -import io.tiledb.cloud.rest_api.JSON; import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; @@ -40,12 +38,13 @@ import java.util.HashSet; import java.util.Map; +import io.tiledb.cloud.rest_api.JSON; + /** * Information about a task graph. */ @ApiModel(description = "Information about a task graph.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class TaskGraph { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) @@ -205,11 +204,11 @@ public TaskGraph addNodesItem(TaskGraphNode nodesItem) { } /** - * The structure of the graph. This is provided by the client when first setting up the task graph. This must be topographically sorted; that is, each node must appear after all nodes that it depends upon. + * The structure of the graph. This is provided by the client when first setting up the task graph. This must be topographically sorted; that is, each node must appear after all nodes that it depends upon. * @return nodes **/ @javax.annotation.Nullable - @ApiModelProperty(value = "The structure of the graph. This is provided by the client when first setting up the task graph. This must be topographically sorted; that is, each node must appear after all nodes that it depends upon. ") + @ApiModelProperty(value = "The structure of the graph. This is provided by the client when first setting up the task graph. This must be topographically sorted; that is, each node must appear after all nodes that it depends upon. ") public List getNodes() { return nodes; @@ -274,11 +273,11 @@ public TaskGraph deadline(Long deadline) { } /** - * Duration in seconds relative to the workflow start time which the workflow is allowed to run before it gets terminated. + * Duration in seconds relative to the workflow start time which the workflow is allowed to run before it gets terminated. Defaults to 24h when unset * @return deadline **/ @javax.annotation.Nullable - @ApiModelProperty(value = "Duration in seconds relative to the workflow start time which the workflow is allowed to run before it gets terminated. ") + @ApiModelProperty(value = "Duration in seconds relative to the workflow start time which the workflow is allowed to run before it gets terminated. Defaults to 24h when unset ") public Long getDeadline() { return deadline; diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphActions.java b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphActions.java index 9474456..8d21845 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphActions.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphActions.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package io.tiledb.cloud.rest_api.model; + import java.io.IOException; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphClientNodeStatus.java b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphClientNodeStatus.java index e443a0f..b63d198 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphClientNodeStatus.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphClientNodeStatus.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -39,8 +38,7 @@ * A report of the execution status of a node that ran on the client side. */ @ApiModel(description = "A report of the execution status of a node that ran on the client side. ") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class TaskGraphClientNodeStatus { public static final String SERIALIZED_NAME_CLIENT_NODE_UUID = "client_node_uuid"; @SerializedName(SERIALIZED_NAME_CLIENT_NODE_UUID) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLog.java b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLog.java index f3579f9..049fcc7 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLog.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLog.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,6 @@ import java.util.HashMap; import java.util.List; import java.util.Map; - import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; @@ -38,7 +37,9 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; +import java.util.Map; import io.tiledb.cloud.rest_api.JSON; @@ -46,8 +47,7 @@ * Logging information about the execution of a task graph. */ @ApiModel(description = "Logging information about the execution of a task graph.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class TaskGraphLog { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) @@ -113,6 +113,22 @@ public class TaskGraphLog { @SerializedName(SERIALIZED_NAME_TASK_GRAPH_ID) private String taskGraphId; + public static final String SERIALIZED_NAME_CLOUD_PROVIDER = "cloud_provider"; + @SerializedName(SERIALIZED_NAME_CLOUD_PROVIDER) + private String cloudProvider; + + public static final String SERIALIZED_NAME_CLOUD_REGION = "cloud_region"; + @SerializedName(SERIALIZED_NAME_CLOUD_REGION) + private String cloudRegion; + + public static final String SERIALIZED_NAME_ROOT_TASK_GRAPH_UUID = "root_task_graph_uuid"; + @SerializedName(SERIALIZED_NAME_ROOT_TASK_GRAPH_UUID) + private String rootTaskGraphUuid; + + public static final String SERIALIZED_NAME_CHILDREN_TASK_GRAPH_UUIDS = "children_task_graph_uuids"; + @SerializedName(SERIALIZED_NAME_CHILDREN_TASK_GRAPH_UUIDS) + private List childrenTaskGraphUuids = null; + public TaskGraphLog() { } @@ -470,6 +486,106 @@ public void setTaskGraphId(String taskGraphId) { this.taskGraphId = taskGraphId; } + + public TaskGraphLog cloudProvider(String cloudProvider) { + + this.cloudProvider = cloudProvider; + return this; + } + + /** + * The name of the cloud provider where this task graph executed. + * @return cloudProvider + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The name of the cloud provider where this task graph executed.") + + public String getCloudProvider() { + return cloudProvider; + } + + + public void setCloudProvider(String cloudProvider) { + this.cloudProvider = cloudProvider; + } + + + public TaskGraphLog cloudRegion(String cloudRegion) { + + this.cloudRegion = cloudRegion; + return this; + } + + /** + * The region of the cloud provider where this task graph executed. + * @return cloudRegion + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The region of the cloud provider where this task graph executed.") + + public String getCloudRegion() { + return cloudRegion; + } + + + public void setCloudRegion(String cloudRegion) { + this.cloudRegion = cloudRegion; + } + + + public TaskGraphLog rootTaskGraphUuid(String rootTaskGraphUuid) { + + this.rootTaskGraphUuid = rootTaskGraphUuid; + return this; + } + + /** + * The UUID of the root taskgraph that this taskgraph is related to. This is used to provide consistent tracking and UI view for graphs that are executed by a set of taskgraphs. + * @return rootTaskGraphUuid + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The UUID of the root taskgraph that this taskgraph is related to. This is used to provide consistent tracking and UI view for graphs that are executed by a set of taskgraphs. ") + + public String getRootTaskGraphUuid() { + return rootTaskGraphUuid; + } + + + public void setRootTaskGraphUuid(String rootTaskGraphUuid) { + this.rootTaskGraphUuid = rootTaskGraphUuid; + } + + + public TaskGraphLog childrenTaskGraphUuids(List childrenTaskGraphUuids) { + + this.childrenTaskGraphUuids = childrenTaskGraphUuids; + return this; + } + + public TaskGraphLog addChildrenTaskGraphUuidsItem(String childrenTaskGraphUuidsItem) { + if (this.childrenTaskGraphUuids == null) { + this.childrenTaskGraphUuids = new ArrayList<>(); + } + this.childrenTaskGraphUuids.add(childrenTaskGraphUuidsItem); + return this; + } + + /** + * If this is a root taskgraph, this contains the list of all its children taskgraph UUIDs. + * @return childrenTaskGraphUuids + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "If this is a root taskgraph, this contains the list of all its children taskgraph UUIDs. ") + + public List getChildrenTaskGraphUuids() { + return childrenTaskGraphUuids; + } + + + public void setChildrenTaskGraphUuids(List childrenTaskGraphUuids) { + this.childrenTaskGraphUuids = childrenTaskGraphUuids; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -531,7 +647,11 @@ public boolean equals(Object o) { Objects.equals(this.statusCount, taskGraphLog.statusCount) && Objects.equals(this.nodes, taskGraphLog.nodes) && Objects.equals(this.taskGraphType, taskGraphLog.taskGraphType) && - Objects.equals(this.taskGraphId, taskGraphLog.taskGraphId)&& + Objects.equals(this.taskGraphId, taskGraphLog.taskGraphId) && + Objects.equals(this.cloudProvider, taskGraphLog.cloudProvider) && + Objects.equals(this.cloudRegion, taskGraphLog.cloudRegion) && + Objects.equals(this.rootTaskGraphUuid, taskGraphLog.rootTaskGraphUuid) && + Objects.equals(this.childrenTaskGraphUuids, taskGraphLog.childrenTaskGraphUuids)&& Objects.equals(this.additionalProperties, taskGraphLog.additionalProperties); } @@ -541,7 +661,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(uuid, namespace, createdBy, name, createdAt, startTime, endTime, status, totalCost, accessCost, egressCost, executionTime, statusCount, nodes, taskGraphType, taskGraphId, additionalProperties); + return Objects.hash(uuid, namespace, createdBy, name, createdAt, startTime, endTime, status, totalCost, accessCost, egressCost, executionTime, statusCount, nodes, taskGraphType, taskGraphId, cloudProvider, cloudRegion, rootTaskGraphUuid, childrenTaskGraphUuids, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -571,6 +691,10 @@ public String toString() { sb.append(" nodes: ").append(toIndentedString(nodes)).append("\n"); sb.append(" taskGraphType: ").append(toIndentedString(taskGraphType)).append("\n"); sb.append(" taskGraphId: ").append(toIndentedString(taskGraphId)).append("\n"); + sb.append(" cloudProvider: ").append(toIndentedString(cloudProvider)).append("\n"); + sb.append(" cloudRegion: ").append(toIndentedString(cloudRegion)).append("\n"); + sb.append(" rootTaskGraphUuid: ").append(toIndentedString(rootTaskGraphUuid)).append("\n"); + sb.append(" childrenTaskGraphUuids: ").append(toIndentedString(childrenTaskGraphUuids)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -610,6 +734,10 @@ private String toIndentedString(Object o) { openapiFields.add("nodes"); openapiFields.add("task_graph_type"); openapiFields.add("task_graph_id"); + openapiFields.add("cloud_provider"); + openapiFields.add("cloud_region"); + openapiFields.add("root_task_graph_uuid"); + openapiFields.add("children_task_graph_uuids"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -659,6 +787,19 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if ((jsonObj.get("task_graph_id") != null && !jsonObj.get("task_graph_id").isJsonNull()) && !jsonObj.get("task_graph_id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `task_graph_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("task_graph_id").toString())); } + if ((jsonObj.get("cloud_provider") != null && !jsonObj.get("cloud_provider").isJsonNull()) && !jsonObj.get("cloud_provider").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `cloud_provider` to be a primitive type in the JSON string but got `%s`", jsonObj.get("cloud_provider").toString())); + } + if ((jsonObj.get("cloud_region") != null && !jsonObj.get("cloud_region").isJsonNull()) && !jsonObj.get("cloud_region").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `cloud_region` to be a primitive type in the JSON string but got `%s`", jsonObj.get("cloud_region").toString())); + } + if ((jsonObj.get("root_task_graph_uuid") != null && !jsonObj.get("root_task_graph_uuid").isJsonNull()) && !jsonObj.get("root_task_graph_uuid").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `root_task_graph_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("root_task_graph_uuid").toString())); + } + // ensure the json data is an array + if ((jsonObj.get("children_task_graph_uuids") != null && !jsonObj.get("children_task_graph_uuids").isJsonNull()) && !jsonObj.get("children_task_graph_uuids").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `children_task_graph_uuids` to be an array in the JSON string but got `%s`", jsonObj.get("children_task_graph_uuids").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLogRunLocation.java b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLogRunLocation.java index ef565b2..7b5ab65 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLogRunLocation.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLogRunLocation.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package io.tiledb.cloud.rest_api.model; + import java.io.IOException; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLogStatus.java b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLogStatus.java index c80d780..c3ff2ca 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLogStatus.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLogStatus.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package io.tiledb.cloud.rest_api.model; + import java.io.IOException; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLogsData.java b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLogsData.java index a5e519a..5719e3c 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLogsData.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLogsData.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -42,8 +41,7 @@ * Response data for a task graph list, including pagination metadata. */ @ApiModel(description = "Response data for a task graph list, including pagination metadata.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class TaskGraphLogsData { public static final String SERIALIZED_NAME_TASK_GRAPH_LOGS = "task_graph_logs"; @SerializedName(SERIALIZED_NAME_TASK_GRAPH_LOGS) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphNode.java b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphNode.java index c8d68b9..fcfd415 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphNode.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphNode.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -24,8 +24,6 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; - -import io.tiledb.cloud.rest_api.JSON; import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; @@ -38,12 +36,13 @@ import java.util.HashSet; import java.util.Map; +import io.tiledb.cloud.rest_api.JSON; + /** * Information about a single node within a registered task graph. A single node represents one piece of data or a computational step; either as an input value, a data source, or a computation that acts upon earlier nodes. The structure parallels the existing `TaskGraphNodeMetadata`. */ @ApiModel(description = "Information about a single node within a registered task graph. A single node represents one piece of data or a computational step; either as an input value, a data source, or a computation that acts upon earlier nodes. The structure parallels the existing `TaskGraphNodeMetadata`. ") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class TaskGraphNode { public static final String SERIALIZED_NAME_CLIENT_NODE_ID = "client_node_id"; @SerializedName(SERIALIZED_NAME_CLIENT_NODE_ID) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphNodeMetadata.java b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphNodeMetadata.java index 3ed4672..9772624 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphNodeMetadata.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphNodeMetadata.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -24,7 +24,6 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; - import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; @@ -44,8 +43,7 @@ * Metadata about an individual node in a task graph. */ @ApiModel(description = "Metadata about an individual node in a task graph.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class TaskGraphNodeMetadata { public static final String SERIALIZED_NAME_CLIENT_NODE_UUID = "client_node_uuid"; @SerializedName(SERIALIZED_NAME_CLIENT_NODE_UUID) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphSharing.java b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphSharing.java index 0f243d3..c69662a 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphSharing.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphSharing.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -41,8 +40,7 @@ * details for sharing a given registered task graph */ @ApiModel(description = "details for sharing a given registered task graph") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class TaskGraphSharing { public static final String SERIALIZED_NAME_ACTIONS = "actions"; @SerializedName(SERIALIZED_NAME_ACTIONS) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphType.java b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphType.java index 888185f..073e1bf 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphType.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphType.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package io.tiledb.cloud.rest_api.model; + import java.io.IOException; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -27,7 +28,9 @@ public enum TaskGraphType { BATCH("batch"), - REALTIME("realtime"); + REALTIME("realtime"), + + NEXTFLOW("nextflow"); private String value; diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphs.java b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphs.java index 1699690..a5fd01c 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphs.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphs.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -42,8 +41,7 @@ * Information about a series of task graphs. */ @ApiModel(description = "Information about a series of task graphs.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class TaskGraphs { public static final String SERIALIZED_NAME_GRAPHS = "graphs"; @SerializedName(SERIALIZED_NAME_GRAPHS) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TileDBConfig.java b/src/main/java/io/tiledb/cloud/rest_api/model/TileDBConfig.java index 8416228..047e886 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TileDBConfig.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TileDBConfig.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -42,8 +41,7 @@ * TileDB config used for interaction with the embedded library */ @ApiModel(description = "TileDB config used for interaction with the embedded library") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class TileDBConfig { public static final String SERIALIZED_NAME_ENTRIES = "entries"; @SerializedName(SERIALIZED_NAME_ENTRIES) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TileDBConfigEntriesInner.java b/src/main/java/io/tiledb/cloud/rest_api/model/TileDBConfigEntriesInner.java index 8c5333f..9d591ef 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TileDBConfigEntriesInner.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TileDBConfigEntriesInner.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -37,8 +36,7 @@ /** * TileDBConfigEntriesInner */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class TileDBConfigEntriesInner { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Token.java b/src/main/java/io/tiledb/cloud/rest_api/model/Token.java index 5d4fadf..856548e 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Token.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Token.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -42,8 +41,7 @@ * A api token and its metadata */ @ApiModel(description = "A api token and its metadata") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class Token { public static final String SERIALIZED_NAME_TOKEN = "token"; @SerializedName(SERIALIZED_NAME_TOKEN) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TokenRequest.java b/src/main/java/io/tiledb/cloud/rest_api/model/TokenRequest.java index e623046..0110e87 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TokenRequest.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TokenRequest.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -42,8 +41,7 @@ * A request from a user for an api token */ @ApiModel(description = "A request from a user for an api token") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class TokenRequest { public static final String SERIALIZED_NAME_EXPIRES = "expires"; @SerializedName(SERIALIZED_NAME_EXPIRES) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/TokenScope.java b/src/main/java/io/tiledb/cloud/rest_api/model/TokenScope.java index 562e24b..6417985 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TokenScope.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TokenScope.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package io.tiledb.cloud.rest_api.model; + import java.io.IOException; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/UDFActions.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFActions.java index 1de3937..3e6758a 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/UDFActions.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/UDFActions.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package io.tiledb.cloud.rest_api.model; + import java.io.IOException; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/UDFArrayDetails.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFArrayDetails.java index 976b048..72c1d5f 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/UDFArrayDetails.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/UDFArrayDetails.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -24,8 +24,6 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; - -import io.tiledb.cloud.rest_api.JSON; import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; @@ -38,12 +36,13 @@ import java.util.HashSet; import java.util.Map; +import io.tiledb.cloud.rest_api.JSON; + /** * Contains array details for multi-array query including uri, ranges buffers */ @ApiModel(description = "Contains array details for multi-array query including uri, ranges buffers") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class UDFArrayDetails { public static final String SERIALIZED_NAME_PARAMETER_ID = "parameter_id"; @SerializedName(SERIALIZED_NAME_PARAMETER_ID) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/UDFCopied.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFCopied.java index 60c237d..da97f24 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/UDFCopied.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/UDFCopied.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -39,8 +38,7 @@ * Copied udf uri and information */ @ApiModel(description = "Copied udf uri and information") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class UDFCopied { public static final String SERIALIZED_NAME_OUTPUT_URI = "output_uri"; @SerializedName(SERIALIZED_NAME_OUTPUT_URI) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/UDFCopy.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFCopy.java index b3e315c..2197706 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/UDFCopy.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/UDFCopy.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -39,8 +38,7 @@ * information required to copy a udf */ @ApiModel(description = "information required to copy a udf") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class UDFCopy { public static final String SERIALIZED_NAME_OUTPUT_URI = "output_uri"; @SerializedName(SERIALIZED_NAME_OUTPUT_URI) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/UDFFavorite.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFFavorite.java index 7d2b7d7..c2196e3 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/UDFFavorite.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/UDFFavorite.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -39,8 +38,7 @@ * A user-favorite UDF item */ @ApiModel(description = "A user-favorite UDF item") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class UDFFavorite { public static final String SERIALIZED_NAME_UDF_UUID = "udf_uuid"; @SerializedName(SERIALIZED_NAME_UDF_UUID) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/UDFFavoritesData.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFFavoritesData.java index c3d7d28..d52d7b1 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/UDFFavoritesData.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/UDFFavoritesData.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -42,8 +41,7 @@ * Object including UDF favorites and pagination metadata */ @ApiModel(description = "Object including UDF favorites and pagination metadata") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class UDFFavoritesData { public static final String SERIALIZED_NAME_UDFS = "udfs"; @SerializedName(SERIALIZED_NAME_UDFS) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/UDFImage.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFImage.java index d07f710..a471a77 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/UDFImage.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/UDFImage.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -39,8 +38,7 @@ * Defines a set of images related to a specific name */ @ApiModel(description = "Defines a set of images related to a specific name") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class UDFImage { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/UDFImageVersion.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFImageVersion.java index 54a491c..50266fc 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/UDFImageVersion.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/UDFImageVersion.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -40,8 +39,7 @@ * Defines an image that belongs to a set of images having a version */ @ApiModel(description = "Defines an image that belongs to a set of images having a version") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class UDFImageVersion { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/UDFInfo.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFInfo.java index b677626..9f8694d 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/UDFInfo.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/UDFInfo.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -41,8 +40,7 @@ * User-defined function that can persist in db, used and shared multiple times */ @ApiModel(description = "User-defined function that can persist in db, used and shared multiple times") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class UDFInfo { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/UDFInfoUpdate.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFInfoUpdate.java index 2693901..fa59a6b 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/UDFInfoUpdate.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/UDFInfoUpdate.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -41,8 +40,7 @@ * User-defined function that can persist in db, used and shared multiple times */ @ApiModel(description = "User-defined function that can persist in db, used and shared multiple times") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class UDFInfoUpdate { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/UDFLanguage.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFLanguage.java index 3ffaf4b..fd8369a 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/UDFLanguage.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/UDFLanguage.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package io.tiledb.cloud.rest_api.model; + import java.io.IOException; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -27,7 +28,9 @@ public enum UDFLanguage { PYTHON("python"), - R("r"); + R("r"), + + NEXTFLOW("nextflow"); private String value; diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/UDFSharing.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFSharing.java index 5ba1e61..5f9d795 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/UDFSharing.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/UDFSharing.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -41,8 +40,7 @@ * details for sharing a given UDF */ @ApiModel(description = "details for sharing a given UDF") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class UDFSharing { public static final String SERIALIZED_NAME_ACTIONS = "actions"; @SerializedName(SERIALIZED_NAME_ACTIONS) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/UDFSubarray.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFSubarray.java index 9174fee..a83bae3 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/UDFSubarray.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/UDFSubarray.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -42,8 +41,7 @@ * Subarray bounds to query for a UDF to operate on */ @ApiModel(description = "Subarray bounds to query for a UDF to operate on") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class UDFSubarray { public static final String SERIALIZED_NAME_LAYOUT = "layout"; @SerializedName(SERIALIZED_NAME_LAYOUT) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/UDFSubarrayRange.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFSubarrayRange.java index 06473bf..b356fff 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/UDFSubarrayRange.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/UDFSubarrayRange.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -39,8 +38,7 @@ * A dimension range to query */ @ApiModel(description = "A dimension range to query") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class UDFSubarrayRange { public static final String SERIALIZED_NAME_DIMENSION_ID = "dimension_id"; @SerializedName(SERIALIZED_NAME_DIMENSION_ID) diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/UDFType.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFType.java index c4892b1..5610707 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/UDFType.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/UDFType.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,7 @@ package io.tiledb.cloud.rest_api.model; + import java.io.IOException; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/User.java b/src/main/java/io/tiledb/cloud/rest_api/model/User.java index eab02ed..d3b70b4 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/User.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/User.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -24,8 +24,6 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; - -import io.tiledb.cloud.rest_api.JSON; import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; @@ -39,12 +37,13 @@ import java.util.HashSet; import java.util.Map; +import io.tiledb.cloud.rest_api.JSON; + /** * User */ @ApiModel(description = "User") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class User { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -118,6 +117,10 @@ public class User { @SerializedName(SERIALIZED_NAME_DEFAULT_NAMESPACE_CHARGED) private String defaultNamespaceCharged; + public static final String SERIALIZED_NAME_DEFAULT_REGION = "default_region"; + @SerializedName(SERIALIZED_NAME_DEFAULT_REGION) + private String defaultRegion; + public User() { } @@ -513,6 +516,29 @@ public void setDefaultNamespaceCharged(String defaultNamespaceCharged) { this.defaultNamespaceCharged = defaultNamespaceCharged; } + + public User defaultRegion(String defaultRegion) { + + this.defaultRegion = defaultRegion; + return this; + } + + /** + * The default region to use for notebooks and other operations. It must be a region supported by TileDB, see https://docs.tiledb.com/cloud/concepts/tiledb-cloud-internals/architecture#orchestration + * @return defaultRegion + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The default region to use for notebooks and other operations. It must be a region supported by TileDB, see https://docs.tiledb.com/cloud/concepts/tiledb-cloud-internals/architecture#orchestration ") + + public String getDefaultRegion() { + return defaultRegion; + } + + + public void setDefaultRegion(String defaultRegion) { + this.defaultRegion = defaultRegion; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -576,7 +602,8 @@ public boolean equals(Object o) { Objects.equals(this.defaultS3Path, user.defaultS3Path) && Objects.equals(this.defaultS3PathCredentialsName, user.defaultS3PathCredentialsName) && Objects.equals(this.assetLocations, user.assetLocations) && - Objects.equals(this.defaultNamespaceCharged, user.defaultNamespaceCharged)&& + Objects.equals(this.defaultNamespaceCharged, user.defaultNamespaceCharged) && + Objects.equals(this.defaultRegion, user.defaultRegion)&& Objects.equals(this.additionalProperties, user.additionalProperties); } @@ -586,7 +613,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(id, username, password, name, email, isValidEmail, stripeConnect, company, logo, timezone, organizations, allowedActions, enabledFeatures, unpaidSubscription, defaultS3Path, defaultS3PathCredentialsName, assetLocations, defaultNamespaceCharged, additionalProperties); + return Objects.hash(id, username, password, name, email, isValidEmail, stripeConnect, company, logo, timezone, organizations, allowedActions, enabledFeatures, unpaidSubscription, defaultS3Path, defaultS3PathCredentialsName, assetLocations, defaultNamespaceCharged, defaultRegion, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -618,6 +645,7 @@ public String toString() { sb.append(" defaultS3PathCredentialsName: ").append(toIndentedString(defaultS3PathCredentialsName)).append("\n"); sb.append(" assetLocations: ").append(toIndentedString(assetLocations)).append("\n"); sb.append(" defaultNamespaceCharged: ").append(toIndentedString(defaultNamespaceCharged)).append("\n"); + sb.append(" defaultRegion: ").append(toIndentedString(defaultRegion)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -659,6 +687,7 @@ private String toIndentedString(Object o) { openapiFields.add("default_s3_path_credentials_name"); openapiFields.add("asset_locations"); openapiFields.add("default_namespace_charged"); + openapiFields.add("default_region"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -740,6 +769,9 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if ((jsonObj.get("default_namespace_charged") != null && !jsonObj.get("default_namespace_charged").isJsonNull()) && !jsonObj.get("default_namespace_charged").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `default_namespace_charged` to be a primitive type in the JSON string but got `%s`", jsonObj.get("default_namespace_charged").toString())); } + if ((jsonObj.get("default_region") != null && !jsonObj.get("default_region").isJsonNull()) && !jsonObj.get("default_region").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `default_region` to be a primitive type in the JSON string but got `%s`", jsonObj.get("default_region").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Writer.java b/src/main/java/io/tiledb/cloud/rest_api/model/Writer.java index e752eb3..3df1a31 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/Writer.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Writer.java @@ -2,7 +2,7 @@ * TileDB Storage Platform API * TileDB Storage Platform REST API * - * The version of the OpenAPI document: 2.2.19 + * The version of the OpenAPI document: 2.17.51 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,6 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -37,8 +36,7 @@ /** * Writer */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-02-05T12:18:15.115227Z[Etc/UTC]") public class Writer { public static final String SERIALIZED_NAME_CHECK_COORD_DUPS = "checkCoordDups"; @SerializedName(SERIALIZED_NAME_CHECK_COORD_DUPS) diff --git a/src/main/java/io/tiledb/cloud/rest_api/v2/ApiException.java b/src/main/java/io/tiledb/cloud/rest_api/v2/ApiException.java index 0e12b5b..f38b404 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/v2/ApiException.java +++ b/src/main/java/io/tiledb/cloud/rest_api/v2/ApiException.java @@ -16,7 +16,6 @@ import java.util.Map; import java.util.List; -import javax.ws.rs.core.GenericType; /** *

ApiException class.

From dc0d4ec5e07783c41a994dd1119d49edd054da87 Mon Sep 17 00:00:00 2001 From: Nikos Papailiou Date: Thu, 6 Feb 2025 11:54:24 +0200 Subject: [PATCH 2/7] Use unittest namespace for tests --- src/main/java/examples/Examples.java | 30 ++++++++++++++-------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/main/java/examples/Examples.java b/src/main/java/examples/Examples.java index c08ae36..51f4c12 100644 --- a/src/main/java/examples/Examples.java +++ b/src/main/java/examples/Examples.java @@ -54,15 +54,15 @@ public static void main(String[] args) throws ApiException { private static void runSQL(TileDBClient tileDBClient) { SQLParameters sqlParameters = new SQLParameters(); - sqlParameters.setQuery("SELECT * FROM `tiledb://TileDB-Inc/quickstart_sparse`"); - TileDBSQL tileDBSQL = new TileDBSQL(tileDBClient, "TileDB-Inc", sqlParameters); + sqlParameters.setQuery("SELECT * FROM `tiledb://unittest/quickstart_sparse`"); + TileDBSQL tileDBSQL = new TileDBSQL(tileDBClient, "unittest", sqlParameters); System.out.println(tileDBSQL.exec()); } private static void runSQLArrow(TileDBClient tileDBClient) { SQLParameters sqlParameters = new SQLParameters(); - sqlParameters.setQuery("SELECT * FROM `tiledb://TileDB-Inc/quickstart_sparse`"); - TileDBSQL tileDBSQL = new TileDBSQL(tileDBClient, "TileDB-Inc", sqlParameters); + sqlParameters.setQuery("SELECT * FROM `tiledb://unittest/quickstart_sparse`"); + TileDBSQL tileDBSQL = new TileDBSQL(tileDBClient, "unittest", sqlParameters); Pair, Integer> a = tileDBSQL.execArrow(); } @@ -71,9 +71,9 @@ private static void runSQLArrow(TileDBClient tileDBClient) { * @param tileDBClient */ private static void runGenericUDF(TileDBClient tileDBClient){ - TileDBUDF tileDBUDF = new TileDBUDF(tileDBClient, "TileDB-Inc"); + TileDBUDF tileDBUDF = new TileDBUDF(tileDBClient, "unittest"); GenericUDF genericUDF = new GenericUDF(); - genericUDF.setUdfInfoName("TileDB-Inc/args-udf"); + genericUDF.setUdfInfoName("unittest/args-udf"); HashMap arguments = new HashMap<>(); arguments.put("arg1", "a1"); arguments.put("arg2", "a2"); @@ -86,7 +86,7 @@ private static void runGenericUDF(TileDBClient tileDBClient){ * @param tileDBClient */ public static void runArrayUDF(TileDBClient tileDBClient){ - TileDBUDF tileDBUDF = new TileDBUDF(tileDBClient, "TileDB-Inc"); + TileDBUDF tileDBUDF = new TileDBUDF(tileDBClient, "unittest"); ArrayList range1 = new ArrayList<>(); range1.add(BigDecimal.valueOf(1)); range1.add(BigDecimal.valueOf(4)); @@ -104,13 +104,13 @@ public static void runArrayUDF(TileDBClient tileDBClient){ argumentsForArrayUDF.put("scale", 9); GenericUDF genericUDF = new GenericUDF(); - genericUDF.setUdfInfoName("TileDB-Inc/array-udf"); + genericUDF.setUdfInfoName("unittest/array-udf"); genericUDF.setArgument(serializeArgs(argumentsForArrayUDF)); UDFArrayDetails array = new UDFArrayDetails(); - array.setUri("tiledb://TileDB-Inc/quickstart_sparse"); + array.setUri("tiledb://unittest/quickstart_sparse"); - System.out.println(tileDBUDF.executeSingleArray(genericUDF, array, queryRanges, "TileDB-Inc")); + System.out.println(tileDBUDF.executeSingleArray(genericUDF, array, queryRanges, "unittest")); } /** @@ -118,7 +118,7 @@ public static void runArrayUDF(TileDBClient tileDBClient){ * @param tileDBClient */ public static void runMultiArrayUDF(TileDBClient tileDBClient){ - TileDBUDF tileDBUDF = new TileDBUDF(tileDBClient, "TileDB-Inc"); + TileDBUDF tileDBUDF = new TileDBUDF(tileDBClient, "unittest"); ArrayList range1 = new ArrayList<>(); range1.add(BigDecimal.valueOf(1)); @@ -133,7 +133,7 @@ public static void runMultiArrayUDF(TileDBClient tileDBClient){ queryRanges.addRangesItem(range2); MultiArrayUDF multiArrayUDF = new MultiArrayUDF(); - multiArrayUDF.setUdfInfoName("TileDB-Inc/multi-array-udf"); + multiArrayUDF.setUdfInfoName("unittest/multi-array-udf"); List arrays = new ArrayList<>(); @@ -146,7 +146,7 @@ public static void runMultiArrayUDF(TileDBClient tileDBClient){ //array2 UDFArrayDetails array2 = new UDFArrayDetails(); - array2.setUri("tiledb://TileDB-Inc/quickstart_dense"); + array2.setUri("tiledb://unittest/quickstart_dense"); array2.setRanges(queryRanges); array2.setBuffers(Arrays.asList("rows", "cols", "a")); arrays.add(array2); @@ -207,7 +207,7 @@ private static void listGroups(TileDBClient tileDBClient) Integer page = null; // Integer | pagination offset Integer perPage = null; // Integer | pagination limit String search = null; // String | search string that will look at name, namespace or description fields - String namespace = "TileDB-Inc"; // String | namespace + String namespace = "unittest"; // String | namespace String orderby = null; // String | sort by which field valid values include last_accessed, size, name String permissions = null; // String | permissions valid values include read, read_write, write, admin String groupType = "generic"; // String | filter by a specific group type @@ -247,7 +247,7 @@ private static void listArrays(TileDBClient tileDBClient) } private static void getArray(TileDBClient tileDBClient){ - String namespace = "TileDB-Inc"; // String | namespace array is in (an organization name or user's username) + String namespace = "unittest"; // String | namespace array is in (an organization name or user's username) String array = "quickstart_sparse"; // String | name/uri of array that is url-encoded String contentType = "application/json"; // String | Content Type of input and return mime ArrayApi apiInstance = new ArrayApi(tileDBClient.getApiClient()); From 3a77f68189e9bac255624279cac7c59f2bf7dda8 Mon Sep 17 00:00:00 2001 From: Nikos Papailiou Date: Thu, 6 Feb 2025 12:00:45 +0200 Subject: [PATCH 3/7] Fixtests --- src/main/java/examples/Examples.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main/java/examples/Examples.java b/src/main/java/examples/Examples.java index 51f4c12..6d294d0 100644 --- a/src/main/java/examples/Examples.java +++ b/src/main/java/examples/Examples.java @@ -54,14 +54,14 @@ public static void main(String[] args) throws ApiException { private static void runSQL(TileDBClient tileDBClient) { SQLParameters sqlParameters = new SQLParameters(); - sqlParameters.setQuery("SELECT * FROM `tiledb://unittest/quickstart_sparse`"); + sqlParameters.setQuery("SELECT * FROM `tiledb://TileDB-Inc/quickstart_sparse`"); TileDBSQL tileDBSQL = new TileDBSQL(tileDBClient, "unittest", sqlParameters); System.out.println(tileDBSQL.exec()); } private static void runSQLArrow(TileDBClient tileDBClient) { SQLParameters sqlParameters = new SQLParameters(); - sqlParameters.setQuery("SELECT * FROM `tiledb://unittest/quickstart_sparse`"); + sqlParameters.setQuery("SELECT * FROM `tiledb://TileDB-Inc/quickstart_sparse`"); TileDBSQL tileDBSQL = new TileDBSQL(tileDBClient, "unittest", sqlParameters); Pair, Integer> a = tileDBSQL.execArrow(); } @@ -73,7 +73,7 @@ private static void runSQLArrow(TileDBClient tileDBClient) { private static void runGenericUDF(TileDBClient tileDBClient){ TileDBUDF tileDBUDF = new TileDBUDF(tileDBClient, "unittest"); GenericUDF genericUDF = new GenericUDF(); - genericUDF.setUdfInfoName("unittest/args-udf"); + genericUDF.setUdfInfoName("TileDB-Inc/args-udf"); HashMap arguments = new HashMap<>(); arguments.put("arg1", "a1"); arguments.put("arg2", "a2"); @@ -104,11 +104,11 @@ public static void runArrayUDF(TileDBClient tileDBClient){ argumentsForArrayUDF.put("scale", 9); GenericUDF genericUDF = new GenericUDF(); - genericUDF.setUdfInfoName("unittest/array-udf"); + genericUDF.setUdfInfoName("TileDB-Inc/array-udf"); genericUDF.setArgument(serializeArgs(argumentsForArrayUDF)); UDFArrayDetails array = new UDFArrayDetails(); - array.setUri("tiledb://unittest/quickstart_sparse"); + array.setUri("tiledb://TileDB-Inc/quickstart_sparse"); System.out.println(tileDBUDF.executeSingleArray(genericUDF, array, queryRanges, "unittest")); } @@ -133,7 +133,7 @@ public static void runMultiArrayUDF(TileDBClient tileDBClient){ queryRanges.addRangesItem(range2); MultiArrayUDF multiArrayUDF = new MultiArrayUDF(); - multiArrayUDF.setUdfInfoName("unittest/multi-array-udf"); + multiArrayUDF.setUdfInfoName("TileDB-Inc/multi-array-udf"); List arrays = new ArrayList<>(); @@ -146,7 +146,7 @@ public static void runMultiArrayUDF(TileDBClient tileDBClient){ //array2 UDFArrayDetails array2 = new UDFArrayDetails(); - array2.setUri("tiledb://unittest/quickstart_dense"); + array2.setUri("tiledb://TileDB-Inc/quickstart_dense"); array2.setRanges(queryRanges); array2.setBuffers(Arrays.asList("rows", "cols", "a")); arrays.add(array2); @@ -231,7 +231,7 @@ private static void listGroups(TileDBClient tileDBClient) private static void listArrays(TileDBClient tileDBClient) { - String namespace = "dstara"; // String | namespace array is in (an organization name or user's username) + String namespace = "unittest"; // String | namespace array is in (an organization name or user's username) ArrayApi apiInstance = new ArrayApi(tileDBClient.getApiClient()); try { From b21d4573126b836629087b059a64daca0e43917f Mon Sep 17 00:00:00 2001 From: Nikos Papailiou Date: Thu, 6 Feb 2025 12:13:15 +0200 Subject: [PATCH 4/7] Fix tests --- .github/workflows/github_actions.yml | 7 +++++++ src/main/java/examples/Examples.java | 8 ++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/github_actions.yml b/.github/workflows/github_actions.yml index 436b658..3467ef1 100644 --- a/.github/workflows/github_actions.yml +++ b/.github/workflows/github_actions.yml @@ -17,6 +17,13 @@ jobs: - name: checkout uses: actions/checkout@v3 + - name: Set up Java + uses: actions/setup-java@v2 + with: + distribution: 'adopt' + java-version: '8' + check-latest: true + - run: | unset SYSTEM ./gradlew assemble; diff --git a/src/main/java/examples/Examples.java b/src/main/java/examples/Examples.java index 6d294d0..bf42d9e 100644 --- a/src/main/java/examples/Examples.java +++ b/src/main/java/examples/Examples.java @@ -139,9 +139,9 @@ public static void runMultiArrayUDF(TileDBClient tileDBClient){ //array1 UDFArrayDetails array1 = new UDFArrayDetails(); - array1.setUri("tiledb://shaunreed/dense-array"); + array1.setUri("tiledb://TileDB-Inc/quickstart_dense"); array1.setRanges(queryRanges); - array1.setBuffers(Arrays.asList("rows", "cols", "a1")); + array1.setBuffers(Arrays.asList("rows", "cols", "a")); arrays.add(array1); //array2 @@ -154,7 +154,7 @@ public static void runMultiArrayUDF(TileDBClient tileDBClient){ multiArrayUDF.setArrays(arrays); HashMap arguments = new HashMap<>(); - arguments.put("attr1", "a1"); + arguments.put("attr1", "a"); arguments.put("attr2", "a"); multiArrayUDF.setArgument(serializeArgs(arguments)); @@ -247,7 +247,7 @@ private static void listArrays(TileDBClient tileDBClient) } private static void getArray(TileDBClient tileDBClient){ - String namespace = "unittest"; // String | namespace array is in (an organization name or user's username) + String namespace = "TileDB-Inc"; // String | namespace array is in (an organization name or user's username) String array = "quickstart_sparse"; // String | name/uri of array that is url-encoded String contentType = "application/json"; // String | Content Type of input and return mime ArrayApi apiInstance = new ArrayApi(tileDBClient.getApiClient()); From 2d604806cd7e08aa2627630b596c7eb05e9d81d5 Mon Sep 17 00:00:00 2001 From: Nikos Papailiou Date: Thu, 6 Feb 2025 12:19:44 +0200 Subject: [PATCH 5/7] Fix tests --- src/main/java/examples/Examples.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/examples/Examples.java b/src/main/java/examples/Examples.java index bf42d9e..fb11915 100644 --- a/src/main/java/examples/Examples.java +++ b/src/main/java/examples/Examples.java @@ -139,7 +139,7 @@ public static void runMultiArrayUDF(TileDBClient tileDBClient){ //array1 UDFArrayDetails array1 = new UDFArrayDetails(); - array1.setUri("tiledb://TileDB-Inc/quickstart_dense"); + array1.setUri("tiledb://TileDB-Inc/quickstart_sparse"); array1.setRanges(queryRanges); array1.setBuffers(Arrays.asList("rows", "cols", "a")); arrays.add(array1); From 0a3bb7391b76aa1eff682ae268f183963b0a78a4 Mon Sep 17 00:00:00 2001 From: Nikos Papailiou Date: Thu, 6 Feb 2025 12:24:24 +0200 Subject: [PATCH 6/7] Fix tests --- src/main/java/examples/Examples.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/examples/Examples.java b/src/main/java/examples/Examples.java index fb11915..11f8dc5 100644 --- a/src/main/java/examples/Examples.java +++ b/src/main/java/examples/Examples.java @@ -146,7 +146,7 @@ public static void runMultiArrayUDF(TileDBClient tileDBClient){ //array2 UDFArrayDetails array2 = new UDFArrayDetails(); - array2.setUri("tiledb://TileDB-Inc/quickstart_dense"); + array2.setUri("tiledb://TileDB-Inc/quickstart_sparse-eu-west-2"); array2.setRanges(queryRanges); array2.setBuffers(Arrays.asList("rows", "cols", "a")); arrays.add(array2); From cd3f36afaf39e265438e6550031b96038fc4dc3f Mon Sep 17 00:00:00 2001 From: Nikos Papailiou Date: Thu, 6 Feb 2025 12:26:39 +0200 Subject: [PATCH 7/7] Test Java 11 --- .github/workflows/github_actions.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/github_actions.yml b/.github/workflows/github_actions.yml index 3467ef1..6d65d25 100644 --- a/.github/workflows/github_actions.yml +++ b/.github/workflows/github_actions.yml @@ -21,7 +21,7 @@ jobs: uses: actions/setup-java@v2 with: distribution: 'adopt' - java-version: '8' + java-version: '11' check-latest: true - run: |