From 00e35359686e51c2316023222d2573dcb9777f5b Mon Sep 17 00:00:00 2001 From: Seth Shelnutt Date: Fri, 13 Sep 2024 19:31:39 -0400 Subject: [PATCH 1/8] WIP regenerate --- .openapi-generator/FILES | 887 +++--- .openapi-generator/VERSION | 2 +- build.gradle | 4 +- docs/ActivityEventType.md | 2 + docs/ArrayApi.md | 2566 +++++++++-------- docs/ArrayConsolidationRequest.md | 1 + docs/ArrayInfo.md | 3 + docs/ArrayTask.md | 2 + docs/ArrayTasksApi.md | 71 +- docs/AssetBackingType.md | 13 + docs/AssetInfo.md | 23 + docs/AssetListResponse.md | 15 + docs/AssetOwnershipLevel.md | 13 + docs/AssetsApi.md | 188 ++ docs/Datatype.md | 48 + docs/Enumeration.md | 20 + docs/FavoritesApi.md | 1390 +++++---- docs/FilesApi.md | 223 +- docs/GroupContentActivity.md | 15 + docs/GroupContentActivityAsset.md | 17 + docs/GroupContentActivityResponse.md | 15 + docs/GroupInfo.md | 3 + docs/GroupsApi.md | 1289 ++++----- docs/InvitationApi.md | 734 +++-- 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 | 362 ++- docs/NotebookStatus.md | 1 + docs/NotebooksApi.md | 146 +- docs/Organization.md | 1 + docs/OrganizationApi.md | 1394 +++++---- docs/OrganizationUpdate.md | 19 + docs/OrganizationUser.md | 2 + docs/PodStatus.md | 15 + docs/QueryApi.md | 395 ++- docs/RegisteredTaskGraphsApi.md | 424 ++- docs/RetryPolicy.md | 6 +- docs/SSOProvider.md | 4 + docs/SharePaymentRequest.md | 13 + docs/SqlApi.md | 77 +- docs/StatsApi.md | 67 +- docs/TGUDFEnvironment.md | 1 + docs/TGUDFEnvironmentResources.md | 2 +- docs/TGUDFStorage.md | 16 + docs/TaskGraph.md | 4 +- docs/TaskGraphLog.md | 2 + docs/TaskGraphLogsApi.md | 658 +++-- docs/TaskGraphsApi.md | 353 ++- docs/TasksApi.md | 312 +- docs/UdfApi.md | 801 +++-- docs/User.md | 1 + docs/UserApi.md | 1494 +++++----- gradle/wrapper/gradle-wrapper.jar | Bin 59536 -> 43453 bytes gradle/wrapper/gradle-wrapper.properties | 2 + gradlew | 189 +- gradlew.bat | 37 +- src/main/java/examples/Examples.java | 6 +- src/main/java/io/tiledb/cloud/TileDBSQL.java | 2 +- .../io/tiledb/cloud/rest_api/ApiCallback.java | 4 +- .../io/tiledb/cloud/rest_api/ApiClient.java | 165 +- .../tiledb/cloud/rest_api/ApiException.java | 11 +- .../io/tiledb/cloud/rest_api/ApiResponse.java | 2 +- .../tiledb/cloud/rest_api/Configuration.java | 6 +- .../rest_api/GzipRequestInterceptor.java | 2 +- .../java/io/tiledb/cloud/rest_api/JSON.java | 430 +-- .../java/io/tiledb/cloud/rest_api/Pair.java | 4 +- .../cloud/rest_api/ProgressRequestBody.java | 2 +- .../cloud/rest_api/ProgressResponseBody.java | 2 +- .../cloud/rest_api/ServerConfiguration.java | 3 +- .../tiledb/cloud/rest_api/ServerVariable.java | 1 + .../io/tiledb/cloud/rest_api/StringUtil.java | 4 +- .../tiledb/cloud/rest_api/api/ArrayApi.java | 918 +++--- .../cloud/rest_api/api/ArrayTasksApi.java | 20 +- .../tiledb/cloud/rest_api/api/AssetsApi.java | 440 +++ .../cloud/rest_api/api/FavoritesApi.java | 239 +- .../tiledb/cloud/rest_api/api/FilesApi.java | 46 +- .../tiledb/cloud/rest_api/api/GroupsApi.java | 296 +- .../cloud/rest_api/api/InvitationApi.java | 404 ++- .../cloud/rest_api/api/NotebookApi.java | 73 +- .../cloud/rest_api/api/NotebooksApi.java | 38 +- .../cloud/rest_api/api/OrganizationApi.java | 262 +- .../tiledb/cloud/rest_api/api/QueryApi.java | 119 +- .../rest_api/api/RegisteredTaskGraphsApi.java | 95 +- .../io/tiledb/cloud/rest_api/api/SqlApi.java | 125 +- .../tiledb/cloud/rest_api/api/StatsApi.java | 18 +- .../cloud/rest_api/api/TaskGraphLogsApi.java | 182 +- .../cloud/rest_api/api/TaskGraphsApi.java | 78 +- .../tiledb/cloud/rest_api/api/TasksApi.java | 69 +- .../io/tiledb/cloud/rest_api/api/UdfApi.java | 1104 ++++--- .../io/tiledb/cloud/rest_api/api/UserApi.java | 239 +- .../cloud/rest_api/auth/ApiKeyAuth.java | 4 +- .../cloud/rest_api/auth/Authentication.java | 2 +- .../cloud/rest_api/auth/HttpBasicAuth.java | 2 +- .../cloud/rest_api/auth/HttpBearerAuth.java | 24 +- .../io/tiledb/cloud/rest_api/auth/OAuth.java | 4 +- .../tiledb/cloud/rest_api/auth/OAuthFlow.java | 4 +- .../cloud/rest_api/auth/RetryingOAuth.java | 8 +- .../rest_api/model/AWSAccessCredentials.java | 166 +- .../rest_api/model/AbstractOpenApiSchema.java | 11 +- .../rest_api/model/ActivityEventType.java | 15 +- .../io/tiledb/cloud/rest_api/model/Array.java | 129 +- .../cloud/rest_api/model/ArrayActions.java | 11 +- .../rest_api/model/ArrayActivityLog.java | 202 +- .../rest_api/model/ArrayBrowserData.java | 140 +- .../rest_api/model/ArrayBrowserSidebar.java | 126 +- .../model/ArrayConsolidationRequest.java | 151 +- .../rest_api/model/ArrayEndTimestampData.java | 121 +- .../cloud/rest_api/model/ArrayFavorite.java | 121 +- .../rest_api/model/ArrayFavoritesData.java | 139 +- .../cloud/rest_api/model/ArrayInfo.java | 476 +-- .../cloud/rest_api/model/ArrayInfoUpdate.java | 203 +- .../cloud/rest_api/model/ArrayMetadata.java | 128 +- .../rest_api/model/ArrayMetadataEntry.java | 143 +- .../cloud/rest_api/model/ArraySample.java | 105 +- .../cloud/rest_api/model/ArraySchema.java | 314 +- .../cloud/rest_api/model/ArraySharing.java | 127 +- .../cloud/rest_api/model/ArrayTask.java | 456 ++- .../model/ArrayTaskBrowserSidebar.java | 126 +- .../cloud/rest_api/model/ArrayTaskData.java | 139 +- .../cloud/rest_api/model/ArrayTaskLog.java | 112 +- .../cloud/rest_api/model/ArrayTaskStatus.java | 11 +- .../cloud/rest_api/model/ArrayTaskType.java | 11 +- .../cloud/rest_api/model/ArrayType.java | 11 +- .../rest_api/model/ArrayVacuumRequest.java | 107 +- .../rest_api/model/AssetBackingType.java | 78 + .../cloud/rest_api/model/AssetInfo.java | 553 ++++ .../rest_api/model/AssetListResponse.java | 340 +++ .../cloud/rest_api/model/AssetLocations.java | 167 +- .../rest_api/model/AssetOwnershipLevel.java | 78 + .../cloud/rest_api/model/AssetType.java | 11 +- .../cloud/rest_api/model/Attribute.java | 166 +- .../rest_api/model/AttributeBufferHeader.java | 126 +- .../rest_api/model/AttributeBufferSize.java | 126 +- .../tiledb/cloud/rest_api/model/Backoff.java | 120 +- .../tiledb/cloud/rest_api/model/Datatype.java | 65 +- .../cloud/rest_api/model/Dimension.java | 164 +- .../rest_api/model/DimensionCoordinate.java | 176 +- .../rest_api/model/DimensionTileExtent.java | 177 +- .../tiledb/cloud/rest_api/model/Domain.java | 163 +- .../cloud/rest_api/model/DomainArray.java | 236 +- .../rest_api/model/DomainCheckResult.java | 117 +- .../rest_api/model/DomainCheckStatus.java | 11 +- .../model/DomainVerificationStatus.java | 11 +- .../cloud/rest_api/model/Enumeration.java | 475 +++ .../io/tiledb/cloud/rest_api/model/Error.java | 118 +- .../cloud/rest_api/model/FileCreate.java | 121 +- .../cloud/rest_api/model/FileCreated.java | 113 +- .../cloud/rest_api/model/FileExport.java | 104 +- .../cloud/rest_api/model/FileExported.java | 104 +- .../rest_api/model/FilePropertyName.java | 11 +- .../tiledb/cloud/rest_api/model/FileType.java | 11 +- .../cloud/rest_api/model/FileUploaded.java | 126 +- .../tiledb/cloud/rest_api/model/Filter.java | 122 +- .../cloud/rest_api/model/FilterData.java | 176 +- .../cloud/rest_api/model/FilterOption.java | 11 +- .../cloud/rest_api/model/FilterPipeline.java | 128 +- .../cloud/rest_api/model/FilterType.java | 33 +- .../cloud/rest_api/model/FragmentInfo.java | 155 +- .../rest_api/model/FragmentInfoRequest.java | 107 +- .../rest_api/model/FragmentMetadata.java | 404 ++- .../cloud/rest_api/model/GenericUDF.java | 248 +- .../model/GetTiledbStats200Response.java | 103 +- .../cloud/rest_api/model/GroupActions.java | 11 +- .../rest_api/model/GroupBrowserData.java | 140 +- .../model/GroupBrowserFilterData.java | 126 +- .../cloud/rest_api/model/GroupChanges.java | 161 +- .../rest_api/model/GroupContentActivity.java | 320 ++ .../model/GroupContentActivityAsset.java | 376 +++ .../model/GroupContentActivityResponse.java | 340 +++ .../cloud/rest_api/model/GroupContents.java | 139 +- .../model/GroupContentsFilterData.java | 110 +- .../cloud/rest_api/model/GroupCreate.java | 174 +- .../cloud/rest_api/model/GroupEntry.java | 127 +- .../cloud/rest_api/model/GroupInfo.java | 378 ++- .../cloud/rest_api/model/GroupMember.java | 125 +- .../rest_api/model/GroupMemberAssetType.java | 11 +- .../cloud/rest_api/model/GroupMemberType.java | 11 +- .../cloud/rest_api/model/GroupRegister.java | 174 +- .../cloud/rest_api/model/GroupSharing.java | 142 +- .../rest_api/model/GroupSharingRequest.java | 134 +- .../cloud/rest_api/model/GroupType.java | 11 +- .../rest_api/model/GroupTypeMetadataKey.java | 11 +- .../cloud/rest_api/model/GroupUpdate.java | 159 +- .../cloud/rest_api/model/Invitation.java | 271 +- .../model/InvitationArrayShareEmail.java | 135 +- .../cloud/rest_api/model/InvitationData.java | 139 +- .../model/InvitationFailedRecipients.java | 117 +- .../model/InvitationGroupShareEmail.java | 153 +- .../InvitationOrganizationJoinEmail.java | 144 +- .../rest_api/model/InvitationStatus.java | 11 +- .../cloud/rest_api/model/InvitationType.java | 15 +- .../rest_api/model/LastAccessedArray.java | 141 +- .../tiledb/cloud/rest_api/model/Layout.java | 11 +- .../model/LoadArraySchemaRequest.java | 289 ++ .../model/LoadArraySchemaResponse.java | 325 +++ .../model/LoadEnumerationsRequest.java | 329 +++ .../model/LoadEnumerationsResponse.java | 309 ++ .../cloud/rest_api/model/MLModelFavorite.java | 120 +- .../rest_api/model/MLModelFavoritesData.java | 139 +- .../cloud/rest_api/model/MaxBufferSizes.java | 128 +- .../rest_api/model/MetadataStringified.java | 309 ++ .../model/MetadataStringifiedEntry.java | 345 +++ .../cloud/rest_api/model/MultiArrayUDF.java | 354 +-- .../rest_api/model/NamespaceActions.java | 11 +- .../cloud/rest_api/model/NonEmptyDomain.java | 123 +- .../cloud/rest_api/model/NotebookCopied.java | 134 +- .../cloud/rest_api/model/NotebookCopy.java | 120 +- .../rest_api/model/NotebookFavorite.java | 120 +- .../rest_api/model/NotebookFavoritesData.java | 140 +- .../cloud/rest_api/model/NotebookStatus.java | 223 +- .../cloud/rest_api/model/Organization.java | 309 +- .../rest_api/model/OrganizationRoles.java | 11 +- .../rest_api/model/OrganizationUpdate.java | 446 +++ .../rest_api/model/OrganizationUser.java | 216 +- .../rest_api/model/PaginationMetadata.java | 140 +- .../cloud/rest_api/model/PodStatus.java | 80 + .../tiledb/cloud/rest_api/model/Pricing.java | 225 +- .../rest_api/model/PricingAggregateUsage.java | 11 +- .../cloud/rest_api/model/PricingCurrency.java | 11 +- .../cloud/rest_api/model/PricingInterval.java | 11 +- .../cloud/rest_api/model/PricingType.java | 11 +- .../rest_api/model/PricingUnitLabel.java | 11 +- .../rest_api/model/PublicShareFilter.java | 11 +- .../io/tiledb/cloud/rest_api/model/Query.java | 215 +- .../cloud/rest_api/model/QueryJson.java | 122 +- .../cloud/rest_api/model/QueryRanges.java | 124 +- .../cloud/rest_api/model/QueryReader.java | 156 +- .../cloud/rest_api/model/Querystatus.java | 11 +- .../cloud/rest_api/model/Querytype.java | 11 +- .../cloud/rest_api/model/ReadState.java | 132 +- .../rest_api/model/RegisteredTaskGraph.java | 195 +- .../model/ResetUserPasswordRequest.java | 105 +- .../cloud/rest_api/model/ResultFormat.java | 11 +- .../cloud/rest_api/model/RetryPolicy.java | 17 +- .../cloud/rest_api/model/RetryStrategy.java | 136 +- .../cloud/rest_api/model/SQLParameters.java | 202 +- .../cloud/rest_api/model/SSODomainConfig.java | 194 +- .../model/SSODomainConfigResponse.java | 129 +- .../cloud/rest_api/model/SSODomainSetup.java | 121 +- .../cloud/rest_api/model/SSOProvider.java | 17 +- .../rest_api/model/SharePaymentRequest.java | 298 ++ .../rest_api/model/SingleFragmentInfo.java | 116 +- .../cloud/rest_api/model/StorageLocation.java | 117 +- .../tiledb/cloud/rest_api/model/Subarray.java | 142 +- .../rest_api/model/SubarrayPartitioner.java | 178 +- .../model/SubarrayPartitionerCurrent.java | 132 +- .../model/SubarrayPartitionerState.java | 177 +- .../cloud/rest_api/model/SubarrayRanges.java | 132 +- .../cloud/rest_api/model/Subscription.java | 153 +- .../cloud/rest_api/model/TGArrayNodeData.java | 124 +- .../cloud/rest_api/model/TGInputNodeData.java | 113 +- .../cloud/rest_api/model/TGQueryRanges.java | 125 +- .../cloud/rest_api/model/TGSQLNodeData.java | 158 +- .../cloud/rest_api/model/TGUDFArgument.java | 117 +- .../rest_api/model/TGUDFEnvironment.java | 225 +- .../model/TGUDFEnvironmentResources.java | 123 +- .../cloud/rest_api/model/TGUDFNodeData.java | 181 +- .../cloud/rest_api/model/TGUDFStorage.java | 342 +++ .../cloud/rest_api/model/TaskGraph.java | 215 +- .../rest_api/model/TaskGraphActions.java | 11 +- .../model/TaskGraphClientNodeStatus.java | 118 +- .../cloud/rest_api/model/TaskGraphLog.java | 322 ++- .../model/TaskGraphLogRunLocation.java | 11 +- .../rest_api/model/TaskGraphLogStatus.java | 11 +- .../rest_api/model/TaskGraphLogsData.java | 140 +- .../cloud/rest_api/model/TaskGraphNode.java | 202 +- .../rest_api/model/TaskGraphNodeMetadata.java | 194 +- .../rest_api/model/TaskGraphSharing.java | 128 +- .../cloud/rest_api/model/TaskGraphType.java | 11 +- .../cloud/rest_api/model/TaskGraphs.java | 129 +- .../cloud/rest_api/model/TileDBConfig.java | 129 +- .../model/TileDBConfigEntriesInner.java | 111 +- .../io/tiledb/cloud/rest_api/model/Token.java | 144 +- .../cloud/rest_api/model/TokenRequest.java | 128 +- .../cloud/rest_api/model/TokenScope.java | 11 +- .../cloud/rest_api/model/UDFActions.java | 11 +- .../cloud/rest_api/model/UDFArrayDetails.java | 142 +- .../cloud/rest_api/model/UDFCopied.java | 135 +- .../tiledb/cloud/rest_api/model/UDFCopy.java | 121 +- .../cloud/rest_api/model/UDFFavorite.java | 121 +- .../rest_api/model/UDFFavoritesData.java | 140 +- .../tiledb/cloud/rest_api/model/UDFImage.java | 126 +- .../cloud/rest_api/model/UDFImageVersion.java | 153 +- .../tiledb/cloud/rest_api/model/UDFInfo.java | 177 +- .../cloud/rest_api/model/UDFInfoUpdate.java | 201 +- .../cloud/rest_api/model/UDFLanguage.java | 11 +- .../cloud/rest_api/model/UDFSharing.java | 128 +- .../cloud/rest_api/model/UDFSubarray.java | 142 +- .../rest_api/model/UDFSubarrayRange.java | 126 +- .../tiledb/cloud/rest_api/model/UDFType.java | 11 +- .../io/tiledb/cloud/rest_api/model/User.java | 320 +- .../tiledb/cloud/rest_api/model/Writer.java | 130 +- .../cloud/rest_api/api/ArrayApiTest.java | 560 ++++ .../cloud/rest_api/api/ArrayTasksApiTest.java | 46 + .../cloud/rest_api/api/AssetsApiTest.java | 72 + .../cloud/rest_api/api/FavoritesApiTest.java | 295 ++ .../cloud/rest_api/api/FilesApiTest.java | 84 + .../cloud/rest_api/api/GroupsApiTest.java | 309 ++ .../cloud/rest_api/api/InvitationApiTest.java | 181 ++ .../cloud/rest_api/api/NotebookApiTest.java | 110 + .../cloud/rest_api/api/NotebooksApiTest.java | 64 + .../rest_api/api/OrganizationApiTest.java | 297 ++ .../cloud/rest_api/api/QueryApiTest.java | 122 + .../api/RegisteredTaskGraphsApiTest.java | 117 + .../tiledb/cloud/rest_api/api/SqlApiTest.java | 49 + .../cloud/rest_api/api/StatsApiTest.java | 46 + .../rest_api/api/TaskGraphLogsApiTest.java | 161 ++ .../cloud/rest_api/api/TaskGraphsApiTest.java | 102 + .../cloud/rest_api/api/TasksApiTest.java | 101 + .../tiledb/cloud/rest_api/api/UdfApiTest.java | 200 ++ .../cloud/rest_api/api/UserApiTest.java | 311 ++ .../model/AWSAccessCredentialsTest.java | 107 + .../rest_api/model/ActivityEventTypeTest.java | 32 + .../rest_api/model/ArrayActionsTest.java | 32 + .../rest_api/model/ArrayActivityLogTest.java | 114 + .../rest_api/model/ArrayBrowserDataTest.java | 60 + .../model/ArrayBrowserSidebarTest.java | 66 + .../model/ArrayConsolidationRequestTest.java | 59 + .../model/ArrayEndTimestampDataTest.java | 59 + .../rest_api/model/ArrayFavoriteTest.java | 64 + .../model/ArrayFavoritesDataTest.java | 60 + .../cloud/rest_api/model/ArrayInfoTest.java | 269 ++ .../rest_api/model/ArrayInfoUpdateTest.java | 134 + .../model/ArrayMetadataEntryTest.java | 82 + .../rest_api/model/ArrayMetadataTest.java | 51 + .../cloud/rest_api/model/ArraySampleTest.java | 48 + .../cloud/rest_api/model/ArraySchemaTest.java | 135 + .../rest_api/model/ArraySharingTest.java | 67 + .../model/ArrayTaskBrowserSidebarTest.java | 66 + .../rest_api/model/ArrayTaskDataTest.java | 60 + .../rest_api/model/ArrayTaskLogTest.java | 56 + .../rest_api/model/ArrayTaskStatusTest.java | 32 + .../cloud/rest_api/model/ArrayTaskTest.java | 300 ++ .../rest_api/model/ArrayTaskTypeTest.java | 32 + .../cloud/rest_api/model/ArrayTest.java | 66 + .../cloud/rest_api/model/ArrayTypeTest.java | 32 + .../model/ArrayVacuumRequestTest.java | 49 + .../rest_api/model/AssetBackingTypeTest.java | 32 + .../cloud/rest_api/model/AssetInfoTest.java | 125 + .../rest_api/model/AssetListResponseTest.java | 60 + .../rest_api/model/AssetLocationsTest.java | 97 + .../model/AssetOwnershipLevelTest.java | 32 + .../cloud/rest_api/model/AssetTypeTest.java | 32 + .../model/AttributeBufferHeaderTest.java | 64 + .../model/AttributeBufferSizeTest.java | 64 + .../cloud/rest_api/model/AttributeTest.java | 92 + .../cloud/rest_api/model/BackoffTest.java | 64 + .../cloud/rest_api/model/DatatypeTest.java | 32 + .../model/DimensionCoordinateTest.java | 120 + .../cloud/rest_api/model/DimensionTest.java | 92 + .../model/DimensionTileExtentTest.java | 120 + .../cloud/rest_api/model/DomainArrayTest.java | 122 + .../rest_api/model/DomainCheckResultTest.java | 58 + .../rest_api/model/DomainCheckStatusTest.java | 32 + .../cloud/rest_api/model/DomainTest.java | 77 + .../model/DomainVerificationStatusTest.java | 32 + .../cloud/rest_api/model/EnumerationTest.java | 98 + .../cloud/rest_api/model/ErrorTest.java | 64 + .../cloud/rest_api/model/FileCreateTest.java | 64 + .../cloud/rest_api/model/FileCreatedTest.java | 56 + .../cloud/rest_api/model/FileExportTest.java | 48 + .../rest_api/model/FileExportedTest.java | 48 + .../rest_api/model/FilePropertyNameTest.java | 32 + .../cloud/rest_api/model/FileTypeTest.java | 32 + .../rest_api/model/FileUploadedTest.java | 64 + .../cloud/rest_api/model/FilterDataTest.java | 120 + .../rest_api/model/FilterOptionTest.java | 32 + .../rest_api/model/FilterPipelineTest.java | 51 + .../cloud/rest_api/model/FilterTest.java | 58 + .../cloud/rest_api/model/FilterTypeTest.java | 32 + .../model/FragmentInfoRequestTest.java | 49 + .../rest_api/model/FragmentInfoTest.java | 70 + .../rest_api/model/FragmentMetadataTest.java | 242 ++ .../cloud/rest_api/model/GenericUDFTest.java | 180 ++ .../model/GetTiledbStats200ResponseTest.java | 48 + .../rest_api/model/GroupActionsTest.java | 32 + .../rest_api/model/GroupBrowserDataTest.java | 60 + .../model/GroupBrowserFilterDataTest.java | 59 + .../rest_api/model/GroupChangesTest.java | 59 + .../model/GroupContentActivityAssetTest.java | 73 + .../GroupContentActivityResponseTest.java | 60 + .../model/GroupContentActivityTest.java | 58 + .../model/GroupContentsFilterDataTest.java | 50 + .../rest_api/model/GroupContentsTest.java | 60 + .../cloud/rest_api/model/GroupCreateTest.java | 114 + .../cloud/rest_api/model/GroupEntryTest.java | 66 + .../cloud/rest_api/model/GroupInfoTest.java | 224 ++ .../model/GroupMemberAssetTypeTest.java | 32 + .../cloud/rest_api/model/GroupMemberTest.java | 65 + .../rest_api/model/GroupMemberTypeTest.java | 32 + .../rest_api/model/GroupRegisterTest.java | 114 + .../model/GroupSharingRequestTest.java | 68 + .../rest_api/model/GroupSharingTest.java | 76 + .../model/GroupTypeMetadataKeyTest.java | 32 + .../cloud/rest_api/model/GroupTypeTest.java | 32 + .../cloud/rest_api/model/GroupUpdateTest.java | 99 + .../model/InvitationArrayShareEmailTest.java | 59 + .../rest_api/model/InvitationDataTest.java | 60 + .../model/InvitationFailedRecipientsTest.java | 50 + .../model/InvitationGroupShareEmailTest.java | 68 + .../InvitationOrganizationJoinEmailTest.java | 68 + .../rest_api/model/InvitationStatusTest.java | 32 + .../cloud/rest_api/model/InvitationTest.java | 204 ++ .../rest_api/model/InvitationTypeTest.java | 32 + .../rest_api/model/LastAccessedArrayTest.java | 82 + .../cloud/rest_api/model/LayoutTest.java | 32 + .../model/LoadArraySchemaRequestTest.java | 49 + .../model/LoadArraySchemaResponseTest.java | 59 + .../model/LoadEnumerationsRequestTest.java | 59 + .../model/LoadEnumerationsResponseTest.java | 51 + .../rest_api/model/MLModelFavoriteTest.java | 64 + .../model/MLModelFavoritesDataTest.java | 60 + .../rest_api/model/MaxBufferSizesTest.java | 51 + .../model/MetadataStringifiedEntryTest.java | 64 + .../model/MetadataStringifiedTest.java | 51 + .../rest_api/model/MultiArrayUDFTest.java | 225 ++ .../rest_api/model/NamespaceActionsTest.java | 32 + .../rest_api/model/NonEmptyDomainTest.java | 57 + .../rest_api/model/NotebookCopiedTest.java | 72 + .../rest_api/model/NotebookCopyTest.java | 64 + .../rest_api/model/NotebookFavoriteTest.java | 64 + .../model/NotebookFavoritesDataTest.java | 60 + .../rest_api/model/NotebookStatusTest.java | 138 + .../rest_api/model/OrganizationRolesTest.java | 32 + .../rest_api/model/OrganizationTest.java | 185 ++ .../model/OrganizationUpdateTest.java | 90 + .../rest_api/model/OrganizationUserTest.java | 108 + .../model/PaginationMetadataTest.java | 73 + .../cloud/rest_api/model/PodStatusTest.java | 32 + .../model/PricingAggregateUsageTest.java | 32 + .../rest_api/model/PricingCurrencyTest.java | 32 + .../rest_api/model/PricingIntervalTest.java | 32 + .../cloud/rest_api/model/PricingTest.java | 149 + .../cloud/rest_api/model/PricingTypeTest.java | 32 + .../rest_api/model/PricingUnitLabelTest.java | 32 + .../rest_api/model/PublicShareFilterTest.java | 32 + .../cloud/rest_api/model/QueryJsonTest.java | 59 + .../cloud/rest_api/model/QueryRangesTest.java | 60 + .../cloud/rest_api/model/QueryReaderTest.java | 91 + .../cloud/rest_api/model/QueryTest.java | 120 + .../cloud/rest_api/model/QuerystatusTest.java | 32 + .../cloud/rest_api/model/QuerytypeTest.java | 32 + .../cloud/rest_api/model/ReadStateTest.java | 73 + .../model/RegisteredTaskGraphTest.java | 108 + .../model/ResetUserPasswordRequestTest.java | 48 + .../rest_api/model/ResultFormatTest.java | 32 + .../cloud/rest_api/model/RetryPolicyTest.java | 32 + .../rest_api/model/RetryStrategyTest.java | 74 + .../rest_api/model/SQLParametersTest.java | 131 + .../model/SSODomainConfigResponseTest.java | 51 + .../rest_api/model/SSODomainConfigTest.java | 110 + .../rest_api/model/SSODomainSetupTest.java | 64 + .../cloud/rest_api/model/SSOProviderTest.java | 32 + .../model/SharePaymentRequestTest.java | 50 + .../model/SingleFragmentInfoTest.java | 57 + .../rest_api/model/StorageLocationTest.java | 57 + .../model/SubarrayPartitionerCurrentTest.java | 73 + .../model/SubarrayPartitionerStateTest.java | 75 + .../model/SubarrayPartitionerTest.java | 94 + .../rest_api/model/SubarrayRangesTest.java | 67 + .../cloud/rest_api/model/SubarrayTest.java | 60 + .../rest_api/model/SubscriptionTest.java | 75 + .../rest_api/model/TGArrayNodeDataTest.java | 65 + .../rest_api/model/TGInputNodeDataTest.java | 57 + .../rest_api/model/TGQueryRangesTest.java | 65 + .../rest_api/model/TGSQLNodeDataTest.java | 84 + .../rest_api/model/TGUDFArgumentTest.java | 57 + .../model/TGUDFEnvironmentResourcesTest.java | 64 + .../rest_api/model/TGUDFEnvironmentTest.java | 126 + .../rest_api/model/TGUDFNodeDataTest.java | 94 + .../rest_api/model/TGUDFStorageTest.java | 64 + .../rest_api/model/TaskGraphActionsTest.java | 32 + .../model/TaskGraphClientNodeStatusTest.java | 57 + .../model/TaskGraphLogRunLocationTest.java | 32 + .../model/TaskGraphLogStatusTest.java | 32 + .../rest_api/model/TaskGraphLogTest.java | 194 ++ .../rest_api/model/TaskGraphLogsDataTest.java | 60 + .../model/TaskGraphNodeMetadataTest.java | 102 + .../rest_api/model/TaskGraphNodeTest.java | 128 + .../rest_api/model/TaskGraphSharingTest.java | 67 + .../cloud/rest_api/model/TaskGraphTest.java | 127 + .../rest_api/model/TaskGraphTypeTest.java | 32 + .../cloud/rest_api/model/TaskGraphsTest.java | 51 + .../model/TileDBConfigEntriesInnerTest.java | 56 + .../rest_api/model/TileDBConfigTest.java | 51 + .../rest_api/model/TokenRequestTest.java | 68 + .../cloud/rest_api/model/TokenScopeTest.java | 32 + .../cloud/rest_api/model/TokenTest.java | 84 + .../cloud/rest_api/model/UDFActionsTest.java | 32 + .../rest_api/model/UDFArrayDetailsTest.java | 76 + .../cloud/rest_api/model/UDFCopiedTest.java | 72 + .../cloud/rest_api/model/UDFCopyTest.java | 64 + .../cloud/rest_api/model/UDFFavoriteTest.java | 64 + .../rest_api/model/UDFFavoritesDataTest.java | 60 + .../cloud/rest_api/model/UDFImageTest.java | 65 + .../rest_api/model/UDFImageVersionTest.java | 97 + .../cloud/rest_api/model/UDFInfoTest.java | 108 + .../rest_api/model/UDFInfoUpdateTest.java | 132 + .../cloud/rest_api/model/UDFLanguageTest.java | 32 + .../cloud/rest_api/model/UDFSharingTest.java | 67 + .../rest_api/model/UDFSubarrayRangeTest.java | 65 + .../cloud/rest_api/model/UDFSubarrayTest.java | 60 + .../cloud/rest_api/model/UDFTypeTest.java | 32 + .../tiledb/cloud/rest_api/model/UserTest.java | 198 ++ .../cloud/rest_api/model/WriterTest.java | 73 + 510 files changed, 45590 insertions(+), 19306 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/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/api/AssetsApi.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/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 create mode 100644 src/test/java/io/tiledb/cloud/rest_api/api/ArrayApiTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/api/ArrayTasksApiTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/api/AssetsApiTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/api/FavoritesApiTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/api/FilesApiTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/api/GroupsApiTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/api/InvitationApiTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/api/NotebookApiTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/api/NotebooksApiTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/api/OrganizationApiTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/api/QueryApiTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/api/RegisteredTaskGraphsApiTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/api/SqlApiTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/api/StatsApiTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/api/TaskGraphLogsApiTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/api/TaskGraphsApiTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/api/TasksApiTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/api/UdfApiTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/api/UserApiTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/AWSAccessCredentialsTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ActivityEventTypeTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ArrayActionsTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ArrayActivityLogTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ArrayBrowserDataTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ArrayBrowserSidebarTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ArrayConsolidationRequestTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ArrayEndTimestampDataTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ArrayFavoriteTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ArrayFavoritesDataTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ArrayInfoTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ArrayInfoUpdateTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ArrayMetadataEntryTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ArrayMetadataTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ArraySampleTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ArraySchemaTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ArraySharingTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskBrowserSidebarTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskDataTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskLogTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskStatusTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskTypeTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ArrayTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ArrayTypeTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ArrayVacuumRequestTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/AssetBackingTypeTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/AssetInfoTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/AssetListResponseTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/AssetLocationsTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/AssetOwnershipLevelTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/AssetTypeTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/AttributeBufferHeaderTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/AttributeBufferSizeTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/AttributeTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/BackoffTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/DatatypeTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/DimensionCoordinateTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/DimensionTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/DimensionTileExtentTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/DomainArrayTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/DomainCheckResultTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/DomainCheckStatusTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/DomainTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/DomainVerificationStatusTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/EnumerationTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ErrorTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/FileCreateTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/FileCreatedTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/FileExportTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/FileExportedTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/FilePropertyNameTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/FileTypeTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/FileUploadedTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/FilterDataTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/FilterOptionTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/FilterPipelineTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/FilterTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/FilterTypeTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/FragmentInfoRequestTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/FragmentInfoTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/FragmentMetadataTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/GenericUDFTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/GetTiledbStats200ResponseTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/GroupActionsTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/GroupBrowserDataTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/GroupBrowserFilterDataTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/GroupChangesTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/GroupContentActivityAssetTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/GroupContentActivityResponseTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/GroupContentActivityTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/GroupContentsFilterDataTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/GroupContentsTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/GroupCreateTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/GroupEntryTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/GroupInfoTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/GroupMemberAssetTypeTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/GroupMemberTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/GroupMemberTypeTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/GroupRegisterTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/GroupSharingRequestTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/GroupSharingTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/GroupTypeMetadataKeyTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/GroupTypeTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/GroupUpdateTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/InvitationArrayShareEmailTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/InvitationDataTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/InvitationFailedRecipientsTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/InvitationGroupShareEmailTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/InvitationOrganizationJoinEmailTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/InvitationStatusTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/InvitationTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/InvitationTypeTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/LastAccessedArrayTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/LayoutTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaRequestTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaResponseTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsRequestTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsResponseTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/MLModelFavoriteTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/MLModelFavoritesDataTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/MaxBufferSizesTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/MetadataStringifiedEntryTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/MetadataStringifiedTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/MultiArrayUDFTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/NamespaceActionsTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/NonEmptyDomainTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/NotebookCopiedTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/NotebookCopyTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/NotebookFavoriteTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/NotebookFavoritesDataTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/NotebookStatusTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/OrganizationRolesTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/OrganizationTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/OrganizationUpdateTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/OrganizationUserTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/PaginationMetadataTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/PodStatusTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/PricingAggregateUsageTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/PricingCurrencyTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/PricingIntervalTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/PricingTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/PricingTypeTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/PricingUnitLabelTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/PublicShareFilterTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/QueryJsonTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/QueryRangesTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/QueryReaderTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/QueryTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/QuerystatusTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/QuerytypeTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ReadStateTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/RegisteredTaskGraphTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ResetUserPasswordRequestTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/ResultFormatTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/RetryPolicyTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/RetryStrategyTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/SQLParametersTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/SSODomainConfigResponseTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/SSODomainConfigTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/SSODomainSetupTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/SSOProviderTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/SharePaymentRequestTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/SingleFragmentInfoTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/StorageLocationTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerCurrentTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerStateTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/SubarrayRangesTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/SubarrayTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/SubscriptionTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/TGArrayNodeDataTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/TGInputNodeDataTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/TGQueryRangesTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/TGSQLNodeDataTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/TGUDFArgumentTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironmentResourcesTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironmentTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/TGUDFNodeDataTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/TGUDFStorageTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphActionsTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphClientNodeStatusTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphLogRunLocationTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphLogStatusTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphLogTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphLogsDataTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphNodeMetadataTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphNodeTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphSharingTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphTypeTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphsTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/TileDBConfigEntriesInnerTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/TileDBConfigTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/TokenRequestTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/TokenScopeTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/TokenTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/UDFActionsTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/UDFArrayDetailsTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/UDFCopiedTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/UDFCopyTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/UDFFavoriteTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/UDFFavoritesDataTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/UDFImageTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/UDFImageVersionTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/UDFInfoTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/UDFInfoUpdateTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/UDFLanguageTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/UDFSharingTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/UDFSubarrayRangeTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/UDFSubarrayTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/UDFTypeTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/UserTest.java create mode 100644 src/test/java/io/tiledb/cloud/rest_api/model/WriterTest.java diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 9d414f7..8fad433 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -1,3 +1,4 @@ +.github/workflows/maven.yml .gitignore .travis.yml api/openapi.yaml @@ -30,8 +31,13 @@ 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 @@ -45,6 +51,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 +73,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 +105,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 +127,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 +157,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 +176,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 +224,451 @@ 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/Configuration.java +src/main/java/io/tiledb/cloud/rest_api/GzipRequestInterceptor.java +src/main/java/io/tiledb/cloud/rest_api/JSON.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/ServerConfiguration.java +src/main/java/io/tiledb/cloud/rest_api/ServerVariable.java +src/main/java/io/tiledb/cloud/rest_api/StringUtil.java +src/main/java/io/tiledb/cloud/rest_api/api/ArrayApi.java +src/main/java/io/tiledb/cloud/rest_api/api/ArrayTasksApi.java +src/main/java/io/tiledb/cloud/rest_api/api/AssetsApi.java +src/main/java/io/tiledb/cloud/rest_api/api/FavoritesApi.java +src/main/java/io/tiledb/cloud/rest_api/api/FilesApi.java +src/main/java/io/tiledb/cloud/rest_api/api/GroupsApi.java +src/main/java/io/tiledb/cloud/rest_api/api/InvitationApi.java +src/main/java/io/tiledb/cloud/rest_api/api/NotebookApi.java +src/main/java/io/tiledb/cloud/rest_api/api/NotebooksApi.java +src/main/java/io/tiledb/cloud/rest_api/api/OrganizationApi.java +src/main/java/io/tiledb/cloud/rest_api/api/QueryApi.java +src/main/java/io/tiledb/cloud/rest_api/api/RegisteredTaskGraphsApi.java +src/main/java/io/tiledb/cloud/rest_api/api/SqlApi.java +src/main/java/io/tiledb/cloud/rest_api/api/StatsApi.java +src/main/java/io/tiledb/cloud/rest_api/api/TaskGraphLogsApi.java +src/main/java/io/tiledb/cloud/rest_api/api/TaskGraphsApi.java +src/main/java/io/tiledb/cloud/rest_api/api/TasksApi.java +src/main/java/io/tiledb/cloud/rest_api/api/UdfApi.java +src/main/java/io/tiledb/cloud/rest_api/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/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 +src/test/java/io/tiledb/cloud/rest_api/api/ArrayApiTest.java +src/test/java/io/tiledb/cloud/rest_api/api/ArrayTasksApiTest.java +src/test/java/io/tiledb/cloud/rest_api/api/AssetsApiTest.java +src/test/java/io/tiledb/cloud/rest_api/api/FavoritesApiTest.java +src/test/java/io/tiledb/cloud/rest_api/api/FilesApiTest.java +src/test/java/io/tiledb/cloud/rest_api/api/GroupsApiTest.java +src/test/java/io/tiledb/cloud/rest_api/api/InvitationApiTest.java +src/test/java/io/tiledb/cloud/rest_api/api/NotebookApiTest.java +src/test/java/io/tiledb/cloud/rest_api/api/NotebooksApiTest.java +src/test/java/io/tiledb/cloud/rest_api/api/OrganizationApiTest.java +src/test/java/io/tiledb/cloud/rest_api/api/QueryApiTest.java +src/test/java/io/tiledb/cloud/rest_api/api/RegisteredTaskGraphsApiTest.java +src/test/java/io/tiledb/cloud/rest_api/api/SqlApiTest.java +src/test/java/io/tiledb/cloud/rest_api/api/StatsApiTest.java +src/test/java/io/tiledb/cloud/rest_api/api/TaskGraphLogsApiTest.java +src/test/java/io/tiledb/cloud/rest_api/api/TaskGraphsApiTest.java +src/test/java/io/tiledb/cloud/rest_api/api/TasksApiTest.java +src/test/java/io/tiledb/cloud/rest_api/api/UdfApiTest.java +src/test/java/io/tiledb/cloud/rest_api/api/UserApiTest.java +src/test/java/io/tiledb/cloud/rest_api/model/AWSAccessCredentialsTest.java +src/test/java/io/tiledb/cloud/rest_api/model/ActivityEventTypeTest.java +src/test/java/io/tiledb/cloud/rest_api/model/ArrayActionsTest.java +src/test/java/io/tiledb/cloud/rest_api/model/ArrayActivityLogTest.java +src/test/java/io/tiledb/cloud/rest_api/model/ArrayBrowserDataTest.java +src/test/java/io/tiledb/cloud/rest_api/model/ArrayBrowserSidebarTest.java +src/test/java/io/tiledb/cloud/rest_api/model/ArrayConsolidationRequestTest.java +src/test/java/io/tiledb/cloud/rest_api/model/ArrayEndTimestampDataTest.java +src/test/java/io/tiledb/cloud/rest_api/model/ArrayFavoriteTest.java +src/test/java/io/tiledb/cloud/rest_api/model/ArrayFavoritesDataTest.java +src/test/java/io/tiledb/cloud/rest_api/model/ArrayInfoTest.java +src/test/java/io/tiledb/cloud/rest_api/model/ArrayInfoUpdateTest.java +src/test/java/io/tiledb/cloud/rest_api/model/ArrayMetadataEntryTest.java +src/test/java/io/tiledb/cloud/rest_api/model/ArrayMetadataTest.java +src/test/java/io/tiledb/cloud/rest_api/model/ArraySampleTest.java +src/test/java/io/tiledb/cloud/rest_api/model/ArraySchemaTest.java +src/test/java/io/tiledb/cloud/rest_api/model/ArraySharingTest.java +src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskBrowserSidebarTest.java +src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskDataTest.java +src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskLogTest.java +src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskStatusTest.java +src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskTest.java +src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskTypeTest.java +src/test/java/io/tiledb/cloud/rest_api/model/ArrayTest.java +src/test/java/io/tiledb/cloud/rest_api/model/ArrayTypeTest.java +src/test/java/io/tiledb/cloud/rest_api/model/ArrayVacuumRequestTest.java +src/test/java/io/tiledb/cloud/rest_api/model/AssetBackingTypeTest.java +src/test/java/io/tiledb/cloud/rest_api/model/AssetInfoTest.java +src/test/java/io/tiledb/cloud/rest_api/model/AssetListResponseTest.java +src/test/java/io/tiledb/cloud/rest_api/model/AssetLocationsTest.java +src/test/java/io/tiledb/cloud/rest_api/model/AssetOwnershipLevelTest.java +src/test/java/io/tiledb/cloud/rest_api/model/AssetTypeTest.java +src/test/java/io/tiledb/cloud/rest_api/model/AttributeBufferHeaderTest.java +src/test/java/io/tiledb/cloud/rest_api/model/AttributeBufferSizeTest.java +src/test/java/io/tiledb/cloud/rest_api/model/AttributeTest.java +src/test/java/io/tiledb/cloud/rest_api/model/BackoffTest.java +src/test/java/io/tiledb/cloud/rest_api/model/DatatypeTest.java +src/test/java/io/tiledb/cloud/rest_api/model/DimensionCoordinateTest.java +src/test/java/io/tiledb/cloud/rest_api/model/DimensionTest.java +src/test/java/io/tiledb/cloud/rest_api/model/DimensionTileExtentTest.java +src/test/java/io/tiledb/cloud/rest_api/model/DomainArrayTest.java +src/test/java/io/tiledb/cloud/rest_api/model/DomainCheckResultTest.java +src/test/java/io/tiledb/cloud/rest_api/model/DomainCheckStatusTest.java +src/test/java/io/tiledb/cloud/rest_api/model/DomainTest.java +src/test/java/io/tiledb/cloud/rest_api/model/DomainVerificationStatusTest.java +src/test/java/io/tiledb/cloud/rest_api/model/EnumerationTest.java +src/test/java/io/tiledb/cloud/rest_api/model/ErrorTest.java +src/test/java/io/tiledb/cloud/rest_api/model/FileCreateTest.java +src/test/java/io/tiledb/cloud/rest_api/model/FileCreatedTest.java +src/test/java/io/tiledb/cloud/rest_api/model/FileExportTest.java +src/test/java/io/tiledb/cloud/rest_api/model/FileExportedTest.java +src/test/java/io/tiledb/cloud/rest_api/model/FilePropertyNameTest.java +src/test/java/io/tiledb/cloud/rest_api/model/FileTypeTest.java +src/test/java/io/tiledb/cloud/rest_api/model/FileUploadedTest.java +src/test/java/io/tiledb/cloud/rest_api/model/FilterDataTest.java +src/test/java/io/tiledb/cloud/rest_api/model/FilterOptionTest.java +src/test/java/io/tiledb/cloud/rest_api/model/FilterPipelineTest.java +src/test/java/io/tiledb/cloud/rest_api/model/FilterTest.java +src/test/java/io/tiledb/cloud/rest_api/model/FilterTypeTest.java +src/test/java/io/tiledb/cloud/rest_api/model/FragmentInfoRequestTest.java +src/test/java/io/tiledb/cloud/rest_api/model/FragmentInfoTest.java +src/test/java/io/tiledb/cloud/rest_api/model/FragmentMetadataTest.java +src/test/java/io/tiledb/cloud/rest_api/model/GenericUDFTest.java +src/test/java/io/tiledb/cloud/rest_api/model/GetTiledbStats200ResponseTest.java +src/test/java/io/tiledb/cloud/rest_api/model/GroupActionsTest.java +src/test/java/io/tiledb/cloud/rest_api/model/GroupBrowserDataTest.java +src/test/java/io/tiledb/cloud/rest_api/model/GroupBrowserFilterDataTest.java +src/test/java/io/tiledb/cloud/rest_api/model/GroupChangesTest.java +src/test/java/io/tiledb/cloud/rest_api/model/GroupContentActivityAssetTest.java +src/test/java/io/tiledb/cloud/rest_api/model/GroupContentActivityResponseTest.java +src/test/java/io/tiledb/cloud/rest_api/model/GroupContentActivityTest.java +src/test/java/io/tiledb/cloud/rest_api/model/GroupContentsFilterDataTest.java +src/test/java/io/tiledb/cloud/rest_api/model/GroupContentsTest.java +src/test/java/io/tiledb/cloud/rest_api/model/GroupCreateTest.java +src/test/java/io/tiledb/cloud/rest_api/model/GroupEntryTest.java +src/test/java/io/tiledb/cloud/rest_api/model/GroupInfoTest.java +src/test/java/io/tiledb/cloud/rest_api/model/GroupMemberAssetTypeTest.java +src/test/java/io/tiledb/cloud/rest_api/model/GroupMemberTest.java +src/test/java/io/tiledb/cloud/rest_api/model/GroupMemberTypeTest.java +src/test/java/io/tiledb/cloud/rest_api/model/GroupRegisterTest.java +src/test/java/io/tiledb/cloud/rest_api/model/GroupSharingRequestTest.java +src/test/java/io/tiledb/cloud/rest_api/model/GroupSharingTest.java +src/test/java/io/tiledb/cloud/rest_api/model/GroupTypeMetadataKeyTest.java +src/test/java/io/tiledb/cloud/rest_api/model/GroupTypeTest.java +src/test/java/io/tiledb/cloud/rest_api/model/GroupUpdateTest.java +src/test/java/io/tiledb/cloud/rest_api/model/InvitationArrayShareEmailTest.java +src/test/java/io/tiledb/cloud/rest_api/model/InvitationDataTest.java +src/test/java/io/tiledb/cloud/rest_api/model/InvitationFailedRecipientsTest.java +src/test/java/io/tiledb/cloud/rest_api/model/InvitationGroupShareEmailTest.java +src/test/java/io/tiledb/cloud/rest_api/model/InvitationOrganizationJoinEmailTest.java +src/test/java/io/tiledb/cloud/rest_api/model/InvitationStatusTest.java +src/test/java/io/tiledb/cloud/rest_api/model/InvitationTest.java +src/test/java/io/tiledb/cloud/rest_api/model/InvitationTypeTest.java +src/test/java/io/tiledb/cloud/rest_api/model/LastAccessedArrayTest.java +src/test/java/io/tiledb/cloud/rest_api/model/LayoutTest.java +src/test/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaRequestTest.java +src/test/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaResponseTest.java +src/test/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsRequestTest.java +src/test/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsResponseTest.java +src/test/java/io/tiledb/cloud/rest_api/model/MLModelFavoriteTest.java +src/test/java/io/tiledb/cloud/rest_api/model/MLModelFavoritesDataTest.java +src/test/java/io/tiledb/cloud/rest_api/model/MaxBufferSizesTest.java +src/test/java/io/tiledb/cloud/rest_api/model/MetadataStringifiedEntryTest.java +src/test/java/io/tiledb/cloud/rest_api/model/MetadataStringifiedTest.java +src/test/java/io/tiledb/cloud/rest_api/model/MultiArrayUDFTest.java +src/test/java/io/tiledb/cloud/rest_api/model/NamespaceActionsTest.java +src/test/java/io/tiledb/cloud/rest_api/model/NonEmptyDomainTest.java +src/test/java/io/tiledb/cloud/rest_api/model/NotebookCopiedTest.java +src/test/java/io/tiledb/cloud/rest_api/model/NotebookCopyTest.java +src/test/java/io/tiledb/cloud/rest_api/model/NotebookFavoriteTest.java +src/test/java/io/tiledb/cloud/rest_api/model/NotebookFavoritesDataTest.java +src/test/java/io/tiledb/cloud/rest_api/model/NotebookStatusTest.java +src/test/java/io/tiledb/cloud/rest_api/model/OrganizationRolesTest.java +src/test/java/io/tiledb/cloud/rest_api/model/OrganizationTest.java +src/test/java/io/tiledb/cloud/rest_api/model/OrganizationUpdateTest.java +src/test/java/io/tiledb/cloud/rest_api/model/OrganizationUserTest.java +src/test/java/io/tiledb/cloud/rest_api/model/PaginationMetadataTest.java +src/test/java/io/tiledb/cloud/rest_api/model/PodStatusTest.java +src/test/java/io/tiledb/cloud/rest_api/model/PricingAggregateUsageTest.java +src/test/java/io/tiledb/cloud/rest_api/model/PricingCurrencyTest.java +src/test/java/io/tiledb/cloud/rest_api/model/PricingIntervalTest.java +src/test/java/io/tiledb/cloud/rest_api/model/PricingTest.java +src/test/java/io/tiledb/cloud/rest_api/model/PricingTypeTest.java +src/test/java/io/tiledb/cloud/rest_api/model/PricingUnitLabelTest.java +src/test/java/io/tiledb/cloud/rest_api/model/PublicShareFilterTest.java +src/test/java/io/tiledb/cloud/rest_api/model/QueryJsonTest.java +src/test/java/io/tiledb/cloud/rest_api/model/QueryRangesTest.java +src/test/java/io/tiledb/cloud/rest_api/model/QueryReaderTest.java +src/test/java/io/tiledb/cloud/rest_api/model/QueryTest.java +src/test/java/io/tiledb/cloud/rest_api/model/QuerystatusTest.java +src/test/java/io/tiledb/cloud/rest_api/model/QuerytypeTest.java +src/test/java/io/tiledb/cloud/rest_api/model/ReadStateTest.java +src/test/java/io/tiledb/cloud/rest_api/model/RegisteredTaskGraphTest.java +src/test/java/io/tiledb/cloud/rest_api/model/ResetUserPasswordRequestTest.java +src/test/java/io/tiledb/cloud/rest_api/model/ResultFormatTest.java +src/test/java/io/tiledb/cloud/rest_api/model/RetryPolicyTest.java +src/test/java/io/tiledb/cloud/rest_api/model/RetryStrategyTest.java +src/test/java/io/tiledb/cloud/rest_api/model/SQLParametersTest.java +src/test/java/io/tiledb/cloud/rest_api/model/SSODomainConfigResponseTest.java +src/test/java/io/tiledb/cloud/rest_api/model/SSODomainConfigTest.java +src/test/java/io/tiledb/cloud/rest_api/model/SSODomainSetupTest.java +src/test/java/io/tiledb/cloud/rest_api/model/SSOProviderTest.java +src/test/java/io/tiledb/cloud/rest_api/model/SharePaymentRequestTest.java +src/test/java/io/tiledb/cloud/rest_api/model/SingleFragmentInfoTest.java +src/test/java/io/tiledb/cloud/rest_api/model/StorageLocationTest.java +src/test/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerCurrentTest.java +src/test/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerStateTest.java +src/test/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerTest.java +src/test/java/io/tiledb/cloud/rest_api/model/SubarrayRangesTest.java +src/test/java/io/tiledb/cloud/rest_api/model/SubarrayTest.java +src/test/java/io/tiledb/cloud/rest_api/model/SubscriptionTest.java +src/test/java/io/tiledb/cloud/rest_api/model/TGArrayNodeDataTest.java +src/test/java/io/tiledb/cloud/rest_api/model/TGInputNodeDataTest.java +src/test/java/io/tiledb/cloud/rest_api/model/TGQueryRangesTest.java +src/test/java/io/tiledb/cloud/rest_api/model/TGSQLNodeDataTest.java +src/test/java/io/tiledb/cloud/rest_api/model/TGUDFArgumentTest.java +src/test/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironmentResourcesTest.java +src/test/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironmentTest.java +src/test/java/io/tiledb/cloud/rest_api/model/TGUDFNodeDataTest.java +src/test/java/io/tiledb/cloud/rest_api/model/TGUDFStorageTest.java +src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphActionsTest.java +src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphClientNodeStatusTest.java +src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphLogRunLocationTest.java +src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphLogStatusTest.java +src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphLogTest.java +src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphLogsDataTest.java +src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphNodeMetadataTest.java +src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphNodeTest.java +src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphSharingTest.java +src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphTest.java +src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphTypeTest.java +src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphsTest.java +src/test/java/io/tiledb/cloud/rest_api/model/TileDBConfigEntriesInnerTest.java +src/test/java/io/tiledb/cloud/rest_api/model/TileDBConfigTest.java +src/test/java/io/tiledb/cloud/rest_api/model/TokenRequestTest.java +src/test/java/io/tiledb/cloud/rest_api/model/TokenScopeTest.java +src/test/java/io/tiledb/cloud/rest_api/model/TokenTest.java +src/test/java/io/tiledb/cloud/rest_api/model/UDFActionsTest.java +src/test/java/io/tiledb/cloud/rest_api/model/UDFArrayDetailsTest.java +src/test/java/io/tiledb/cloud/rest_api/model/UDFCopiedTest.java +src/test/java/io/tiledb/cloud/rest_api/model/UDFCopyTest.java +src/test/java/io/tiledb/cloud/rest_api/model/UDFFavoriteTest.java +src/test/java/io/tiledb/cloud/rest_api/model/UDFFavoritesDataTest.java +src/test/java/io/tiledb/cloud/rest_api/model/UDFImageTest.java +src/test/java/io/tiledb/cloud/rest_api/model/UDFImageVersionTest.java +src/test/java/io/tiledb/cloud/rest_api/model/UDFInfoTest.java +src/test/java/io/tiledb/cloud/rest_api/model/UDFInfoUpdateTest.java +src/test/java/io/tiledb/cloud/rest_api/model/UDFLanguageTest.java +src/test/java/io/tiledb/cloud/rest_api/model/UDFSharingTest.java +src/test/java/io/tiledb/cloud/rest_api/model/UDFSubarrayRangeTest.java +src/test/java/io/tiledb/cloud/rest_api/model/UDFSubarrayTest.java +src/test/java/io/tiledb/cloud/rest_api/model/UDFTypeTest.java +src/test/java/io/tiledb/cloud/rest_api/model/UserTest.java +src/test/java/io/tiledb/cloud/rest_api/model/WriterTest.java diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index 358e78e..1985849 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -6.1.0 \ No newline at end of file +7.7.0 diff --git a/build.gradle b/build.gradle index e287877..5982050 100644 --- a/build.gradle +++ b/build.gradle @@ -16,7 +16,7 @@ plugins { id 'java' id 'scala' id 'java-library' - id "com.github.johnrengelman.shadow" version "7.1.2" + id 'com.github.johnrengelman.shadow' version '7.1.2' id 'io.codearte.nexus-staging' version '0.30.0' id 'signing' } @@ -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() 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..dad6d50 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 | | @@ -38,7 +40,7 @@ All URIs are relative to */v1* | [**vacuumArray**](ArrayApi.md#vacuumArray) | **POST** /arrays/{namespace}/{array}/vacuum | | - + # **arrayActivityLog** > List<ArrayActivityLog> arrayActivityLog(namespace, array, start, end, eventTypes, taskId, hasTaskId) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -113,7 +114,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -127,64 +128,64 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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 @@ -210,7 +212,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -224,7 +226,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **arraysBrowserOwnedSidebarGet** > ArrayBrowserSidebar arraysBrowserOwnedSidebarGet(fileType, excludeFileType, fileProperty) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -291,7 +292,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -305,64 +306,64 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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 @@ -388,7 +390,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -402,7 +404,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **arraysBrowserPublicSidebarGet** > ArrayBrowserSidebar arraysBrowserPublicSidebarGet(fileType, excludeFileType, fileProperty) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -469,7 +470,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -483,65 +484,65 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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 @@ -568,7 +570,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -582,7 +584,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **arraysBrowserSharedSidebarGet** > ArrayBrowserSidebar arraysBrowserSharedSidebarGet(fileType, excludeFileType, fileProperty, sharedTo) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -651,7 +652,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -665,7 +666,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **arraysNamespaceArrayEndTimestampsGet** > ArrayEndTimestampData arraysNamespaceArrayEndTimestampsGet(namespace, array, page, perPage) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -734,7 +734,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -748,7 +748,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **consolidateArray** > consolidateArray(namespace, array, consolidateRequest) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -814,7 +813,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -828,7 +827,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **createArray** > createArray(namespace, array, contentType, arraySchema, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -898,7 +896,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -912,7 +910,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **deleteArray** > deleteArray(namespace, array, contentType) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -978,7 +975,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -992,7 +989,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **deregisterArray** > deregisterArray(namespace, array) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -1056,7 +1052,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1070,7 +1066,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **fragmentInfo** > FragmentInfo fragmentInfo(namespace, array, contentType, fragmentInfoRequest) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -1139,7 +1134,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1152,7 +1147,7 @@ public class Example { | **200** | fragment info | - | | **0** | error response | - | - + # **getActivityLogById** > ArrayActivityLog getActivityLogById(namespace, array, id) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -1219,7 +1213,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1233,7 +1227,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getAllArrayMetadata** > List<ArrayInfo> getAllArrayMetadata(publicShare) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -1296,7 +1289,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1310,7 +1303,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getArray** > ArraySchema getArray(namespace, array, contentType) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -1377,7 +1369,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1391,7 +1383,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getArrayMaxBufferSizes** > MaxBufferSizes getArrayMaxBufferSizes(namespace, array, subarray, contentType, xPayer) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -1462,7 +1453,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1476,57 +1467,56 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getArrayMetaDataJson** -> Object getArrayMetaDataJson(namespace, array, length, endTimestamp) +> Map<String, Object> getArrayMetaDataJson(namespace, array, length, endTimestamp) 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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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 { + Map 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(); } + } } ``` @@ -1541,11 +1531,11 @@ public class Example { ### Return type -**Object** +**Map<String, Object>** ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1559,7 +1549,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getArrayMetadata** > ArrayInfo getArrayMetadata(namespace, array) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -1624,7 +1613,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1638,7 +1627,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getArrayMetadataCapnp** > ArrayMetadata getArrayMetadataCapnp(namespace, array) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -1703,7 +1691,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1717,7 +1705,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getArrayNonEmptyDomain** > NonEmptyDomain getArrayNonEmptyDomain(namespace, array, contentType, xPayer) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -1786,7 +1773,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1800,55 +1787,54 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getArrayNonEmptyDomainJson** -> Object getArrayNonEmptyDomainJson(namespace, array) +> Map<String, Object> getArrayNonEmptyDomainJson(namespace, array) 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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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 { + Map 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(); } + } } ``` @@ -1861,11 +1847,11 @@ public class Example { ### Return type -**Object** +**Map<String, Object>** ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1879,7 +1865,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getArraySampleData** > ArraySample getArraySampleData(namespace, array, samples) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -1946,7 +1931,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1960,7 +1945,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getArraySharingPolicies** > List<ArraySharing> getArraySharingPolicies(namespace, array) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -2025,7 +2009,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -2040,54 +2024,54 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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 @@ -2103,7 +2088,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -2117,7 +2102,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getFragmentEndTimestamp** > Integer getFragmentEndTimestamp(namespace, array, endTimestamp) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -2184,7 +2168,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -2198,51 +2182,50 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getLastAccessedArrays** > List<LastAccessedArray> getLastAccessedArrays() ### 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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -2255,7 +2238,7 @@ This endpoint does not need any parameter. ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -2269,7 +2252,169 @@ 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.api.ArrayApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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 + +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) + +### 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.api.ArrayApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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 + +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) + +### 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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -2336,7 +2480,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -2350,7 +2494,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **shareArray** > shareArray(namespace, array, arraySharing) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -2416,7 +2559,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -2431,7 +2574,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **updateArrayMetadata** > updateArrayMetadata(namespace, array, arrayMetadata) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -2497,7 +2639,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -2511,7 +2653,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **updateArrayMetadataCapnp** > updateArrayMetadataCapnp(namespace, array, arrayMetadataEntries) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -2577,7 +2718,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -2591,7 +2732,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **vacuumArray** > vacuumArray(namespace, array, vaccumRequest) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -2657,7 +2797,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers 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..c2d225f 100644 --- a/docs/ArrayTasksApi.md +++ b/docs/ArrayTasksApi.md @@ -7,53 +7,52 @@ All URIs are relative to */v1* | [**getArrayTasksSidebar**](ArrayTasksApi.md#getArrayTasksSidebar) | **GET** /tasks/sidebar | | - + # **getArrayTasksSidebar** > ArrayTaskBrowserSidebar getArrayTasksSidebar(start, end) ### 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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -70,7 +69,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers 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..f7ddd98 --- /dev/null +++ b/docs/AssetsApi.md @@ -0,0 +1,188 @@ +# AssetsApi + +All URIs are relative to */v1* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**listAssets**](AssetsApi.md#listAssets) | **GET** /assets/{namespace} | | +| [**listPublicAssets**](AssetsApi.md#listPublicAssets) | **GET** /public_assets | | + + + +# **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.api.AssetsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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 + +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) + +### 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.api.AssetsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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 + +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) + +### 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/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..95fbd64 100644 --- a/docs/FavoritesApi.md +++ b/docs/FavoritesApi.md @@ -26,7 +26,7 @@ All URIs are relative to */v1* | [**listUDFFavoritesUUIDs**](FavoritesApi.md#listUDFFavoritesUUIDs) | **GET** /udfs/favorites/uuids | | - + # **addArrayFavorite** > addArrayFavorite(namespace, name) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -90,7 +89,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -104,7 +103,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **addMLModelFavorite** > addMLModelFavorite(namespace, name) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -168,7 +166,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -182,7 +180,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **addNotebookFavorite** > addNotebookFavorite(namespace, name) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -246,7 +243,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -260,7 +257,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **addUDFFavorite** > addUDFFavorite(namespace, name) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -324,7 +320,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -338,7 +334,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **deleteArrayFavorite** > deleteArrayFavorite(namespace, name) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -402,7 +397,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -416,7 +411,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **deleteMLModelFavorite** > deleteMLModelFavorite(namespace, name) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -480,7 +474,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -494,7 +488,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **deleteNotebookFavorite** > deleteNotebookFavorite(namespace, name) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -558,7 +551,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -572,7 +565,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **deleteUDFFavorite** > deleteUDFFavorite(namespace, name) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -636,7 +628,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -650,7 +642,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getArrayFavorite** > ArrayFavorite getArrayFavorite(namespace, name) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -715,7 +706,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -729,7 +720,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getMLModelFavorite** > MLModelFavorite getMLModelFavorite(namespace, name) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -794,7 +784,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -808,7 +798,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getNotebookFavorite** > NotebookFavorite getNotebookFavorite(namespace, name) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -873,7 +862,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -887,7 +876,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getUDFFavorite** > UDFFavorite getUDFFavorite(namespace, name) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -952,7 +940,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -966,7 +954,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **listArrayFavorites** > ArrayFavoritesData listArrayFavorites(page, perPage) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -1031,7 +1018,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1045,7 +1032,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **listArrayFavoritesUUIDs** > List<ArrayFavorite> listArrayFavoritesUUIDs() @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -1104,7 +1090,7 @@ This endpoint does not need any parameter. ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1118,7 +1104,7 @@ This endpoint does not need any parameter. | **502** | Bad Gateway | - | | **0** | error response | - | - + # **listMLModelFavorites** > MLModelFavoritesData listMLModelFavorites(page, perPage) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -1183,7 +1168,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1197,7 +1182,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **listMLModelFavoritesUUIDs** > List<MLModelFavorite> listMLModelFavoritesUUIDs() @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -1256,7 +1240,7 @@ This endpoint does not need any parameter. ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1270,7 +1254,7 @@ This endpoint does not need any parameter. | **502** | Bad Gateway | - | | **0** | error response | - | - + # **listNotebookFavorites** > NotebookFavoritesData listNotebookFavorites(isDashboard, page, perPage) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -1337,7 +1320,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1351,7 +1334,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **listNotebookFavoritesUUIDs** > List<NotebookFavorite> listNotebookFavoritesUUIDs() @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -1410,7 +1392,7 @@ This endpoint does not need any parameter. ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1424,7 +1406,7 @@ This endpoint does not need any parameter. | **502** | Bad Gateway | - | | **0** | error response | - | - + # **listUDFFavorites** > UDFFavoritesData listUDFFavorites(page, perPage) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -1489,7 +1470,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1503,7 +1484,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **listUDFFavoritesUUIDs** > List<UDFFavorite> listUDFFavoritesUUIDs() @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -1562,7 +1542,7 @@ This endpoint does not need any parameter. ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers diff --git a/docs/FilesApi.md b/docs/FilesApi.md index f81ee50..c2e9765 100644 --- a/docs/FilesApi.md +++ b/docs/FilesApi.md @@ -9,7 +9,7 @@ All URIs are relative to */v1* | [**handleUploadFile**](FilesApi.md#handleUploadFile) | **POST** /files/{namespace}/upload | | - + # **handleCreateFile** > FileCreated handleCreateFile(namespace, fileCreate, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -76,7 +75,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -90,7 +89,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **handleExportFile** > FileExported handleExportFile(namespace, _file, fileExport) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -157,7 +155,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -171,7 +169,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **handleUploadFile** > FileUploaded handleUploadFile(namespace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -242,7 +239,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers 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..5e2a015 100644 --- a/docs/GroupsApi.md +++ b/docs/GroupsApi.md @@ -23,7 +23,7 @@ All URIs are relative to */v1* | [**updateGroup**](GroupsApi.md#updateGroup) | **PATCH** /groups/{group_namespace}/{group_name} | | - + # **changeGroupContents** > changeGroupContents(groupNamespace, groupName, groupChanges) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -89,7 +88,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -103,7 +102,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **createGroup** > createGroup(namespace, groupCreate) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -167,7 +165,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -181,7 +179,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **deleteGroup** > deleteGroup(groupNamespace, groupName) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -245,7 +242,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -259,7 +256,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getGroup** > GroupInfo getGroup(groupNamespace, groupName) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -324,7 +320,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -338,57 +334,56 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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,11 +398,11 @@ public class Example { ### Return type -[**GroupActivityResponse**](GroupActivityResponse.md) +[**GroupContentActivityResponse**](GroupContentActivityResponse.md) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -421,7 +416,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getGroupContents** > GroupContents getGroupContents(groupNamespace, groupName, page, perPage, namespace, search, orderby, tag, excludeTag, memberType, excludeMemberType) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -504,7 +498,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -518,7 +512,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getGroupSharingPolicies** > List<GroupSharing> getGroupSharingPolicies(groupNamespace, groupName) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -583,7 +576,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -598,7 +591,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **groupsBrowserOwnedFiltersGet** > GroupBrowserFilterData groupsBrowserOwnedFiltersGet(namespace) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -661,7 +653,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -675,7 +667,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **groupsBrowserPublicFiltersGet** > GroupBrowserFilterData groupsBrowserPublicFiltersGet() @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -734,7 +725,7 @@ This endpoint does not need any parameter. ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -748,7 +739,7 @@ This endpoint does not need any parameter. | **502** | Bad Gateway | - | | **0** | error response | - | - + # **groupsBrowserSharedFiltersGet** > GroupBrowserFilterData groupsBrowserSharedFiltersGet(namespace) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -811,7 +801,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -825,7 +815,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **groupsGroupNamespaceGroupNameContentsFiltersGet** > GroupContentsFilterData groupsGroupNamespaceGroupNameContentsFiltersGet(groupNamespace, groupName) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -890,7 +879,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -904,64 +893,64 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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 @@ -987,7 +977,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1001,64 +991,64 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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 @@ -1084,7 +1075,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1098,65 +1089,65 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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 @@ -1183,7 +1175,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1197,7 +1189,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **registerGroup** > registerGroup(namespace, array, groupRegister) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -1263,7 +1254,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1277,7 +1268,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **shareGroup** > shareGroup(groupNamespace, groupName, groupSharingRequest) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -1343,7 +1333,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1358,7 +1348,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **updateGroup** > updateGroup(groupNamespace, groupName, groupUpdate) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -1424,7 +1413,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers diff --git a/docs/InvitationApi.md b/docs/InvitationApi.md index d575b9a..0e605d0 100644 --- a/docs/InvitationApi.md +++ b/docs/InvitationApi.md @@ -8,13 +8,15 @@ 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} | | - + # **acceptInvitation** > acceptInvitation(invitation) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -76,7 +77,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -91,7 +92,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **cancelJoinOrganization** > cancelJoinOrganization(invitation, organization) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -155,7 +155,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -170,7 +170,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **cancelShareArrayByInvite** > cancelShareArrayByInvite(namespace, invitation, array) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -236,7 +235,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -251,7 +250,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **cancelShareGroupByInvite** > cancelShareGroupByInvite(namespace, invitation, groupName) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -317,7 +315,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -332,7 +330,84 @@ 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.api.InvitationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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 + +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) + +### 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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -413,7 +487,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -427,7 +501,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **joinOrganization** > joinOrganization(organization, emailInvite) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -491,7 +564,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -507,7 +580,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **shareArrayByInvite** > shareArrayByInvite(namespace, array, emailInvite) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -573,7 +645,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -589,7 +661,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **shareGroupByInvite** > shareGroupByInvite(namespace, group, emailInvite) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -655,7 +726,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -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.api.InvitationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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 + +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) + +### 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..6c4a51f 100644 --- a/docs/NotebookApi.md +++ b/docs/NotebookApi.md @@ -11,7 +11,7 @@ All URIs are relative to */v1* | [**updateNotebookName**](NotebookApi.md#updateNotebookName) | **PATCH** /notebooks/{namespace}/{array}/rename | | - + # **getNotebookServerStatus** > NotebookStatus getNotebookServerStatus(namespace) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -74,7 +73,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -85,13 +84,12 @@ 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 | - | | **0** | error response | - | - + # **handleCopyNotebook** > NotebookCopied handleCopyNotebook(namespace, array, notebookCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -162,7 +159,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -176,7 +173,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **handleUploadNotebook** > FileUploaded handleUploadNotebook(namespace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -247,7 +243,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -261,7 +257,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **shutdownNotebookServer** > shutdownNotebookServer(namespace) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -323,7 +318,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -338,7 +333,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **updateNotebookName** > updateNotebookName(namespace, array, notebookMetadata) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -404,7 +398,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers 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..0432197 100644 --- a/docs/NotebooksApi.md +++ b/docs/NotebooksApi.md @@ -8,7 +8,7 @@ All URIs are relative to */v1* | [**notebooksNamespaceArrayPrunePost**](NotebooksApi.md#notebooksNamespaceArrayPrunePost) | **POST** /notebooks/{namespace}/{array}/prune | | - + # **notebooksNamespaceArrayEndTimestampsGet** > ArrayEndTimestampData notebooksNamespaceArrayEndTimestampsGet(namespace, array, page, perPage) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -77,7 +76,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -91,7 +90,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **notebooksNamespaceArrayPrunePost** > notebooksNamespaceArrayPrunePost(namespace, array, keepVersions) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -157,7 +155,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers 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..e257b59 100644 --- a/docs/OrganizationApi.md +++ b/docs/OrganizationApi.md @@ -26,7 +26,7 @@ All URIs are relative to */v1* | [**updateUserInOrganization**](OrganizationApi.md#updateUserInOrganization) | **PATCH** /organizations/{organization}/{username} | | - + # **addAWSAccessCredentials** > addAWSAccessCredentials(namespace, awsAccessCredentials) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -90,7 +89,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -104,7 +103,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **addUserToOrganization** > addUserToOrganization(organization, user) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -168,7 +166,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -182,7 +180,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **checkAWSAccessCredentials** > List<AWSAccessCredentials> checkAWSAccessCredentials(namespace) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -245,7 +242,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -259,7 +256,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **checkAWSAccessCredentialsByName** > AWSAccessCredentials checkAWSAccessCredentialsByName(namespace, name) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -324,7 +320,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -338,7 +334,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **checkSSODomain** > DomainCheckResult checkSSODomain(organization, uuid) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -403,7 +398,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -416,7 +411,7 @@ public class Example { | **200** | The check executed. Detailed results are available in the response. | - | | **0** | error response | - | - + # **createOrganization** > createOrganization(organization) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -478,7 +472,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -492,7 +486,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **createSSODomain** > SSODomainConfig createSSODomain(organization, config) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -557,7 +550,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -570,7 +563,7 @@ public class Example { | **200** | Claim created successfully. | - | | **0** | error response | - | - + # **deleteAWSAccessCredentials** > deleteAWSAccessCredentials(namespace, name) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -634,7 +626,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -648,7 +640,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **deleteOrganization** > deleteOrganization(organization) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -710,7 +701,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -724,7 +715,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **deleteSSODomain** > deleteSSODomain(organization, uuid) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -788,7 +778,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -801,7 +791,7 @@ null (empty response body) | **204** | Deletion successful. | - | | **0** | error response | - | - + # **deleteUserFromOrganization** > deleteUserFromOrganization(organization, username) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -865,7 +854,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -879,7 +868,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getAllOrganizations** > List<Organization> getAllOrganizations() @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -938,7 +926,7 @@ This endpoint does not need any parameter. ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -954,7 +942,7 @@ This endpoint does not need any parameter. | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getOrganization** > Organization getOrganization(organization) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -1017,7 +1004,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1032,7 +1019,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getOrganizationUser** > OrganizationUser getOrganizationUser(organization, username) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -1097,7 +1083,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1112,7 +1098,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getSSODomain** > SSODomainConfig getSSODomain(organization, uuid) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -1177,7 +1162,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1190,7 +1175,7 @@ public class Example { | **200** | The details about this domain connection. | - | | **0** | error response | - | - + # **getSSODomains** > SSODomainConfigResponse getSSODomains(organization) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -1253,7 +1237,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1266,7 +1250,7 @@ public class Example { | **200** | The SSO domains associated with the org. | - | | **0** | error response | - | - + # **updateAWSAccessCredentials** > updateAWSAccessCredentials(namespace, name, awsAccessCredentials) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -1332,7 +1315,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1346,7 +1329,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **updateOrganization** > updateOrganization(organization, organizationDetails) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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 @@ -1410,7 +1392,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1424,7 +1406,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **updateSSODomain** > SSODomainConfig updateSSODomain(organization, uuid, config) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -1491,7 +1472,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1504,7 +1485,7 @@ public class Example { | **200** | The updated details about the SSO connection. | - | | **0** | error response | - | - + # **updateUserInOrganization** > updateUserInOrganization(organization, username, user) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -1570,7 +1550,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers 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..226e72d 100644 --- a/docs/QueryApi.md +++ b/docs/QueryApi.md @@ -11,7 +11,7 @@ All URIs are relative to */v1* | [**submitQueryJson**](QueryApi.md#submitQueryJson) | **POST** /arrays/{namespace}/{array}/query/submit_query_json | | - + # **finalizeQuery** > Query finalizeQuery(namespace, array, type, contentType, query, xPayer, openAt) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -86,7 +85,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -101,7 +100,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getEstResultSizes** > Query getEstResultSizes(namespace, array, type, contentType, query, xPayer, openAt) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -176,7 +174,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -191,7 +189,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getFile** > File getFile(namespace, array, contentType, xPayer) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -260,7 +257,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -274,7 +271,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **submitQuery** > Query submitQuery(namespace, array, type, contentType, query, xPayer, openAt) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -349,7 +345,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -364,7 +360,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **submitQueryJson** > Object submitQueryJson(namespace, array, contentType, queryJson, xPayer) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -435,7 +430,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers diff --git a/docs/RegisteredTaskGraphsApi.md b/docs/RegisteredTaskGraphsApi.md index e0a5e49..dbbafb9 100644 --- a/docs/RegisteredTaskGraphsApi.md +++ b/docs/RegisteredTaskGraphsApi.md @@ -12,7 +12,7 @@ All URIs are relative to */v1* | [**updateRegisteredTaskGraph**](RegisteredTaskGraphsApi.md#updateRegisteredTaskGraph) | **PATCH** /taskgraphs/{namespace}/registered/{name} | | - + # **deleteRegisteredTaskGraph** > deleteRegisteredTaskGraph(namespace, name) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -76,7 +75,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -90,7 +89,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getRegisteredTaskGraph** > RegisteredTaskGraph getRegisteredTaskGraph(namespace, name) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -155,7 +153,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -169,7 +167,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getRegisteredTaskGraphSharingPolicies** > List<TaskGraphSharing> getRegisteredTaskGraphSharingPolicies(namespace, name) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -234,7 +231,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -249,7 +246,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **registerRegisteredTaskGraph** > registerRegisteredTaskGraph(namespace, name, graph) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -315,7 +311,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -329,7 +325,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **shareRegisteredTaskGraph** > shareRegisteredTaskGraph(namespace, name, taskGraphSharing) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -395,7 +390,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -410,7 +405,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **updateRegisteredTaskGraph** > updateRegisteredTaskGraph(namespace, name, graph) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -476,7 +470,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers diff --git a/docs/RetryPolicy.md b/docs/RetryPolicy.md index c202480..d41a45a 100644 --- a/docs/RetryPolicy.md +++ b/docs/RetryPolicy.md @@ -7,11 +7,11 @@ * `ALWAYS` (value: `"Always"`) -* `ONFAILURE` (value: `"OnFailure"`) +* `ON_FAILURE` (value: `"OnFailure"`) -* `ONERROR` (value: `"OnError"`) +* `ON_ERROR` (value: `"OnError"`) -* `ONTRANSIENTERROR` (value: `"OnTransientError"`) +* `ON_TRANSIENT_ERROR` (value: `"OnTransientError"`) 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..0f8feeb 100644 --- a/docs/SqlApi.md +++ b/docs/SqlApi.md @@ -7,56 +7,55 @@ All URIs are relative to */v1* | [**runSQL**](SqlApi.md#runSQL) | **POST** /sql/{namespace} | | - + # **runSQL** -> List<Object> runSQL(namespace, sql, acceptEncoding) +> List<Map<String, Object>> runSQL(namespace, sql, acceptEncoding) 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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -70,11 +69,11 @@ public class Example { ### Return type -**List<Object>** +[**List<Map<String, Object>>**](Map.md) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers diff --git a/docs/StatsApi.md b/docs/StatsApi.md index 6173796..829caeb 100644 --- a/docs/StatsApi.md +++ b/docs/StatsApi.md @@ -7,7 +7,7 @@ All URIs are relative to */v1* | [**getTiledbStats**](StatsApi.md#getTiledbStats) | **GET** /.stats | | - + # **getTiledbStats** > GetTiledbStats200Response getTiledbStats() @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -66,7 +65,7 @@ This endpoint does not need any parameter. ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers diff --git a/docs/TGUDFEnvironment.md b/docs/TGUDFEnvironment.md index 3556c33..0d4ed3e 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] | +|**paths** | **List<Object>** | Mapping for storage paths to mount | [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..0bf99ea --- /dev/null +++ b/docs/TGUDFStorage.md @@ -0,0 +1,16 @@ + + +# TGUDFStorage + +Storage mount details + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**path** | **String** | mount path | [optional] | +|**size** | **Integer** | storage size in bytes | [optional] | +|**storageClass** | **String** | storage class | [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..de630c8 100644 --- a/docs/TaskGraphLog.md +++ b/docs/TaskGraphLog.md @@ -24,6 +24,8 @@ 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] | diff --git a/docs/TaskGraphLogsApi.md b/docs/TaskGraphLogsApi.md index 7b6f05e..b32e444 100644 --- a/docs/TaskGraphLogsApi.md +++ b/docs/TaskGraphLogsApi.md @@ -15,7 +15,7 @@ All URIs are relative to */v1* | [**updateTaskGraphLog**](TaskGraphLogsApi.md#updateTaskGraphLog) | **PATCH** /taskgraphs/{namespace}/logs/{id} | | - + # **createTaskGraphLog** > TaskGraphLog createTaskGraphLog(namespace, log) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -80,7 +79,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -94,7 +93,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getTaskGraphLog** > TaskGraphLog getTaskGraphLog(namespace, id) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -159,7 +157,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -173,60 +171,60 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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] | @@ -248,7 +247,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -262,53 +261,52 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **reportClientNode** > reportClientNode(namespace, id, report) ### 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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -326,7 +324,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -340,7 +338,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **resubmitTaskGraphExecution** > TaskGraphLog resubmitTaskGraphExecution(namespace, id) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -405,7 +402,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -419,7 +416,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **retryTaskGraphExecution** > TaskGraphLog retryTaskGraphExecution(namespace, id) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -484,7 +480,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -498,55 +494,53 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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,11 +553,11 @@ public class Example { ### Return type -[**TaskGraphLog**](TaskGraphLog.md) +null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -573,11 +567,11 @@ 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) @@ -586,46 +580,45 @@ public class Example { 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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -642,7 +635,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -656,7 +649,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **updateTaskGraphLog** > updateTaskGraphLog(namespace, id, log) @@ -665,46 +658,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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -722,7 +714,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers diff --git a/docs/TaskGraphsApi.md b/docs/TaskGraphsApi.md index ef2baa4..cc5f736 100644 --- a/docs/TaskGraphsApi.md +++ b/docs/TaskGraphsApi.md @@ -11,7 +11,7 @@ All URIs are relative to */v1* | [**updateTaskGraph**](TaskGraphsApi.md#updateTaskGraph) | **PATCH** /taskgraphs/{namespace}/graphs/{id} | | - + # **createTaskGraph** > TaskGraph createTaskGraph(namespace, graph) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -76,7 +75,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -90,7 +89,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getTaskGraph** > TaskGraph getTaskGraph(namespace, id) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -155,7 +153,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -169,7 +167,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **listTaskGraphs** > TaskGraphs listTaskGraphs(namespace) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -232,7 +229,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -246,7 +243,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **submitTaskGraph** > TaskGraphLog submitTaskGraph(namespace, id) @@ -255,46 +252,45 @@ public class Example { 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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -311,7 +307,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -325,7 +321,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **updateTaskGraph** > updateTaskGraph(namespace, id, graph) @@ -334,46 +330,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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -391,7 +386,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers diff --git a/docs/TasksApi.md b/docs/TasksApi.md index 57c93ad..61e4e3a 100644 --- a/docs/TasksApi.md +++ b/docs/TasksApi.md @@ -10,56 +10,55 @@ All URIs are relative to */v1* | [**tasksGet**](TasksApi.md#tasksGet) | **GET** /tasks | | - + # **runSQL** -> List<Object> runSQL(namespace, sql, acceptEncoding) +> List<Map<String, Object>> runSQL(namespace, sql, acceptEncoding) 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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -73,11 +72,11 @@ public class Example { ### Return type -**List<Object>** +[**List<Map<String, Object>>**](Map.md) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -92,7 +91,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **taskIdGet** > ArrayTask taskIdGet(id) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -155,7 +153,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -169,7 +167,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **taskIdResultGet** > String taskIdResultGet(id, acceptEncoding) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -234,7 +231,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -250,7 +247,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **tasksGet** > ArrayTaskData tasksGet(namespace, createdBy, array, start, end, page, perPage, type, excludeType, fileType, excludeFileType, status, search, orderby) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -339,7 +335,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers diff --git a/docs/UdfApi.md b/docs/UdfApi.md index 8abf545..88929df 100644 --- a/docs/UdfApi.md +++ b/docs/UdfApi.md @@ -17,7 +17,7 @@ All URIs are relative to */v1* | [**updateUDFInfo**](UdfApi.md#updateUDFInfo) | **PATCH** /udf/{namespace}/{name} | | - + # **deleteUDFInfo** > deleteUDFInfo(namespace, name) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -81,7 +80,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -95,7 +94,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getUDFInfo** > UDFInfo getUDFInfo(namespace, name) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -160,7 +158,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -175,7 +173,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getUDFInfoSharingPolicies** > List<UDFSharing> getUDFInfoSharingPolicies(namespace, name) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -240,7 +237,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -255,7 +252,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **handleCopyUDF** > UDFCopied handleCopyUDF(namespace, name, udFCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -326,7 +322,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -340,7 +336,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **registerUDFInfo** > registerUDFInfo(namespace, name, udf) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -406,7 +401,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -420,7 +415,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **shareUDFInfo** > shareUDFInfo(namespace, name, udfSharing) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -486,7 +480,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -501,7 +495,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **submitGenericUDF** > File submitGenericUDF(namespace, udf, acceptEncoding) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -568,7 +561,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -582,7 +575,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
| - + # **submitMultiArrayUDF** > File submitMultiArrayUDF(namespace, udf, acceptEncoding) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -649,7 +641,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -663,7 +655,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
| - + # **submitUDF** > File submitUDF(namespace, array, udf, xPayer, acceptEncoding, v2) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -736,7 +727,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -750,7 +741,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
| - + # **udfNamespaceArrayEndTimestampsGet** > ArrayEndTimestampData udfNamespaceArrayEndTimestampsGet(namespace, array, page, perPage) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -819,7 +809,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -833,7 +823,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **updateUDFInfo** > updateUDFInfo(namespace, name, udf) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -899,7 +888,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers 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..35b9dba 100644 --- a/docs/UserApi.md +++ b/docs/UserApi.md @@ -28,7 +28,7 @@ All URIs are relative to */v1* | [**updateUserInOrganization**](UserApi.md#updateUserInOrganization) | **PATCH** /organizations/{organization}/{username} | | - + # **addAWSAccessCredentials** > addAWSAccessCredentials(namespace, awsAccessCredentials) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -92,7 +91,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -106,7 +105,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **addUserToOrganization** > addUserToOrganization(organization, user) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -170,7 +168,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -184,7 +182,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **checkAWSAccessCredentials** > List<AWSAccessCredentials> checkAWSAccessCredentials(namespace) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -247,7 +244,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -261,7 +258,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **checkAWSAccessCredentialsByName** > AWSAccessCredentials checkAWSAccessCredentialsByName(namespace, name) @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -326,7 +322,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -340,7 +336,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **confirmEmail** > confirmEmail() @@ -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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -398,7 +393,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -412,7 +407,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **createUser** > createUser(user) @@ -421,44 +416,31 @@ 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.models.*; -import UserApi; +import io.tiledb.cloud.rest_api.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"); + + 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(); } + } } ``` @@ -474,7 +456,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +No authorization required ### HTTP request headers @@ -488,7 +470,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **deleteAWSAccessCredentials** > deleteAWSAccessCredentials(namespace, name) @@ -497,45 +479,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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -552,7 +533,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -566,7 +547,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **deleteUser** > deleteUser(username) @@ -575,44 +556,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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -628,7 +608,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -642,7 +622,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **deleteUserFromOrganization** > deleteUserFromOrganization(organization, username) @@ -651,45 +631,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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -706,7 +685,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -720,7 +699,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getOrganizationUser** > OrganizationUser getOrganizationUser(organization, username) @@ -729,46 +708,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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -785,7 +763,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -800,7 +778,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getSession** > Token getSession(rememberMe) @@ -809,45 +787,44 @@ public class Example { 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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -863,7 +840,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -877,7 +854,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getTokenScopes** > List<TokenScope> getTokenScopes() @@ -886,44 +863,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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -936,7 +912,7 @@ This endpoint does not need any parameter. ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -950,7 +926,7 @@ This endpoint does not need any parameter. | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getUser** > User getUser() @@ -959,44 +935,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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -1009,7 +984,7 @@ This endpoint does not need any parameter. ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1023,7 +998,7 @@ This endpoint does not need any parameter. | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getUserWithUsername** > User getUserWithUsername(username) @@ -1032,45 +1007,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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -1086,7 +1060,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1101,7 +1075,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **requestToken** > Token requestToken(tokenRequest) @@ -1110,45 +1084,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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -1164,7 +1137,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1178,7 +1151,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **resetUserPassword** > resetUserPassword(user) @@ -1187,44 +1160,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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -1240,7 +1212,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1255,7 +1227,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **revokeToken** > revokeToken(token) @@ -1264,44 +1236,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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -1317,7 +1288,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1331,7 +1302,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **tokensGet** > List<Token> tokensGet() @@ -1340,44 +1311,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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -1390,7 +1360,7 @@ This endpoint does not need any parameter. ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1404,7 +1374,7 @@ This endpoint does not need any parameter. | **502** | Bad Gateway | - | | **0** | error response | - | - + # **tokensSessionGet** > List<Token> tokensSessionGet() @@ -1413,44 +1383,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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -1463,7 +1432,7 @@ This endpoint does not need any parameter. ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1477,7 +1446,7 @@ This endpoint does not need any parameter. | **502** | Bad Gateway | - | | **0** | error response | - | - + # **updateAWSAccessCredentials** > updateAWSAccessCredentials(namespace, name, awsAccessCredentials) @@ -1486,46 +1455,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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -1543,7 +1511,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1557,7 +1525,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **updateUser** > updateUser(username, user) @@ -1566,45 +1534,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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -1621,7 +1588,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1635,7 +1602,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **updateUserInOrganization** > updateUserInOrganization(organization, username, user) @@ -1644,46 +1611,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.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 HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + 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(); } + } } ``` @@ -1701,7 +1667,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar index 7454180f2ae8848c63b8b4dea2cb829da983f2fa..e6441136f3d4ba8a0da8d277868979cfbc8ad796 100644 GIT binary patch literal 43453 zcma&N1CXTcmMvW9vTb(Rwr$&4wr$(C?dmSu>@vG-+vuvg^_??!{yS%8zW-#zn-LkA z5&1^$^{lnmUON?}LBF8_K|(?T0Ra(xUH{($5eN!MR#ZihR#HxkUPe+_R8Cn`RRs(P z_^*#_XlXmGv7!4;*Y%p4nw?{bNp@UZHv1?Um8r6)Fei3p@ClJn0ECfg1hkeuUU@Or zDaPa;U3fE=3L}DooL;8f;P0ipPt0Z~9P0)lbStMS)ag54=uL9ia-Lm3nh|@(Y?B`; zx_#arJIpXH!U{fbCbI^17}6Ri*H<>OLR%c|^mh8+)*h~K8Z!9)DPf zR2h?lbDZQ`p9P;&DQ4F0sur@TMa!Y}S8irn(%d-gi0*WxxCSk*A?3lGh=gcYN?FGl z7D=Js!i~0=u3rox^eO3i@$0=n{K1lPNU zwmfjRVmLOCRfe=seV&P*1Iq=^i`502keY8Uy-WNPwVNNtJFx?IwAyRPZo2Wo1+S(xF37LJZ~%i)kpFQ3Fw=mXfd@>%+)RpYQLnr}B~~zoof(JVm^^&f zxKV^+3D3$A1G;qh4gPVjhrC8e(VYUHv#dy^)(RoUFM?o%W-EHxufuWf(l*@-l+7vt z=l`qmR56K~F|v<^Pd*p~1_y^P0P^aPC##d8+HqX4IR1gu+7w#~TBFphJxF)T$2WEa zxa?H&6=Qe7d(#tha?_1uQys2KtHQ{)Qco)qwGjrdNL7thd^G5i8Os)CHqc>iOidS} z%nFEDdm=GXBw=yXe1W-ShHHFb?Cc70+$W~z_+}nAoHFYI1MV1wZegw*0y^tC*s%3h zhD3tN8b=Gv&rj}!SUM6|ajSPp*58KR7MPpI{oAJCtY~JECm)*m_x>AZEu>DFgUcby z1Qaw8lU4jZpQ_$;*7RME+gq1KySGG#Wql>aL~k9tLrSO()LWn*q&YxHEuzmwd1?aAtI zBJ>P=&$=l1efe1CDU;`Fd+_;&wI07?V0aAIgc(!{a z0Jg6Y=inXc3^n!U0Atk`iCFIQooHqcWhO(qrieUOW8X(x?(RD}iYDLMjSwffH2~tB z)oDgNBLB^AJBM1M^c5HdRx6fBfka`(LD-qrlh5jqH~);#nw|iyp)()xVYak3;Ybik z0j`(+69aK*B>)e_p%=wu8XC&9e{AO4c~O1U`5X9}?0mrd*m$_EUek{R?DNSh(=br# z#Q61gBzEpmy`$pA*6!87 zSDD+=@fTY7<4A?GLqpA?Pb2z$pbCc4B4zL{BeZ?F-8`s$?>*lXXtn*NC61>|*w7J* z$?!iB{6R-0=KFmyp1nnEmLsA-H0a6l+1uaH^g%c(p{iT&YFrbQ$&PRb8Up#X3@Zsk zD^^&LK~111%cqlP%!_gFNa^dTYT?rhkGl}5=fL{a`UViaXWI$k-UcHJwmaH1s=S$4 z%4)PdWJX;hh5UoK?6aWoyLxX&NhNRqKam7tcOkLh{%j3K^4Mgx1@i|Pi&}<^5>hs5 zm8?uOS>%)NzT(%PjVPGa?X%`N2TQCKbeH2l;cTnHiHppPSJ<7y-yEIiC!P*ikl&!B z%+?>VttCOQM@ShFguHVjxX^?mHX^hSaO_;pnyh^v9EumqSZTi+#f&_Vaija0Q-e*| z7ulQj6Fs*bbmsWp{`auM04gGwsYYdNNZcg|ph0OgD>7O}Asn7^Z=eI>`$2*v78;sj-}oMoEj&@)9+ycEOo92xSyY344^ z11Hb8^kdOvbf^GNAK++bYioknrpdN>+u8R?JxG=!2Kd9r=YWCOJYXYuM0cOq^FhEd zBg2puKy__7VT3-r*dG4c62Wgxi52EMCQ`bKgf*#*ou(D4-ZN$+mg&7$u!! z-^+Z%;-3IDwqZ|K=ah85OLwkO zKxNBh+4QHh)u9D?MFtpbl)us}9+V!D%w9jfAMYEb>%$A;u)rrI zuBudh;5PN}_6J_}l55P3l_)&RMlH{m!)ai-i$g)&*M`eN$XQMw{v^r@-125^RRCF0 z^2>|DxhQw(mtNEI2Kj(;KblC7x=JlK$@78`O~>V!`|1Lm-^JR$-5pUANAnb(5}B}JGjBsliK4& zk6y(;$e&h)lh2)L=bvZKbvh@>vLlreBdH8No2>$#%_Wp1U0N7Ank!6$dFSi#xzh|( zRi{Uw%-4W!{IXZ)fWx@XX6;&(m_F%c6~X8hx=BN1&q}*( zoaNjWabE{oUPb!Bt$eyd#$5j9rItB-h*5JiNi(v^e|XKAj*8(k<5-2$&ZBR5fF|JA z9&m4fbzNQnAU}r8ab>fFV%J0z5awe#UZ|bz?Ur)U9bCIKWEzi2%A+5CLqh?}K4JHi z4vtM;+uPsVz{Lfr;78W78gC;z*yTch~4YkLr&m-7%-xc ztw6Mh2d>_iO*$Rd8(-Cr1_V8EO1f*^@wRoSozS) zy1UoC@pruAaC8Z_7~_w4Q6n*&B0AjOmMWa;sIav&gu z|J5&|{=a@vR!~k-OjKEgPFCzcJ>#A1uL&7xTDn;{XBdeM}V=l3B8fE1--DHjSaxoSjNKEM9|U9#m2<3>n{Iuo`r3UZp;>GkT2YBNAh|b z^jTq-hJp(ebZh#Lk8hVBP%qXwv-@vbvoREX$TqRGTgEi$%_F9tZES@z8Bx}$#5eeG zk^UsLBH{bc2VBW)*EdS({yw=?qmevwi?BL6*=12k9zM5gJv1>y#ML4!)iiPzVaH9% zgSImetD@dam~e>{LvVh!phhzpW+iFvWpGT#CVE5TQ40n%F|p(sP5mXxna+Ev7PDwA zamaV4m*^~*xV+&p;W749xhb_X=$|LD;FHuB&JL5?*Y2-oIT(wYY2;73<^#46S~Gx| z^cez%V7x$81}UWqS13Gz80379Rj;6~WdiXWOSsdmzY39L;Hg3MH43o*y8ibNBBH`(av4|u;YPq%{R;IuYow<+GEsf@R?=@tT@!}?#>zIIn0CoyV!hq3mw zHj>OOjfJM3F{RG#6ujzo?y32m^tgSXf@v=J$ELdJ+=5j|=F-~hP$G&}tDZsZE?5rX ztGj`!S>)CFmdkccxM9eGIcGnS2AfK#gXwj%esuIBNJQP1WV~b~+D7PJTmWGTSDrR` zEAu4B8l>NPuhsk5a`rReSya2nfV1EK01+G!x8aBdTs3Io$u5!6n6KX%uv@DxAp3F@{4UYg4SWJtQ-W~0MDb|j-$lwVn znAm*Pl!?Ps&3wO=R115RWKb*JKoexo*)uhhHBncEDMSVa_PyA>k{Zm2(wMQ(5NM3# z)jkza|GoWEQo4^s*wE(gHz?Xsg4`}HUAcs42cM1-qq_=+=!Gk^y710j=66(cSWqUe zklbm8+zB_syQv5A2rj!Vbw8;|$@C!vfNmNV!yJIWDQ>{+2x zKjuFX`~~HKG~^6h5FntRpnnHt=D&rq0>IJ9#F0eM)Y-)GpRjiN7gkA8wvnG#K=q{q z9dBn8_~wm4J<3J_vl|9H{7q6u2A!cW{bp#r*-f{gOV^e=8S{nc1DxMHFwuM$;aVI^ zz6A*}m8N-&x8;aunp1w7_vtB*pa+OYBw=TMc6QK=mbA-|Cf* zvyh8D4LRJImooUaSb7t*fVfih<97Gf@VE0|z>NcBwBQze);Rh!k3K_sfunToZY;f2 z^HmC4KjHRVg+eKYj;PRN^|E0>Gj_zagfRbrki68I^#~6-HaHg3BUW%+clM1xQEdPYt_g<2K+z!$>*$9nQ>; zf9Bei{?zY^-e{q_*|W#2rJG`2fy@{%6u0i_VEWTq$*(ZN37|8lFFFt)nCG({r!q#9 z5VK_kkSJ3?zOH)OezMT{!YkCuSSn!K#-Rhl$uUM(bq*jY? zi1xbMVthJ`E>d>(f3)~fozjg^@eheMF6<)I`oeJYx4*+M&%c9VArn(OM-wp%M<-`x z7sLP1&3^%Nld9Dhm@$3f2}87!quhI@nwd@3~fZl_3LYW-B?Ia>ui`ELg z&Qfe!7m6ze=mZ`Ia9$z|ARSw|IdMpooY4YiPN8K z4B(ts3p%2i(Td=tgEHX z0UQ_>URBtG+-?0E;E7Ld^dyZ;jjw0}XZ(}-QzC6+NN=40oDb2^v!L1g9xRvE#@IBR zO!b-2N7wVfLV;mhEaXQ9XAU+>=XVA6f&T4Z-@AX!leJ8obP^P^wP0aICND?~w&NykJ#54x3_@r7IDMdRNy4Hh;h*!u(Ol(#0bJdwEo$5437-UBjQ+j=Ic>Q2z` zJNDf0yO6@mr6y1#n3)s(W|$iE_i8r@Gd@!DWDqZ7J&~gAm1#~maIGJ1sls^gxL9LLG_NhU!pTGty!TbhzQnu)I*S^54U6Yu%ZeCg`R>Q zhBv$n5j0v%O_j{QYWG!R9W?5_b&67KB$t}&e2LdMvd(PxN6Ir!H4>PNlerpBL>Zvyy!yw z-SOo8caEpDt(}|gKPBd$qND5#a5nju^O>V&;f890?yEOfkSG^HQVmEbM3Ugzu+UtH zC(INPDdraBN?P%kE;*Ae%Wto&sgw(crfZ#Qy(<4nk;S|hD3j{IQRI6Yq|f^basLY; z-HB&Je%Gg}Jt@={_C{L$!RM;$$|iD6vu#3w?v?*;&()uB|I-XqEKqZPS!reW9JkLewLb!70T7n`i!gNtb1%vN- zySZj{8-1>6E%H&=V}LM#xmt`J3XQoaD|@XygXjdZ1+P77-=;=eYpoEQ01B@L*a(uW zrZeZz?HJsw_4g0vhUgkg@VF8<-X$B8pOqCuWAl28uB|@r`19DTUQQsb^pfqB6QtiT z*`_UZ`fT}vtUY#%sq2{rchyfu*pCg;uec2$-$N_xgjZcoumE5vSI{+s@iLWoz^Mf; zuI8kDP{!XY6OP~q5}%1&L}CtfH^N<3o4L@J@zg1-mt{9L`s^z$Vgb|mr{@WiwAqKg zp#t-lhrU>F8o0s1q_9y`gQNf~Vb!F%70f}$>i7o4ho$`uciNf=xgJ>&!gSt0g;M>*x4-`U)ysFW&Vs^Vk6m%?iuWU+o&m(2Jm26Y(3%TL; zA7T)BP{WS!&xmxNw%J=$MPfn(9*^*TV;$JwRy8Zl*yUZi8jWYF>==j~&S|Xinsb%c z2?B+kpet*muEW7@AzjBA^wAJBY8i|#C{WtO_or&Nj2{=6JTTX05}|H>N2B|Wf!*3_ z7hW*j6p3TvpghEc6-wufFiY!%-GvOx*bZrhZu+7?iSrZL5q9}igiF^*R3%DE4aCHZ zqu>xS8LkW+Auv%z-<1Xs92u23R$nk@Pk}MU5!gT|c7vGlEA%G^2th&Q*zfg%-D^=f z&J_}jskj|Q;73NP4<4k*Y%pXPU2Thoqr+5uH1yEYM|VtBPW6lXaetokD0u z9qVek6Q&wk)tFbQ8(^HGf3Wp16gKmr>G;#G(HRBx?F`9AIRboK+;OfHaLJ(P>IP0w zyTbTkx_THEOs%Q&aPrxbZrJlio+hCC_HK<4%f3ZoSAyG7Dn`=X=&h@m*|UYO-4Hq0 z-Bq&+Ie!S##4A6OGoC~>ZW`Y5J)*ouaFl_e9GA*VSL!O_@xGiBw!AF}1{tB)z(w%c zS1Hmrb9OC8>0a_$BzeiN?rkPLc9%&;1CZW*4}CDDNr2gcl_3z+WC15&H1Zc2{o~i) z)LLW=WQ{?ricmC`G1GfJ0Yp4Dy~Ba;j6ZV4r{8xRs`13{dD!xXmr^Aga|C=iSmor% z8hi|pTXH)5Yf&v~exp3o+sY4B^^b*eYkkCYl*T{*=-0HniSA_1F53eCb{x~1k3*`W zr~};p1A`k{1DV9=UPnLDgz{aJH=-LQo<5%+Em!DNN252xwIf*wF_zS^!(XSm(9eoj z=*dXG&n0>)_)N5oc6v!>-bd(2ragD8O=M|wGW z!xJQS<)u70m&6OmrF0WSsr@I%T*c#Qo#Ha4d3COcX+9}hM5!7JIGF>7<~C(Ear^Sn zm^ZFkV6~Ula6+8S?oOROOA6$C&q&dp`>oR-2Ym3(HT@O7Sd5c~+kjrmM)YmgPH*tL zX+znN>`tv;5eOfX?h{AuX^LK~V#gPCu=)Tigtq9&?7Xh$qN|%A$?V*v=&-2F$zTUv z`C#WyIrChS5|Kgm_GeudCFf;)!WH7FI60j^0o#65o6`w*S7R@)88n$1nrgU(oU0M9 zx+EuMkC>(4j1;m6NoGqEkpJYJ?vc|B zOlwT3t&UgL!pX_P*6g36`ZXQ; z9~Cv}ANFnJGp(;ZhS(@FT;3e)0)Kp;h^x;$*xZn*k0U6-&FwI=uOGaODdrsp-!K$Ac32^c{+FhI-HkYd5v=`PGsg%6I`4d9Jy)uW0y%) zm&j^9WBAp*P8#kGJUhB!L?a%h$hJgQrx!6KCB_TRo%9{t0J7KW8!o1B!NC)VGLM5! zpZy5Jc{`r{1e(jd%jsG7k%I+m#CGS*BPA65ZVW~fLYw0dA-H_}O zrkGFL&P1PG9p2(%QiEWm6x;U-U&I#;Em$nx-_I^wtgw3xUPVVu zqSuKnx&dIT-XT+T10p;yjo1Y)z(x1fb8Dzfn8e yu?e%!_ptzGB|8GrCfu%p?(_ zQccdaaVK$5bz;*rnyK{_SQYM>;aES6Qs^lj9lEs6_J+%nIiuQC*fN;z8md>r_~Mfl zU%p5Dt_YT>gQqfr@`cR!$NWr~+`CZb%dn;WtzrAOI>P_JtsB76PYe*<%H(y>qx-`Kq!X_; z<{RpAqYhE=L1r*M)gNF3B8r(<%8mo*SR2hu zccLRZwGARt)Hlo1euqTyM>^!HK*!Q2P;4UYrysje@;(<|$&%vQekbn|0Ruu_Io(w4#%p6ld2Yp7tlA`Y$cciThP zKzNGIMPXX%&Ud0uQh!uQZz|FB`4KGD?3!ND?wQt6!n*f4EmCoJUh&b?;B{|lxs#F- z31~HQ`SF4x$&v00@(P+j1pAaj5!s`)b2RDBp*PB=2IB>oBF!*6vwr7Dp%zpAx*dPr zb@Zjq^XjN?O4QcZ*O+8>)|HlrR>oD*?WQl5ri3R#2?*W6iJ>>kH%KnnME&TT@ZzrHS$Q%LC?n|e>V+D+8D zYc4)QddFz7I8#}y#Wj6>4P%34dZH~OUDb?uP%-E zwjXM(?Sg~1!|wI(RVuxbu)-rH+O=igSho_pDCw(c6b=P zKk4ATlB?bj9+HHlh<_!&z0rx13K3ZrAR8W)!@Y}o`?a*JJsD+twZIv`W)@Y?Amu_u zz``@-e2X}27$i(2=9rvIu5uTUOVhzwu%mNazS|lZb&PT;XE2|B&W1>=B58#*!~D&) zfVmJGg8UdP*fx(>Cj^?yS^zH#o-$Q-*$SnK(ZVFkw+er=>N^7!)FtP3y~Xxnu^nzY zikgB>Nj0%;WOltWIob|}%lo?_C7<``a5hEkx&1ku$|)i>Rh6@3h*`slY=9U}(Ql_< zaNG*J8vb&@zpdhAvv`?{=zDedJ23TD&Zg__snRAH4eh~^oawdYi6A3w8<Ozh@Kw)#bdktM^GVb zrG08?0bG?|NG+w^&JvD*7LAbjED{_Zkc`3H!My>0u5Q}m!+6VokMLXxl`Mkd=g&Xx z-a>m*#G3SLlhbKB!)tnzfWOBV;u;ftU}S!NdD5+YtOjLg?X}dl>7m^gOpihrf1;PY zvll&>dIuUGs{Qnd- zwIR3oIrct8Va^Tm0t#(bJD7c$Z7DO9*7NnRZorrSm`b`cxz>OIC;jSE3DO8`hX955ui`s%||YQtt2 z5DNA&pG-V+4oI2s*x^>-$6J?p=I>C|9wZF8z;VjR??Icg?1w2v5Me+FgAeGGa8(3S z4vg*$>zC-WIVZtJ7}o9{D-7d>zCe|z#<9>CFve-OPAYsneTb^JH!Enaza#j}^mXy1 z+ULn^10+rWLF6j2>Ya@@Kq?26>AqK{A_| zQKb*~F1>sE*=d?A?W7N2j?L09_7n+HGi{VY;MoTGr_)G9)ot$p!-UY5zZ2Xtbm=t z@dpPSGwgH=QtIcEulQNI>S-#ifbnO5EWkI;$A|pxJd885oM+ zGZ0_0gDvG8q2xebj+fbCHYfAXuZStH2j~|d^sBAzo46(K8n59+T6rzBwK)^rfPT+B zyIFw)9YC-V^rhtK`!3jrhmW-sTmM+tPH+;nwjL#-SjQPUZ53L@A>y*rt(#M(qsiB2 zx6B)dI}6Wlsw%bJ8h|(lhkJVogQZA&n{?Vgs6gNSXzuZpEyu*xySy8ro07QZ7Vk1!3tJphN_5V7qOiyK8p z#@jcDD8nmtYi1^l8ml;AF<#IPK?!pqf9D4moYk>d99Im}Jtwj6c#+A;f)CQ*f-hZ< z=p_T86jog%!p)D&5g9taSwYi&eP z#JuEK%+NULWus;0w32-SYFku#i}d~+{Pkho&^{;RxzP&0!RCm3-9K6`>KZpnzS6?L z^H^V*s!8<>x8bomvD%rh>Zp3>Db%kyin;qtl+jAv8Oo~1g~mqGAC&Qi_wy|xEt2iz zWAJEfTV%cl2Cs<1L&DLRVVH05EDq`pH7Oh7sR`NNkL%wi}8n>IXcO40hp+J+sC!W?!krJf!GJNE8uj zg-y~Ns-<~D?yqbzVRB}G>0A^f0!^N7l=$m0OdZuqAOQqLc zX?AEGr1Ht+inZ-Qiwnl@Z0qukd__a!C*CKuGdy5#nD7VUBM^6OCpxCa2A(X;e0&V4 zM&WR8+wErQ7UIc6LY~Q9x%Sn*Tn>>P`^t&idaOEnOd(Ufw#>NoR^1QdhJ8s`h^|R_ zXX`c5*O~Xdvh%q;7L!_!ohf$NfEBmCde|#uVZvEo>OfEq%+Ns7&_f$OR9xsihRpBb z+cjk8LyDm@U{YN>+r46?nn{7Gh(;WhFw6GAxtcKD+YWV?uge>;+q#Xx4!GpRkVZYu zzsF}1)7$?%s9g9CH=Zs+B%M_)+~*j3L0&Q9u7!|+T`^O{xE6qvAP?XWv9_MrZKdo& z%IyU)$Q95AB4!#hT!_dA>4e@zjOBD*Y=XjtMm)V|+IXzjuM;(l+8aA5#Kaz_$rR6! zj>#&^DidYD$nUY(D$mH`9eb|dtV0b{S>H6FBfq>t5`;OxA4Nn{J(+XihF(stSche7$es&~N$epi&PDM_N`As;*9D^L==2Q7Z2zD+CiU(|+-kL*VG+&9!Yb3LgPy?A zm7Z&^qRG_JIxK7-FBzZI3Q<;{`DIxtc48k> zc|0dmX;Z=W$+)qE)~`yn6MdoJ4co;%!`ddy+FV538Y)j(vg}5*k(WK)KWZ3WaOG!8 z!syGn=s{H$odtpqFrT#JGM*utN7B((abXnpDM6w56nhw}OY}0TiTG1#f*VFZr+^-g zbP10`$LPq_;PvrA1XXlyx2uM^mrjTzX}w{yuLo-cOClE8MMk47T25G8M!9Z5ypOSV zAJUBGEg5L2fY)ZGJb^E34R2zJ?}Vf>{~gB!8=5Z) z9y$>5c)=;o0HeHHSuE4U)#vG&KF|I%-cF6f$~pdYJWk_dD}iOA>iA$O$+4%@>JU08 zS`ep)$XLPJ+n0_i@PkF#ri6T8?ZeAot$6JIYHm&P6EB=BiaNY|aA$W0I+nz*zkz_z zkEru!tj!QUffq%)8y0y`T&`fuus-1p>=^hnBiBqD^hXrPs`PY9tU3m0np~rISY09> z`P3s=-kt_cYcxWd{de@}TwSqg*xVhp;E9zCsnXo6z z?f&Sv^U7n4`xr=mXle94HzOdN!2kB~4=%)u&N!+2;z6UYKUDqi-s6AZ!haB;@&B`? z_TRX0%@suz^TRdCb?!vNJYPY8L_}&07uySH9%W^Tc&1pia6y1q#?*Drf}GjGbPjBS zbOPcUY#*$3sL2x4v_i*Y=N7E$mR}J%|GUI(>WEr+28+V z%v5{#e!UF*6~G&%;l*q*$V?&r$Pp^sE^i-0$+RH3ERUUdQ0>rAq2(2QAbG}$y{de( z>{qD~GGuOk559Y@%$?N^1ApVL_a704>8OD%8Y%8B;FCt%AoPu8*D1 zLB5X>b}Syz81pn;xnB}%0FnwazlWfUV)Z-~rZg6~b z6!9J$EcE&sEbzcy?CI~=boWA&eeIa%z(7SE^qgVLz??1Vbc1*aRvc%Mri)AJaAG!p z$X!_9Ds;Zz)f+;%s&dRcJt2==P{^j3bf0M=nJd&xwUGlUFn?H=2W(*2I2Gdu zv!gYCwM10aeus)`RIZSrCK=&oKaO_Ry~D1B5!y0R=%!i2*KfXGYX&gNv_u+n9wiR5 z*e$Zjju&ODRW3phN925%S(jL+bCHv6rZtc?!*`1TyYXT6%Ju=|X;6D@lq$8T zW{Y|e39ioPez(pBH%k)HzFITXHvnD6hw^lIoUMA;qAJ^CU?top1fo@s7xT13Fvn1H z6JWa-6+FJF#x>~+A;D~;VDs26>^oH0EI`IYT2iagy23?nyJ==i{g4%HrAf1-*v zK1)~@&(KkwR7TL}L(A@C_S0G;-GMDy=MJn2$FP5s<%wC)4jC5PXoxrQBFZ_k0P{{s@sz+gX`-!=T8rcB(=7vW}^K6oLWMmp(rwDh}b zwaGGd>yEy6fHv%jM$yJXo5oMAQ>c9j`**}F?MCry;T@47@r?&sKHgVe$MCqk#Z_3S z1GZI~nOEN*P~+UaFGnj{{Jo@16`(qVNtbU>O0Hf57-P>x8Jikp=`s8xWs^dAJ9lCQ z)GFm+=OV%AMVqVATtN@|vp61VVAHRn87}%PC^RAzJ%JngmZTasWBAWsoAqBU+8L8u z4A&Pe?fmTm0?mK-BL9t+{y7o(7jm+RpOhL9KnY#E&qu^}B6=K_dB}*VlSEiC9fn)+V=J;OnN)Ta5v66ic1rG+dGAJ1 z1%Zb_+!$=tQ~lxQrzv3x#CPb?CekEkA}0MYSgx$Jdd}q8+R=ma$|&1a#)TQ=l$1tQ z=tL9&_^vJ)Pk}EDO-va`UCT1m#Uty1{v^A3P~83_#v^ozH}6*9mIjIr;t3Uv%@VeW zGL6(CwCUp)Jq%G0bIG%?{_*Y#5IHf*5M@wPo6A{$Um++Co$wLC=J1aoG93&T7Ho}P z=mGEPP7GbvoG!uD$k(H3A$Z))+i{Hy?QHdk>3xSBXR0j!11O^mEe9RHmw!pvzv?Ua~2_l2Yh~_!s1qS`|0~0)YsbHSz8!mG)WiJE| z2f($6TQtt6L_f~ApQYQKSb=`053LgrQq7G@98#igV>y#i==-nEjQ!XNu9 z~;mE+gtj4IDDNQJ~JVk5Ux6&LCSFL!y=>79kE9=V}J7tD==Ga+IW zX)r7>VZ9dY=V&}DR))xUoV!u(Z|%3ciQi_2jl}3=$Agc(`RPb z8kEBpvY>1FGQ9W$n>Cq=DIpski};nE)`p3IUw1Oz0|wxll^)4dq3;CCY@RyJgFgc# zKouFh!`?Xuo{IMz^xi-h=StCis_M7yq$u) z?XHvw*HP0VgR+KR6wI)jEMX|ssqYvSf*_3W8zVTQzD?3>H!#>InzpSO)@SC8q*ii- z%%h}_#0{4JG;Jm`4zg};BPTGkYamx$Xo#O~lBirRY)q=5M45n{GCfV7h9qwyu1NxOMoP4)jjZMxmT|IQQh0U7C$EbnMN<3)Kk?fFHYq$d|ICu>KbY_hO zTZM+uKHe(cIZfEqyzyYSUBZa8;Fcut-GN!HSA9ius`ltNebF46ZX_BbZNU}}ZOm{M2&nANL9@0qvih15(|`S~z}m&h!u4x~(%MAO$jHRWNfuxWF#B)E&g3ghSQ9|> z(MFaLQj)NE0lowyjvg8z0#m6FIuKE9lDO~Glg}nSb7`~^&#(Lw{}GVOS>U)m8bF}x zVjbXljBm34Cs-yM6TVusr+3kYFjr28STT3g056y3cH5Tmge~ASxBj z%|yb>$eF;WgrcOZf569sDZOVwoo%8>XO>XQOX1OyN9I-SQgrm;U;+#3OI(zrWyow3 zk==|{lt2xrQ%FIXOTejR>;wv(Pb8u8}BUpx?yd(Abh6? zsoO3VYWkeLnF43&@*#MQ9-i-d0t*xN-UEyNKeyNMHw|A(k(_6QKO=nKMCxD(W(Yop zsRQ)QeL4X3Lxp^L%wzi2-WVSsf61dqliPUM7srDB?Wm6Lzn0&{*}|IsKQW;02(Y&| zaTKv|`U(pSzuvR6Rduu$wzK_W-Y-7>7s?G$)U}&uK;<>vU}^^ns@Z!p+9?St1s)dG zK%y6xkPyyS1$~&6v{kl?Md6gwM|>mt6Upm>oa8RLD^8T{0?HC!Z>;(Bob7el(DV6x zi`I)$&E&ngwFS@bi4^xFLAn`=fzTC;aimE^!cMI2n@Vo%Ae-ne`RF((&5y6xsjjAZ zVguVoQ?Z9uk$2ON;ersE%PU*xGO@T*;j1BO5#TuZKEf(mB7|g7pcEA=nYJ{s3vlbg zd4-DUlD{*6o%Gc^N!Nptgay>j6E5;3psI+C3Q!1ZIbeCubW%w4pq9)MSDyB{HLm|k zxv-{$$A*pS@csolri$Ge<4VZ}e~78JOL-EVyrbxKra^d{?|NnPp86!q>t<&IP07?Z z^>~IK^k#OEKgRH+LjllZXk7iA>2cfH6+(e&9ku5poo~6y{GC5>(bRK7hwjiurqAiZ zg*DmtgY}v83IjE&AbiWgMyFbaRUPZ{lYiz$U^&Zt2YjG<%m((&_JUbZcfJ22(>bi5 z!J?<7AySj0JZ&<-qXX;mcV!f~>G=sB0KnjWca4}vrtunD^1TrpfeS^4dvFr!65knK zZh`d;*VOkPs4*-9kL>$GP0`(M!j~B;#x?Ba~&s6CopvO86oM?-? zOw#dIRc;6A6T?B`Qp%^<U5 z19x(ywSH$_N+Io!6;e?`tWaM$`=Db!gzx|lQ${DG!zb1Zl&|{kX0y6xvO1o z220r<-oaS^^R2pEyY;=Qllqpmue|5yI~D|iI!IGt@iod{Opz@*ml^w2bNs)p`M(Io z|E;;m*Xpjd9l)4G#KaWfV(t8YUn@A;nK^#xgv=LtnArX|vWQVuw3}B${h+frU2>9^ z!l6)!Uo4`5k`<<;E(ido7M6lKTgWezNLq>U*=uz&s=cc$1%>VrAeOoUtA|T6gO4>UNqsdK=NF*8|~*sl&wI=x9-EGiq*aqV!(VVXA57 zw9*o6Ir8Lj1npUXvlevtn(_+^X5rzdR>#(}4YcB9O50q97%rW2me5_L=%ffYPUSRc z!vv?Kv>dH994Qi>U(a<0KF6NH5b16enCp+mw^Hb3Xs1^tThFpz!3QuN#}KBbww`(h z7GO)1olDqy6?T$()R7y%NYx*B0k_2IBiZ14&8|JPFxeMF{vSTxF-Vi3+ZOI=Thq2} zyQgjYY1_7^ZQHh{?P))4+qUiQJLi1&{yE>h?~jU%tjdV0h|FENbM3X(KnJdPKc?~k zh=^Ixv*+smUll!DTWH!jrV*wSh*(mx0o6}1@JExzF(#9FXgmTXVoU+>kDe68N)dkQ zH#_98Zv$}lQwjKL@yBd;U(UD0UCl322=pav<=6g>03{O_3oKTq;9bLFX1ia*lw;#K zOiYDcBJf)82->83N_Y(J7Kr_3lE)hAu;)Q(nUVydv+l+nQ$?|%MWTy`t>{havFSQloHwiIkGK9YZ79^9?AZo0ZyQlVR#}lF%dn5n%xYksXf8gnBm=wO7g_^! zauQ-bH1Dc@3ItZ-9D_*pH}p!IG7j8A_o94#~>$LR|TFq zZ-b00*nuw|-5C2lJDCw&8p5N~Z1J&TrcyErds&!l3$eSz%`(*izc;-?HAFD9AHb-| z>)id`QCrzRws^9(#&=pIx9OEf2rmlob8sK&xPCWS+nD~qzU|qG6KwA{zbikcfQrdH z+ zQg>O<`K4L8rN7`GJB0*3<3`z({lWe#K!4AZLsI{%z#ja^OpfjU{!{)x0ZH~RB0W5X zTwN^w=|nA!4PEU2=LR05x~}|B&ZP?#pNgDMwD*ajI6oJqv!L81gu=KpqH22avXf0w zX3HjbCI!n9>l046)5rr5&v5ja!xkKK42zmqHzPx$9Nn_MZk`gLeSLgC=LFf;H1O#B zn=8|^1iRrujHfbgA+8i<9jaXc;CQBAmQvMGQPhFec2H1knCK2x!T`e6soyrqCamX% zTQ4dX_E*8so)E*TB$*io{$c6X)~{aWfaqdTh=xEeGvOAN9H&-t5tEE-qso<+C!2>+ zskX51H-H}#X{A75wqFe-J{?o8Bx|>fTBtl&tcbdR|132Ztqu5X0i-pisB-z8n71%q%>EF}yy5?z=Ve`}hVh{Drv1YWL zW=%ug_&chF11gDv3D6B)Tz5g54H0mDHNjuKZ+)CKFk4Z|$RD zfRuKLW`1B>B?*RUfVd0+u8h3r-{@fZ{k)c!93t1b0+Q9vOaRnEn1*IL>5Z4E4dZ!7 ztp4GP-^1d>8~LMeb}bW!(aAnB1tM_*la=Xx)q(I0Y@__Zd$!KYb8T2VBRw%e$iSdZ zkwdMwd}eV9q*;YvrBFTv1>1+}{H!JK2M*C|TNe$ZSA>UHKk);wz$(F$rXVc|sI^lD zV^?_J!3cLM;GJuBMbftbaRUs$;F}HDEDtIeHQ)^EJJ1F9FKJTGH<(Jj`phE6OuvE) zqK^K`;3S{Y#1M@8yRQwH`?kHMq4tHX#rJ>5lY3DM#o@or4&^_xtBC(|JpGTfrbGkA z2Tu+AyT^pHannww!4^!$5?@5v`LYy~T`qs7SYt$JgrY(w%C+IWA;ZkwEF)u5sDvOK zGk;G>Mh&elvXDcV69J_h02l&O;!{$({fng9Rlc3ID#tmB^FIG^w{HLUpF+iB`|
NnX)EH+Nua)3Y(c z&{(nX_ht=QbJ%DzAya}!&uNu!4V0xI)QE$SY__m)SAKcN0P(&JcoK*Lxr@P zY&P=}&B3*UWNlc|&$Oh{BEqwK2+N2U$4WB7Fd|aIal`FGANUa9E-O)!gV`((ZGCc$ zBJA|FFrlg~9OBp#f7aHodCe{6= zay$6vN~zj1ddMZ9gQ4p32(7wD?(dE>KA2;SOzXRmPBiBc6g`eOsy+pVcHu=;Yd8@{ zSGgXf@%sKKQz~;!J;|2fC@emm#^_rnO0esEn^QxXgJYd`#FPWOUU5b;9eMAF zZhfiZb|gk8aJIw*YLp4!*(=3l8Cp{(%p?ho22*vN9+5NLV0TTazNY$B5L6UKUrd$n zjbX%#m7&F#U?QNOBXkiiWB*_tk+H?N3`vg;1F-I+83{M2!8<^nydGr5XX}tC!10&e z7D36bLaB56WrjL&HiiMVtpff|K%|*{t*ltt^5ood{FOG0<>k&1h95qPio)2`eL${YAGIx(b4VN*~nKn6E~SIQUuRH zQ+5zP6jfnP$S0iJ@~t!Ai3o`X7biohli;E zT#yXyl{bojG@-TGZzpdVDXhbmF%F9+-^YSIv|MT1l3j zrxOFq>gd2%U}?6}8mIj?M zc077Zc9fq(-)4+gXv?Az26IO6eV`RAJz8e3)SC7~>%rlzDwySVx*q$ygTR5kW2ds- z!HBgcq0KON9*8Ff$X0wOq$`T7ml(@TF)VeoF}x1OttjuVHn3~sHrMB++}f7f9H%@f z=|kP_?#+fve@{0MlbkC9tyvQ_R?lRdRJ@$qcB(8*jyMyeME5ns6ypVI1Xm*Zr{DuS zZ!1)rQfa89c~;l~VkCiHI|PCBd`S*2RLNQM8!g9L6?n`^evQNEwfO@&JJRme+uopQX0%Jo zgd5G&#&{nX{o?TQwQvF1<^Cg3?2co;_06=~Hcb6~4XWpNFL!WU{+CK;>gH%|BLOh7@!hsa(>pNDAmpcuVO-?;Bic17R}^|6@8DahH)G z!EmhsfunLL|3b=M0MeK2vqZ|OqUqS8npxwge$w-4pFVXFq$_EKrZY?BuP@Az@(k`L z`ViQBSk`y+YwRT;&W| z2e3UfkCo^uTA4}Qmmtqs+nk#gNr2W4 zTH%hhErhB)pkXR{B!q5P3-OM+M;qu~f>}IjtF%>w{~K-0*jPVLl?Chz&zIdxp}bjx zStp&Iufr58FTQ36AHU)0+CmvaOpKF;W@sMTFpJ`j;3d)J_$tNQI^c<^1o<49Z(~K> z;EZTBaVT%14(bFw2ob@?JLQ2@(1pCdg3S%E4*dJ}dA*v}_a4_P(a`cHnBFJxNobAv zf&Zl-Yt*lhn-wjZsq<9v-IsXxAxMZ58C@e0!rzhJ+D@9^3~?~yllY^s$?&oNwyH!#~6x4gUrfxplCvK#!f z$viuszW>MFEcFL?>ux*((!L$;R?xc*myjRIjgnQX79@UPD$6Dz0jutM@7h_pq z0Zr)#O<^y_K6jfY^X%A-ip>P%3saX{!v;fxT-*0C_j4=UMH+Xth(XVkVGiiKE#f)q z%Jp=JT)uy{&}Iq2E*xr4YsJ5>w^=#-mRZ4vPXpI6q~1aFwi+lQcimO45V-JXP;>(Q zo={U`{=_JF`EQj87Wf}{Qy35s8r1*9Mxg({CvOt}?Vh9d&(}iI-quvs-rm~P;eRA@ zG5?1HO}puruc@S{YNAF3vmUc2B4!k*yi))<5BQmvd3tr}cIs#9)*AX>t`=~{f#Uz0 z0&Nk!7sSZwJe}=)-R^$0{yeS!V`Dh7w{w5rZ9ir!Z7Cd7dwZcK;BT#V0bzTt>;@Cl z#|#A!-IL6CZ@eHH!CG>OO8!%G8&8t4)Ro@}USB*k>oEUo0LsljsJ-%5Mo^MJF2I8- z#v7a5VdJ-Cd%(a+y6QwTmi+?f8Nxtm{g-+WGL>t;s#epv7ug>inqimZCVm!uT5Pf6 ziEgQt7^%xJf#!aPWbuC_3Nxfb&CFbQy!(8ANpkWLI4oSnH?Q3f?0k1t$3d+lkQs{~(>06l&v|MpcFsyAv zin6N!-;pggosR*vV=DO(#+}4ps|5$`udE%Kdmp?G7B#y%H`R|i8skKOd9Xzx8xgR$>Zo2R2Ytktq^w#ul4uicxW#{ zFjG_RNlBroV_n;a7U(KIpcp*{M~e~@>Q#Av90Jc5v%0c>egEdY4v3%|K1XvB{O_8G zkTWLC>OZKf;XguMH2-Pw{BKbFzaY;4v2seZV0>^7Q~d4O=AwaPhP3h|!hw5aqOtT@ z!SNz}$of**Bl3TK209@F=Tn1+mgZa8yh(Png%Zd6Mt}^NSjy)etQrF zme*llAW=N_8R*O~d2!apJnF%(JcN??=`$qs3Y+~xs>L9x`0^NIn!8mMRFA_tg`etw z3k{9JAjnl@ygIiJcNHTy02GMAvBVqEss&t2<2mnw!; zU`J)0>lWiqVqo|ex7!+@0i>B~BSU1A_0w#Ee+2pJx0BFiZ7RDHEvE*ptc9md(B{&+ zKE>TM)+Pd>HEmdJao7U@S>nL(qq*A)#eLOuIfAS@j`_sK0UEY6OAJJ-kOrHG zjHx`g!9j*_jRcJ%>CE9K2MVf?BUZKFHY?EpV6ai7sET-tqk=nDFh-(65rhjtlKEY% z@G&cQ<5BKatfdA1FKuB=i>CCC5(|9TMW%K~GbA4}80I5%B}(gck#Wlq@$nO3%@QP_ z8nvPkJFa|znk>V92cA!K1rKtr)skHEJD;k8P|R8RkCq1Rh^&}Evwa4BUJz2f!2=MH zo4j8Y$YL2313}H~F7@J7mh>u%556Hw0VUOz-Un@ZASCL)y8}4XXS`t1AC*^>PLwIc zUQok5PFS=*#)Z!3JZN&eZ6ZDP^-c@StY*t20JhCnbMxXf=LK#;`4KHEqMZ-Ly9KsS zI2VUJGY&PmdbM+iT)zek)#Qc#_i4uH43 z@T5SZBrhNCiK~~esjsO9!qBpaWK<`>!-`b71Y5ReXQ4AJU~T2Njri1CEp5oKw;Lnm)-Y@Z3sEY}XIgSy%xo=uek(kAAH5MsV$V3uTUsoTzxp_rF=tx zV07vlJNKtJhCu`b}*#m&5LV4TAE&%KtHViDAdv#c^x`J7bg z&N;#I2GkF@SIGht6p-V}`!F_~lCXjl1BdTLIjD2hH$J^YFN`7f{Q?OHPFEM$65^!u zNwkelo*5+$ZT|oQ%o%;rBX$+?xhvjb)SHgNHE_yP%wYkkvXHS{Bf$OiKJ5d1gI0j< zF6N}Aq=(WDo(J{e-uOecxPD>XZ@|u-tgTR<972`q8;&ZD!cep^@B5CaqFz|oU!iFj zU0;6fQX&~15E53EW&w1s9gQQ~Zk16X%6 zjG`j0yq}4deX2?Tr(03kg>C(!7a|b9qFI?jcE^Y>-VhudI@&LI6Qa}WQ>4H_!UVyF z((cm&!3gmq@;BD#5P~0;_2qgZhtJS|>WdtjY=q zLnHH~Fm!cxw|Z?Vw8*~?I$g#9j&uvgm7vPr#&iZgPP~v~BI4jOv;*OQ?jYJtzO<^y z7-#C={r7CO810!^s(MT!@@Vz_SVU)7VBi(e1%1rvS!?PTa}Uv`J!EP3s6Y!xUgM^8 z4f!fq<3Wer_#;u!5ECZ|^c1{|q_lh3m^9|nsMR1#Qm|?4Yp5~|er2?W^7~cl;_r4WSme_o68J9p03~Hc%X#VcX!xAu%1`R!dfGJCp zV*&m47>s^%Ib0~-2f$6oSgn3jg8m%UA;ArcdcRyM5;}|r;)?a^D*lel5C`V5G=c~k zy*w_&BfySOxE!(~PI$*dwG><+-%KT5p?whOUMA*k<9*gi#T{h3DAxzAPxN&Xws8o9Cp*`PA5>d9*Z-ynV# z9yY*1WR^D8|C%I@vo+d8r^pjJ$>eo|j>XiLWvTWLl(^;JHCsoPgem6PvegHb-OTf| zvTgsHSa;BkbG=(NgPO|CZu9gUCGr$8*EoH2_Z#^BnxF0yM~t`|9ws_xZ8X8iZYqh! zAh;HXJ)3P&)Q0(&F>!LN0g#bdbis-cQxyGn9Qgh`q+~49Fqd2epikEUw9caM%V6WgP)532RMRW}8gNS%V%Hx7apSz}tn@bQy!<=lbhmAH=FsMD?leawbnP5BWM0 z5{)@EEIYMu5;u)!+HQWhQ;D3_Cm_NADNeb-f56}<{41aYq8p4=93d=-=q0Yx#knGYfXVt z+kMxlus}t2T5FEyCN~!}90O_X@@PQpuy;kuGz@bWft%diBTx?d)_xWd_-(!LmVrh**oKg!1CNF&LX4{*j|) zIvjCR0I2UUuuEXh<9}oT_zT#jOrJAHNLFT~Ilh9hGJPI1<5`C-WA{tUYlyMeoy!+U zhA#=p!u1R7DNg9u4|QfED-2TuKI}>p#2P9--z;Bbf4Op*;Q9LCbO&aL2i<0O$ByoI z!9;Ght733FC>Pz>$_mw(F`zU?`m@>gE`9_p*=7o=7av`-&ifU(^)UU`Kg3Kw`h9-1 z6`e6+im=|m2v`pN(2dE%%n8YyQz;#3Q-|x`91z?gj68cMrHl}C25|6(_dIGk*8cA3 zRHB|Nwv{@sP4W+YZM)VKI>RlB`n=Oj~Rzx~M+Khz$N$45rLn6k1nvvD^&HtsMA4`s=MmuOJID@$s8Ph4E zAmSV^+s-z8cfv~Yd(40Sh4JG#F~aB>WFoX7ykaOr3JaJ&Lb49=B8Vk-SQT9%7TYhv z?-Pprt{|=Y5ZQ1?od|A<_IJU93|l4oAfBm?3-wk{O<8ea+`}u%(kub(LFo2zFtd?4 zwpN|2mBNywv+d^y_8#<$r>*5+$wRTCygFLcrwT(qc^n&@9r+}Kd_u@Ithz(6Qb4}A zWo_HdBj#V$VE#l6pD0a=NfB0l^6W^g`vm^sta>Tly?$E&{F?TTX~DsKF~poFfmN%2 z4x`Dc{u{Lkqz&y!33;X}weD}&;7p>xiI&ZUb1H9iD25a(gI|`|;G^NwJPv=1S5e)j z;U;`?n}jnY6rA{V^ zxTd{bK)Gi^odL3l989DQlN+Zs39Xe&otGeY(b5>rlIqfc7Ap4}EC?j<{M=hlH{1+d zw|c}}yx88_xQr`{98Z!d^FNH77=u(p-L{W6RvIn40f-BldeF-YD>p6#)(Qzf)lfZj z?3wAMtPPp>vMehkT`3gToPd%|D8~4`5WK{`#+}{L{jRUMt zrFz+O$C7y8$M&E4@+p+oV5c%uYzbqd2Y%SSgYy#xh4G3hQv>V*BnuKQhBa#=oZB~w{azUB+q%bRe_R^ z>fHBilnRTUfaJ201czL8^~Ix#+qOHSO)A|xWLqOxB$dT2W~)e-r9;bm=;p;RjYahB z*1hegN(VKK+ztr~h1}YP@6cfj{e#|sS`;3tJhIJK=tVJ-*h-5y9n*&cYCSdg#EHE# zSIx=r#qOaLJoVVf6v;(okg6?*L_55atl^W(gm^yjR?$GplNP>BZsBYEf_>wM0Lc;T zhf&gpzOWNxS>m+mN92N0{;4uw`P+9^*|-1~$uXpggj4- z^SFc4`uzj2OwdEVT@}Q`(^EcQ_5(ZtXTql*yGzdS&vrS_w>~~ra|Nb5abwf}Y!uq6R5f&6g2ge~2p(%c< z@O)cz%%rr4*cRJ5f`n@lvHNk@lE1a*96Kw6lJ~B-XfJW%?&-y?;E&?1AacU@`N`!O z6}V>8^%RZ7SQnZ-z$(jsX`amu*5Fj8g!3RTRwK^`2_QHe;_2y_n|6gSaGyPmI#kA0sYV<_qOZc#-2BO%hX)f$s-Z3xlI!ub z^;3ru11DA`4heAu%}HIXo&ctujzE2!6DIGE{?Zs>2}J+p&C$rc7gJC35gxhflorvsb%sGOxpuWhF)dL_&7&Z99=5M0b~Qa;Mo!j&Ti_kXW!86N%n= zSC@6Lw>UQ__F&+&Rzv?gscwAz8IP!n63>SP)^62(HK98nGjLY2*e^OwOq`3O|C92? z;TVhZ2SK%9AGW4ZavTB9?)mUbOoF`V7S=XM;#3EUpR+^oHtdV!GK^nXzCu>tpR|89 zdD{fnvCaN^^LL%amZ^}-E+214g&^56rpdc@yv0b<3}Ys?)f|fXN4oHf$six)-@<;W&&_kj z-B}M5U*1sb4)77aR=@%I?|Wkn-QJVuA96an25;~!gq(g1@O-5VGo7y&E_srxL6ZfS z*R%$gR}dyONgju*D&?geiSj7SZ@ftyA|}(*Y4KbvU!YLsi1EDQQCnb+-cM=K1io78o!v*);o<XwjaQH%)uIP&Zm?)Nfbfn;jIr z)d#!$gOe3QHp}2NBak@yYv3m(CPKkwI|{;d=gi552u?xj9ObCU^DJFQp4t4e1tPzM zvsRIGZ6VF+{6PvqsplMZWhz10YwS={?`~O0Ec$`-!klNUYtzWA^f9m7tkEzCy<_nS z=&<(awFeZvt51>@o_~>PLs05CY)$;}Oo$VDO)?l-{CS1Co=nxjqben*O1BR>#9`0^ zkwk^k-wcLCLGh|XLjdWv0_Hg54B&OzCE^3NCP}~OajK-LuRW53CkV~Su0U>zN%yQP zH8UH#W5P3-!ToO-2k&)}nFe`t+mdqCxxAHgcifup^gKpMObbox9LFK;LP3}0dP-UW z?Zo*^nrQ6*$FtZ(>kLCc2LY*|{!dUn$^RW~m9leoF|@Jy|M5p-G~j%+P0_#orRKf8 zvuu5<*XO!B?1E}-*SY~MOa$6c%2cM+xa8}_8x*aVn~57v&W(0mqN1W`5a7*VN{SUH zXz98DDyCnX2EPl-`Lesf`=AQT%YSDb`$%;(jUTrNen$NPJrlpPDP}prI>Ml!r6bCT;mjsg@X^#&<}CGf0JtR{Ecwd&)2zuhr#nqdgHj+g2n}GK9CHuwO zk>oZxy{vcOL)$8-}L^iVfJHAGfwN$prHjYV0ju}8%jWquw>}_W6j~m<}Jf!G?~r5&Rx)!9JNX!ts#SGe2HzobV5); zpj@&`cNcO&q+%*<%D7za|?m5qlmFK$=MJ_iv{aRs+BGVrs)98BlN^nMr{V_fcl_;jkzRju+c-y?gqBC_@J0dFLq-D9@VN&-`R9U;nv$Hg?>$oe4N&Ht$V_(JR3TG^! zzJsbQbi zFE6-{#9{G{+Z}ww!ycl*7rRdmU#_&|DqPfX3CR1I{Kk;bHwF6jh0opI`UV2W{*|nn zf_Y@%wW6APb&9RrbEN=PQRBEpM(N1w`81s=(xQj6 z-eO0k9=Al|>Ej|Mw&G`%q8e$2xVz1v4DXAi8G};R$y)ww638Y=9y$ZYFDM$}vzusg zUf+~BPX>(SjA|tgaFZr_e0{)+z9i6G#lgt=F_n$d=beAt0Sa0a7>z-?vcjl3e+W}+ z1&9=|vC=$co}-Zh*%3588G?v&U7%N1Qf-wNWJ)(v`iO5KHSkC5&g7CrKu8V}uQGcfcz zmBz#Lbqwqy#Z~UzHgOQ;Q-rPxrRNvl(&u6ts4~0=KkeS;zqURz%!-ERppmd%0v>iRlEf+H$yl{_8TMJzo0 z>n)`On|7=WQdsqhXI?#V{>+~}qt-cQbokEbgwV3QvSP7&hK4R{Z{aGHVS3;+h{|Hz z6$Js}_AJr383c_+6sNR|$qu6dqHXQTc6?(XWPCVZv=)D#6_;D_8P-=zOGEN5&?~8S zl5jQ?NL$c%O)*bOohdNwGIKM#jSAC?BVY={@A#c9GmX0=T(0G}xs`-%f3r=m6-cpK z!%waekyAvm9C3%>sixdZj+I(wQlbB4wv9xKI*T13DYG^T%}zZYJ|0$Oj^YtY+d$V$ zAVudSc-)FMl|54n=N{BnZTM|!>=bhaja?o7s+v1*U$!v!qQ%`T-6fBvmdPbVmro&d zk07TOp*KuxRUSTLRrBj{mjsnF8`d}rMViY8j`jo~Hp$fkv9F_g(jUo#Arp;Xw0M$~ zRIN!B22~$kx;QYmOkos@%|5k)!QypDMVe}1M9tZfkpXKGOxvKXB!=lo`p?|R1l=tA zp(1}c6T3Fwj_CPJwVsYtgeRKg?9?}%oRq0F+r+kdB=bFUdVDRPa;E~~>2$w}>O>v=?|e>#(-Lyx?nbg=ckJ#5U6;RT zNvHhXk$P}m9wSvFyU3}=7!y?Y z=fg$PbV8d7g25&-jOcs{%}wTDKm>!Vk);&rr;O1nvO0VrU&Q?TtYVU=ir`te8SLlS zKSNmV=+vF|ATGg`4$N1uS|n??f}C_4Sz!f|4Ly8#yTW-FBfvS48Tef|-46C(wEO_%pPhUC5$-~Y?!0vFZ^Gu`x=m7X99_?C-`|h zfmMM&Y@zdfitA@KPw4Mc(YHcY1)3*1xvW9V-r4n-9ZuBpFcf{yz+SR{ zo$ZSU_|fgwF~aakGr(9Be`~A|3)B=9`$M-TWKipq-NqRDRQc}ABo*s_5kV%doIX7LRLRau_gd@Rd_aLFXGSU+U?uAqh z8qusWWcvgQ&wu{|sRXmv?sl=xc<$6AR$+cl& zFNh5q1~kffG{3lDUdvEZu5c(aAG~+64FxdlfwY^*;JSS|m~CJusvi-!$XR`6@XtY2 znDHSz7}_Bx7zGq-^5{stTRy|I@N=>*y$zz>m^}^{d&~h;0kYiq8<^Wq7Dz0w31ShO^~LUfW6rfitR0(=3;Uue`Y%y@ex#eKPOW zO~V?)M#AeHB2kovn1v=n^D?2{2jhIQd9t|_Q+c|ZFaWt+r&#yrOu-!4pXAJuxM+Cx z*H&>eZ0v8Y`t}8{TV6smOj=__gFC=eah)mZt9gwz>>W$!>b3O;Rm^Ig*POZP8Rl0f zT~o=Nu1J|lO>}xX&#P58%Yl z83`HRs5#32Qm9mdCrMlV|NKNC+Z~ z9OB8xk5HJ>gBLi+m@(pvpw)1(OaVJKs*$Ou#@Knd#bk+V@y;YXT?)4eP9E5{J%KGtYinNYJUH9PU3A}66c>Xn zZ{Bn0<;8$WCOAL$^NqTjwM?5d=RHgw3!72WRo0c;+houoUA@HWLZM;^U$&sycWrFd zE7ekt9;kb0`lps{>R(}YnXlyGY}5pPd9zBpgXeJTY_jwaJGSJQC#-KJqmh-;ad&F- z-Y)E>!&`Rz!HtCz>%yOJ|v(u7P*I$jqEY3}(Z-orn4 zlI?CYKNl`6I){#2P1h)y(6?i;^z`N3bxTV%wNvQW+eu|x=kbj~s8rhCR*0H=iGkSj zk23lr9kr|p7#qKL=UjgO`@UnvzU)`&fI>1Qs7ubq{@+lK{hH* zvl6eSb9%yngRn^T<;jG1SVa)eA>T^XX=yUS@NCKpk?ovCW1D@!=@kn;l_BrG;hOTC z6K&H{<8K#dI(A+zw-MWxS+~{g$tI7|SfP$EYKxA}LlVO^sT#Oby^grkdZ^^lA}uEF zBSj$weBJG{+Bh@Yffzsw=HyChS(dtLE3i*}Zj@~!_T-Ay7z=B)+*~3|?w`Zd)Co2t zC&4DyB!o&YgSw+fJn6`sn$e)29`kUwAc+1MND7YjV%lO;H2}fNy>hD#=gT ze+-aFNpyKIoXY~Vq-}OWPBe?Rfu^{ps8>Xy%42r@RV#*QV~P83jdlFNgkPN=T|Kt7 zV*M`Rh*30&AWlb$;ae130e@}Tqi3zx2^JQHpM>j$6x`#{mu%tZlwx9Gj@Hc92IuY* zarmT|*d0E~vt6<+r?W^UW0&#U&)8B6+1+;k^2|FWBRP9?C4Rk)HAh&=AS8FS|NQaZ z2j!iZ)nbEyg4ZTp-zHwVlfLC~tXIrv(xrP8PAtR{*c;T24ycA-;auWsya-!kF~CWZ zw_uZ|%urXgUbc@x=L=_g@QJ@m#5beS@6W195Hn7>_}z@Xt{DIEA`A&V82bc^#!q8$ zFh?z_Vn|ozJ;NPd^5uu(9tspo8t%&-U9Ckay-s@DnM*R5rtu|4)~e)`z0P-sy?)kc zs_k&J@0&0!q4~%cKL)2l;N*T&0;mqX5T{Qy60%JtKTQZ-xb%KOcgqwJmb%MOOKk7N zgq})R_6**{8A|6H?fO+2`#QU)p$Ei2&nbj6TpLSIT^D$|`TcSeh+)}VMb}LmvZ{O| ze*1IdCt3+yhdYVxcM)Q_V0bIXLgr6~%JS<<&dxIgfL=Vnx4YHuU@I34JXA|+$_S3~ zy~X#gO_X!cSs^XM{yzDGNM>?v(+sF#<0;AH^YrE8smx<36bUsHbN#y57K8WEu(`qHvQ6cAZPo=J5C(lSmUCZ57Rj6cx!e^rfaI5%w}unz}4 zoX=nt)FVNV%QDJH`o!u9olLD4O5fl)xp+#RloZlaA92o3x4->?rB4`gS$;WO{R;Z3>cG3IgFX2EA?PK^M}@%1%A;?f6}s&CV$cIyEr#q5;yHdNZ9h{| z-=dX+a5elJoDo?Eq&Og!nN6A)5yYpnGEp}?=!C-V)(*~z-+?kY1Q7qs#Rsy%hu_60rdbB+QQNr?S1 z?;xtjUv|*E3}HmuNyB9aFL5H~3Ho0UsmuMZELp1a#CA1g`P{-mT?BchuLEtK}!QZ=3AWakRu~?f9V~3F;TV`5%9Pcs_$gq&CcU}r8gOO zC2&SWPsSG{&o-LIGTBqp6SLQZPvYKp$$7L4WRRZ0BR$Kf0I0SCFkqveCp@f)o8W)! z$%7D1R`&j7W9Q9CGus_)b%+B#J2G;l*FLz#s$hw{BHS~WNLODV#(!u_2Pe&tMsq={ zdm7>_WecWF#D=?eMjLj=-_z`aHMZ=3_-&E8;ibPmM}61i6J3is*=dKf%HC>=xbj4$ zS|Q-hWQ8T5mWde6h@;mS+?k=89?1FU<%qH9B(l&O>k|u_aD|DY*@~(`_pb|B#rJ&g zR0(~(68fpUPz6TdS@4JT5MOPrqDh5_H(eX1$P2SQrkvN8sTxwV>l0)Qq z0pzTuvtEAKRDkKGhhv^jk%|HQ1DdF%5oKq5BS>szk-CIke{%js?~%@$uaN3^Uz6Wf z_iyx{bZ(;9y4X&>LPV=L=d+A}7I4GkK0c1Xts{rrW1Q7apHf-))`BgC^0^F(>At1* za@e7{lq%yAkn*NH8Q1{@{lKhRg*^TfGvv!Sn*ed*x@6>M%aaqySxR|oNadYt1mpUZ z6H(rupHYf&Z z29$5g#|0MX#aR6TZ$@eGxxABRKakDYtD%5BmKp;HbG_ZbT+=81E&=XRk6m_3t9PvD zr5Cqy(v?gHcYvYvXkNH@S#Po~q(_7MOuCAB8G$a9BC##gw^5mW16cML=T=ERL7wsk zzNEayTG?mtB=x*wc@ifBCJ|irFVMOvH)AFRW8WE~U()QT=HBCe@s$dA9O!@`zAAT) zaOZ7l6vyR+Nk_OOF!ZlZmjoImKh)dxFbbR~z(cMhfeX1l7S_`;h|v3gI}n9$sSQ>+3@AFAy9=B_y$)q;Wdl|C-X|VV3w8 z2S#>|5dGA8^9%Bu&fhmVRrTX>Z7{~3V&0UpJNEl0=N32euvDGCJ>#6dUSi&PxFW*s zS`}TB>?}H(T2lxBJ!V#2taV;q%zd6fOr=SGHpoSG*4PDaiG0pdb5`jelVipkEk%FV zThLc@Hc_AL1#D&T4D=w@UezYNJ%0=f3iVRuVL5H?eeZM}4W*bomebEU@e2d`M<~uW zf#Bugwf`VezG|^Qbt6R_=U0}|=k;mIIakz99*>FrsQR{0aQRP6ko?5<7bkDN8evZ& zB@_KqQG?ErKL=1*ZM9_5?Pq%lcS4uLSzN(Mr5=t6xHLS~Ym`UgM@D&VNu8e?_=nSFtF$u@hpPSmI4Vo_t&v?>$~K4y(O~Rb*(MFy_igM7 z*~yYUyR6yQgzWnWMUgDov!!g=lInM+=lOmOk4L`O?{i&qxy&D*_qorRbDwj6?)!ef z#JLd7F6Z2I$S0iYI={rZNk*<{HtIl^mx=h>Cim*04K4+Z4IJtd*-)%6XV2(MCscPiw_a+y*?BKbTS@BZ3AUao^%Zi#PhoY9Vib4N>SE%4>=Jco0v zH_Miey{E;FkdlZSq)e<{`+S3W=*ttvD#hB8w=|2aV*D=yOV}(&p%0LbEWH$&@$X3x~CiF-?ejQ*N+-M zc8zT@3iwkdRT2t(XS`d7`tJQAjRmKAhiw{WOqpuvFp`i@Q@!KMhwKgsA}%@sw8Xo5Y=F zhRJZg)O4uqNWj?V&&vth*H#je6T}}p_<>!Dr#89q@uSjWv~JuW(>FqoJ5^ho0%K?E z9?x_Q;kmcsQ@5=}z@tdljMSt9-Z3xn$k)kEjK|qXS>EfuDmu(Z8|(W?gY6-l z@R_#M8=vxKMAoi&PwnaIYw2COJM@atcgfr=zK1bvjW?9B`-+Voe$Q+H$j!1$Tjn+* z&LY<%)L@;zhnJlB^Og6I&BOR-m?{IW;tyYC%FZ!&Z>kGjHJ6cqM-F z&19n+e1=9AH1VrVeHrIzqlC`w9=*zfmrerF?JMzO&|Mmv;!4DKc(sp+jy^Dx?(8>1 zH&yS_4yL7m&GWX~mdfgH*AB4{CKo;+egw=PrvkTaoBU+P-4u?E|&!c z)DKc;>$$B6u*Zr1SjUh2)FeuWLWHl5TH(UHWkf zLs>7px!c5n;rbe^lO@qlYLzlDVp(z?6rPZel=YB)Uv&n!2{+Mb$-vQl=xKw( zve&>xYx+jW_NJh!FV||r?;hdP*jOXYcLCp>DOtJ?2S^)DkM{{Eb zS$!L$e_o0(^}n3tA1R3-$SNvgBq;DOEo}fNc|tB%%#g4RA3{|euq)p+xd3I8^4E&m zFrD%}nvG^HUAIKe9_{tXB;tl|G<%>yk6R;8L2)KUJw4yHJXUOPM>(-+jxq4R;z8H#>rnJy*)8N+$wA$^F zN+H*3t)eFEgxLw+Nw3};4WV$qj&_D`%ADV2%r zJCPCo%{=z7;`F98(us5JnT(G@sKTZ^;2FVitXyLe-S5(hV&Ium+1pIUB(CZ#h|g)u zSLJJ<@HgrDiA-}V_6B^x1>c9B6%~847JkQ!^KLZ2skm;q*edo;UA)~?SghG8;QbHh z_6M;ouo_1rq9=x$<`Y@EA{C%6-pEV}B(1#sDoe_e1s3^Y>n#1Sw;N|}8D|s|VPd+g z-_$QhCz`vLxxrVMx3ape1xu3*wjx=yKSlM~nFgkNWb4?DDr*!?U)L_VeffF<+!j|b zZ$Wn2$TDv3C3V@BHpSgv3JUif8%hk%OsGZ=OxH@8&4`bbf$`aAMchl^qN>Eyu3JH} z9-S!x8-s4fE=lad%Pkp8hAs~u?|uRnL48O|;*DEU! zuS0{cpk%1E0nc__2%;apFsTm0bKtd&A0~S3Cj^?72-*Owk3V!ZG*PswDfS~}2<8le z5+W^`Y(&R)yVF*tU_s!XMcJS`;(Tr`J0%>p=Z&InR%D3@KEzzI+-2)HK zuoNZ&o=wUC&+*?ofPb0a(E6(<2Amd6%uSu_^-<1?hsxs~0K5^f(LsGqgEF^+0_H=uNk9S0bb!|O8d?m5gQjUKevPaO+*VfSn^2892K~%crWM8+6 z25@V?Y@J<9w%@NXh-2!}SK_(X)O4AM1-WTg>sj1{lj5@=q&dxE^9xng1_z9w9DK>| z6Iybcd0e zyi;Ew!KBRIfGPGytQ6}z}MeXCfLY0?9%RiyagSp_D1?N&c{ zyo>VbJ4Gy`@Fv+5cKgUgs~na$>BV{*em7PU3%lloy_aEovR+J7TfQKh8BJXyL6|P8un-Jnq(ghd!_HEOh$zlv2$~y3krgeH;9zC}V3f`uDtW(%mT#944DQa~^8ZI+zAUu4U(j0YcDfKR$bK#gvn_{JZ>|gZ5+)u?T$w7Q%F^;!Wk?G z(le7r!ufT*cxS}PR6hIVtXa)i`d$-_1KkyBU>qmgz-=T};uxx&sKgv48akIWQ89F{ z0XiY?WM^~;|T8zBOr zs#zuOONzH?svv*jokd5SK8wG>+yMC)LYL|vLqm^PMHcT=`}V$=nIRHe2?h)8WQa6O zPAU}d`1y(>kZiP~Gr=mtJLMu`i<2CspL|q2DqAgAD^7*$xzM`PU4^ga`ilE134XBQ z99P(LhHU@7qvl9Yzg$M`+dlS=x^(m-_3t|h>S}E0bcFMn=C|KamQ)=w2^e)35p`zY zRV8X?d;s^>Cof2SPR&nP3E+-LCkS0J$H!eh8~k0qo$}00b=7!H_I2O+Ro@3O$nPdm ztmbOO^B+IHzQ5w>@@@J4cKw5&^_w6s!s=H%&byAbUtczPQ7}wfTqxxtQNfn*u73Qw zGuWsrky_ajPx-5`R<)6xHf>C(oqGf_Fw|-U*GfS?xLML$kv;h_pZ@Kk$y0X(S+K80 z6^|z)*`5VUkawg}=z`S;VhZhxyDfrE0$(PMurAxl~<>lfZa>JZ288ULK7D` zl9|#L^JL}Y$j*j`0-K6kH#?bRmg#5L3iB4Z)%iF@SqT+Lp|{i`m%R-|ZE94Np7Pa5 zCqC^V3}B(FR340pmF*qaa}M}+h6}mqE~7Sh!9bDv9YRT|>vBNAqv09zXHMlcuhKD| zcjjA(b*XCIwJ33?CB!+;{)vX@9xns_b-VO{i0y?}{!sdXj1GM8+$#v>W7nw;+O_9B z_{4L;C6ol?(?W0<6taGEn1^uG=?Q3i29sE`RfYCaV$3DKc_;?HsL?D_fSYg}SuO5U zOB_f4^vZ_x%o`5|C@9C5+o=mFy@au{s)sKw!UgC&L35aH(sgDxRE2De%(%OT=VUdN ziVLEmdOvJ&5*tCMKRyXctCwQu_RH%;m*$YK&m;jtbdH#Ak~13T1^f89tn`A%QEHWs~jnY~E}p_Z$XC z=?YXLCkzVSK+Id`xZYTegb@W8_baLt-Fq`Tv|=)JPbFsKRm)4UW;yT+J`<)%#ue9DPOkje)YF2fsCilK9MIIK>p*`fkoD5nGfmLwt)!KOT+> zOFq*VZktDDyM3P5UOg`~XL#cbzC}eL%qMB=Q5$d89MKuN#$6|4gx_Jt0Gfn8w&q}%lq4QU%6#jT*MRT% zrLz~C8FYKHawn-EQWN1B75O&quS+Z81(zN)G>~vN8VwC+e+y(`>HcxC{MrJ;H1Z4k zZWuv$w_F0-Ub%MVcpIc){4PGL^I7M{>;hS?;eH!;gmcOE66z3;Z1Phqo(t zVP(Hg6q#0gIKgsg7L7WE!{Y#1nI(45tx2{$34dDd#!Z0NIyrm)HOn5W#7;f4pQci# zDW!FI(g4e668kI9{2+mLwB+=#9bfqgX%!B34V-$wwSN(_cm*^{y0jQtv*4}eO^sOV z*9xoNvX)c9isB}Tgx&ZRjp3kwhTVK?r9;n!x>^XYT z@Q^7zp{rkIs{2mUSE^2!Gf6$6;j~&4=-0cSJJDizZp6LTe8b45;{AKM%v99}{{FfC zz709%u0mC=1KXTo(=TqmZQ;c?$M3z(!xah>aywrj40sc2y3rKFw4jCq+Y+u=CH@_V zxz|qeTwa>+<|H%8Dz5u>ZI5MmjTFwXS-Fv!TDd*`>3{krWoNVx$<133`(ftS?ZPyY z&4@ah^3^i`vL$BZa>O|Nt?ucewzsF)0zX3qmM^|waXr=T0pfIb0*$AwU=?Ipl|1Y; z*Pk6{C-p4MY;j@IJ|DW>QHZQJcp;Z~?8(Q+Kk3^0qJ}SCk^*n4W zu9ZFwLHUx-$6xvaQ)SUQcYd6fF8&x)V`1bIuX@>{mE$b|Yd(qomn3;bPwnDUc0F=; zh*6_((%bqAYQWQ~odER?h>1mkL4kpb3s7`0m@rDKGU*oyF)$j~Ffd4fXV$?`f~rHf zB%Y)@5SXZvfwm10RY5X?TEo)PK_`L6qgBp=#>fO49$D zDq8Ozj0q6213tV5Qq=;fZ0$|KroY{Dz=l@lU^J)?Ko@ti20TRplXzphBi>XGx4bou zEWrkNjz0t5j!_ke{g5I#PUlEU$Km8g8TE|XK=MkU@PT4T><2OVamoK;wJ}3X0L$vX zgd7gNa359*nc)R-0!`2X@FOTB`+oETOPc=ubp5R)VQgY+5BTZZJ2?9QwnO=dnulIUF3gFn;BODC2)65)HeVd%t86sL7Rv^Y+nbn+&l z6BAJY(ETvwI)Ts$aiE8rht4KD*qNyE{8{x6R|%akbTBzw;2+6Echkt+W+`u^XX z_z&x%n*=4<|!MJu@}isLc4AW#{m2if&A5T5g&~ ziuMQeS*U5sL6J698wOd)K@oK@1{peP5&Esut<#VH^u)gp`9H4)`uE!2$>RTctN+^u z=ASkePDZA-X8)rp%D;p*~P?*a_=*Kwc<^>QSH|^<0>o37lt^+Mj1;4YvJ(JR-Y+?%Nu}JAYj5 z_Qc5%Ao#F?q32i?ZaN2OSNhWL;2oDEw_({7ZbgUjna!Fqn3NzLM@-EWFPZVmc>(fZ z0&bF-Ch#p9C{YJT9Rcr3+Y_uR^At1^BxZ#eo>$PLJF3=;t_$2|t+_6gg5(j{TmjYU zK12c&lE?Eh+2u2&6Gf*IdKS&6?rYbSEKBN!rv{YCm|Rt=UlPcW9j`0o6{66#y5t9C zruFA2iKd=H%jHf%ypOkxLnO8#H}#Zt{8p!oi6)7#NqoF({t6|J^?1e*oxqng9Q2Cc zg%5Vu!em)}Yuj?kaP!D?b?(C*w!1;>R=j90+RTkyEXz+9CufZ$C^umX^+4|JYaO<5 zmIM3#dv`DGM;@F6;(t!WngZSYzHx?9&$xEF70D1BvfVj<%+b#)vz)2iLCrTeYzUcL z(OBnNoG6Le%M+@2oo)&jdOg=iCszzv59e zDRCeaX8l1hC=8LbBt|k5?CXgep=3r9BXx1uR8!p%Z|0+4Xro=xi0G!e{c4U~1j6!) zH6adq0}#l{%*1U(Cb%4AJ}VLWKBPi0MoKFaQH6x?^hQ!6em@993xdtS%_dmevzeNl z(o?YlOI=jl(`L9^ z0O+H9k$_@`6L13eTT8ci-V0ljDMD|0ifUw|Q-Hep$xYj0hTO@0%IS^TD4b4n6EKDG z??uM;MEx`s98KYN(K0>c!C3HZdZ{+_53DO%9k5W%pr6yJusQAv_;IA}925Y%;+!tY z%2k!YQmLLOr{rF~!s<3-WEUs)`ix_mSU|cNRBIWxOox_Yb7Z=~Q45ZNe*u|m^|)d* zog=i>`=bTe!|;8F+#H>EjIMcgWcG2ORD`w0WD;YZAy5#s{65~qfI6o$+Ty&-hyMyJ z3Ra~t>R!p=5ZpxA;QkDAoPi4sYOP6>LT+}{xp}tk+<0k^CKCFdNYG(Es>p0gqD)jP zWOeX5G;9(m@?GOG7g;e74i_|SmE?`B2i;sLYwRWKLy0RLW!Hx`=!LH3&k=FuCsM=9M4|GqzA)anEHfxkB z?2iK-u(DC_T1};KaUT@3nP~LEcENT^UgPvp!QC@Dw&PVAhaEYrPey{nkcn(ro|r7XUz z%#(=$7D8uP_uU-oPHhd>>^adbCSQetgSG`e$U|7mr!`|bU0aHl_cmL)na-5x1#OsVE#m*+k84Y^+UMeSAa zbrVZHU=mFwXEaGHtXQq`2ZtjfS!B2H{5A<3(nb-6ARVV8kEmOkx6D2x7~-6hl;*-*}2Xz;J#a8Wn;_B5=m zl3dY;%krf?i-Ok^Pal-}4F`{F@TYPTwTEhxpZK5WCpfD^UmM_iYPe}wpE!Djai6_{ z*pGO=WB47#Xjb7!n2Ma)s^yeR*1rTxp`Mt4sfA+`HwZf%!7ZqGosPkw69`Ix5Ku6G z@Pa;pjzV&dn{M=QDx89t?p?d9gna*}jBly*#1!6}5K<*xDPJ{wv4& zM$17DFd~L*Te3A%yD;Dp9UGWTjRxAvMu!j^Tbc}2v~q^59d4bz zvu#!IJCy(BcWTc`;v$9tH;J%oiSJ_i7s;2`JXZF+qd4C)vY!hyCtl)sJIC{ebI*0> z@x>;EzyBv>AI-~{D6l6{ST=em*U( z(r$nuXY-#CCi^8Z2#v#UXOt`dbYN1z5jzNF2 z411?w)whZrfA20;nl&C1Gi+gk<`JSm+{|*2o<< zqM#@z_D`Cn|0H^9$|Tah)0M_X4c37|KQ*PmoT@%xHc3L1ZY6(p(sNXHa&49Frzto& zR`c~ClHpE~4Z=uKa5S(-?M8EJ$zt0&fJk~p$M#fGN1-y$7!37hld`Uw>Urri(DxLa;=#rK0g4J)pXMC zxzraOVw1+kNWpi#P=6(qxf`zSdUC?D$i`8ZI@F>k6k zz21?d+dw7b&i*>Kv5L(LH-?J%@WnqT7j#qZ9B>|Zl+=> z^U-pV@1y_ptHo4hl^cPRWewbLQ#g6XYQ@EkiP z;(=SU!yhjHp%1&MsU`FV1Z_#K1&(|5n(7IHbx&gG28HNT)*~-BQi372@|->2Aw5It z0CBpUcMA*QvsPy)#lr!lIdCi@1k4V2m!NH)%Px(vu-r(Q)HYc!p zJ^$|)j^E#q#QOgcb^pd74^JUi7fUmMiNP_o*lvx*q%_odv49Dsv$NV;6J z9GOXKomA{2Pb{w}&+yHtH?IkJJu~}Z?{Uk++2mB8zyvh*xhHKE``99>y#TdD z&(MH^^JHf;g(Tbb^&8P*;_i*2&fS$7${3WJtV7K&&(MBV2~)2KB3%cWg#1!VE~k#C z!;A;?p$s{ihyojEZz+$I1)L}&G~ml=udD9qh>Tu(ylv)?YcJT3ihapi!zgPtWb*CP zlLLJSRCj-^w?@;RU9aL2zDZY1`I3d<&OMuW=c3$o0#STpv_p3b9Wtbql>w^bBi~u4 z3D8KyF?YE?=HcKk!xcp@Cigvzy=lnFgc^9c%(^F22BWYNAYRSho@~*~S)4%AhEttv zvq>7X!!EWKG?mOd9&n>vvH1p4VzE?HCuxT-u+F&mnsfDI^}*-d00-KAauEaXqg3k@ zy#)MGX!X;&3&0s}F3q40ZmVM$(H3CLfpdL?hB6nVqMxX)q=1b}o_PG%r~hZ4gUfSp zOH4qlEOW4OMUc)_m)fMR_rl^pCfXc{$fQbI*E&mV77}kRF z&{<06AJyJ!e863o-V>FA1a9Eemx6>^F$~9ppt()ZbPGfg_NdRXBWoZnDy2;#ODgf! zgl?iOcF7Meo|{AF>KDwTgYrJLb$L2%%BEtO>T$C?|9bAB&}s;gI?lY#^tttY&hfr# zKhC+&b-rpg_?~uVK%S@mQleU#_xCsvIPK*<`E0fHE1&!J7!xD#IB|SSPW6-PyuqGn3^M^Rz%WT{e?OI^svARX&SAdU77V(C~ zM$H{Kg59op{<|8ry9ecfP%=kFm(-!W&?U0@<%z*+!*<e0XesMxRFu9QnGqun6R_%T+B%&9Dtk?*d$Q zb~>84jEAPi@&F@3wAa^Lzc(AJz5gsfZ7J53;@D<;Klpl?sK&u@gie`~vTsbOE~Cd4 z%kr56mI|#b(Jk&;p6plVwmNB0H@0SmgdmjIn5Ne@)}7Vty(yb2t3ev@22AE^s!KaN zyQ>j+F3w=wnx7w@FVCRe+`vUH)3gW%_72fxzqX!S&!dchdkRiHbXW1FMrIIBwjsai8`CB2r4mAbwp%rrO>3B$Zw;9=%fXI9B{d(UzVap7u z6piC-FQ)>}VOEuPpuqznpY`hN4dGa_1Xz9rVg(;H$5Te^F0dDv*gz9JS<|>>U0J^# z6)(4ICh+N_Q`Ft0hF|3fSHs*?a=XC;e`sJaU9&d>X4l?1W=|fr!5ShD|nv$GK;j46@BV6+{oRbWfqOBRb!ir88XD*SbC(LF}I1h#6@dvK%Toe%@ zhDyG$93H8Eu&gCYddP58iF3oQH*zLbNI;rN@E{T9%A8!=v#JLxKyUe}e}BJpB{~uN zqgxRgo0*-@-iaHPV8bTOH(rS(huwK1Xg0u+e!`(Irzu@Bld&s5&bWgVc@m7;JgELd zimVs`>vQ}B_1(2#rv#N9O`fJpVfPc7V2nv34PC);Dzbb;p!6pqHzvy?2pD&1NE)?A zt(t-ucqy@wn9`^MN5apa7K|L=9>ISC>xoc#>{@e}m#YAAa1*8-RUMKwbm|;5p>T`Z zNf*ph@tnF{gmDa3uwwN(g=`Rh)4!&)^oOy@VJaK4lMT&5#YbXkl`q?<*XtsqD z9PRK6bqb)fJw0g-^a@nu`^?71k|m3RPRjt;pIkCo1{*pdqbVs-Yl>4E>3fZx3Sv44grW=*qdSoiZ9?X0wWyO4`yDHh2E!9I!ZFi zVL8|VtW38}BOJHW(Ax#KL_KQzarbuE{(%TA)AY)@tY4%A%P%SqIU~8~-Lp3qY;U-} z`h_Gel7;K1h}7$_5ZZT0&%$Lxxr-<89V&&TCsu}LL#!xpQ1O31jaa{U34~^le*Y%L za?7$>Jk^k^pS^_M&cDs}NgXlR>16AHkSK-4TRaJSh#h&p!-!vQY%f+bmn6x`4fwTp z$727L^y`~!exvmE^W&#@uY!NxJi`g!i#(++!)?iJ(1)2Wk;RN zFK&O4eTkP$Xn~4bB|q8y(btx$R#D`O@epi4ofcETrx!IM(kWNEe42Qh(8*KqfP(c0 zouBl6>Fc_zM+V;F3znbo{x#%!?mH3`_ANJ?y7ppxS@glg#S9^MXu|FM&ynpz3o&Qh z2ujAHLF3($pH}0jXQsa#?t--TnF1P73b?4`KeJ9^qK-USHE)4!IYgMn-7z|=ALF5SNGkrtPG@Y~niUQV2?g$vzJN3nZ{7;HZHzWAeQ;5P|@Tl3YHpyznGG4-f4=XflwSJY+58-+wf?~Fg@1p1wkzuu-RF3j2JX37SQUc? zQ4v%`V8z9ZVZVqS8h|@@RpD?n0W<=hk=3Cf8R?d^9YK&e9ZybFY%jdnA)PeHvtBe- zhMLD+SSteHBq*q)d6x{)s1UrsO!byyLS$58WK;sqip$Mk{l)Y(_6hEIBsIjCr5t>( z7CdKUrJTrW%qZ#1z^n*Lb8#VdfzPw~OIL76aC+Rhr<~;4Tl!sw?Rj6hXj4XWa#6Tp z@)kJ~qOV)^Rh*-?aG>ic2*NlC2M7&LUzc9RT6WM%Cpe78`iAowe!>(T0jo&ivn8-7 zs{Qa@cGy$rE-3AY0V(l8wjI^uB8Lchj@?L}fYal^>T9z;8juH@?rG&g-t+R2dVDBe zq!K%{e-rT5jX19`(bP23LUN4+_zh2KD~EAYzhpEO3MUG8@}uBHH@4J zd`>_(K4q&>*k82(dDuC)X6JuPrBBubOg7qZ{?x!r@{%0);*`h*^F|%o?&1wX?Wr4b z1~&cy#PUuES{C#xJ84!z<1tp9sfrR(i%Tu^jnXy;4`Xk;AQCdFC@?V%|; zySdC7qS|uQRcH}EFZH%mMB~7gi}a0utE}ZE_}8PQH8f;H%PN41Cb9R%w5Oi5el^fd z$n{3SqLCnrF##x?4sa^r!O$7NX!}&}V;0ZGQ&K&i%6$3C_dR%I7%gdQ;KT6YZiQrW zk%q<74oVBV>@}CvJ4Wj!d^?#Zwq(b$E1ze4$99DuNg?6t9H}k_|D7KWD7i0-g*EO7 z;5{hSIYE4DMOK3H%|f5Edx+S0VI0Yw!tsaRS2&Il2)ea^8R5TG72BrJue|f_{2UHa z@w;^c|K3da#$TB0P3;MPlF7RuQeXT$ zS<<|C0OF(k)>fr&wOB=gP8!Qm>F41u;3esv7_0l%QHt(~+n; zf!G6%hp;Gfa9L9=AceiZs~tK+Tf*Wof=4!u{nIO90jH@iS0l+#%8=~%ASzFv7zqSB^?!@N7)kp0t&tCGLmzXSRMRyxCmCYUD2!B`? zhs$4%KO~m=VFk3Buv9osha{v+mAEq=ik3RdK@;WWTV_g&-$U4IM{1IhGX{pAu%Z&H zFfwCpUsX%RKg);B@7OUzZ{Hn{q6Vv!3#8fAg!P$IEx<0vAx;GU%}0{VIsmFBPq_mb zpe^BChDK>sc-WLKl<6 zwbW|e&d&dv9Wu0goueyu>(JyPx1mz0v4E?cJjFuKF71Q1)AL8jHO$!fYT3(;U3Re* zPPOe%*O+@JYt1bW`!W_1!mN&=w3G9ru1XsmwfS~BJ))PhD(+_J_^N6j)sx5VwbWK| zwRyC?W<`pOCY)b#AS?rluxuuGf-AJ=D!M36l{ua?@SJ5>e!IBr3CXIxWw5xUZ@Xrw z_R@%?{>d%Ld4p}nEsiA@v*nc6Ah!MUs?GA7e5Q5lPpp0@`%5xY$C;{%rz24$;vR#* zBP=a{)K#CwIY%p} zXVdxTQ^HS@O&~eIftU+Qt^~(DGxrdi3k}DdT^I7Iy5SMOp$QuD8s;+93YQ!OY{eB24%xY7ml@|M7I(Nb@K_-?F;2?et|CKkuZK_>+>Lvg!>JE~wN`BI|_h6$qi!P)+K-1Hh(1;a`os z55)4Q{oJiA(lQM#;w#Ta%T0jDNXIPM_bgESMCDEg6rM33anEr}=|Fn6)|jBP6Y}u{ zv9@%7*#RI9;fv;Yii5CI+KrRdr0DKh=L>)eO4q$1zmcSmglsV`*N(x=&Wx`*v!!hn6X-l0 zP_m;X??O(skcj+oS$cIdKhfT%ABAzz3w^la-Ucw?yBPEC+=Pe_vU8nd-HV5YX6X8r zZih&j^eLU=%*;VzhUyoLF;#8QsEfmByk+Y~caBqSvQaaWf2a{JKB9B>V&r?l^rXaC z8)6AdR@Qy_BxQrE2Fk?ewD!SwLuMj@&d_n5RZFf7=>O>hzVE*seW3U?_p|R^CfoY`?|#x9)-*yjv#lo&zP=uI`M?J zbzC<^3x7GfXA4{FZ72{PE*-mNHyy59Q;kYG@BB~NhTd6pm2Oj=_ zizmD?MKVRkT^KmXuhsk?eRQllPo2Ubk=uCKiZ&u3Xjj~<(!M94c)Tez@9M1Gfs5JV z->@II)CDJOXTtPrQudNjE}Eltbjq>6KiwAwqvAKd^|g!exgLG3;wP+#mZYr`cy3#39e653d=jrR-ulW|h#ddHu(m9mFoW~2yE zz5?dB%6vF}+`-&-W8vy^OCxm3_{02royjvmwjlp+eQDzFVEUiyO#gLv%QdDSI#3W* z?3!lL8clTaNo-DVJw@ynq?q!%6hTQi35&^>P85G$TqNt78%9_sSJt2RThO|JzM$iL zg|wjxdMC2|Icc5rX*qPL(coL!u>-xxz-rFiC!6hD1IR%|HSRsV3>Kq~&vJ=s3M5y8SG%YBQ|{^l#LGlg!D?E>2yR*eV%9m$_J6VGQ~AIh&P$_aFbh zULr0Z$QE!QpkP=aAeR4ny<#3Fwyw@rZf4?Ewq`;mCVv}xaz+3ni+}a=k~P+yaWt^L z@w67!DqVf7D%7XtXX5xBW;Co|HvQ8WR1k?r2cZD%U;2$bsM%u8{JUJ5Z0k= zZJARv^vFkmWx15CB=rb=D4${+#DVqy5$C%bf`!T0+epLJLnh1jwCdb*zuCL}eEFvE z{rO1%gxg>1!W(I!owu*mJZ0@6FM(?C+d*CeceZRW_4id*D9p5nzMY&{mWqrJomjIZ z97ZNnZ3_%Hx8dn;H>p8m7F#^2;T%yZ3H;a&N7tm=Lvs&lgJLW{V1@h&6Vy~!+Ffbb zv(n3+v)_D$}dqd!2>Y2B)#<+o}LH#%ogGi2-?xRIH)1!SD)u-L65B&bsJTC=LiaF+YOCif2dUX6uAA|#+vNR z>U+KQekVGon)Yi<93(d!(yw1h3&X0N(PxN2{%vn}cnV?rYw z$N^}_o!XUB!mckL`yO1rnUaI4wrOeQ(+&k?2mi47hzxSD`N#-byqd1IhEoh!PGq>t z_MRy{5B0eKY>;Ao3z$RUU7U+i?iX^&r739F)itdrTpAi-NN0=?^m%?{A9Ly2pVv>Lqs6moTP?T2-AHqFD-o_ znVr|7OAS#AEH}h8SRPQ@NGG47dO}l=t07__+iK8nHw^(AHx&Wb<%jPc$$jl6_p(b$ z)!pi(0fQodCHfM)KMEMUR&UID>}m^(!{C^U7sBDOA)$VThRCI0_+2=( zV8mMq0R(#z;C|7$m>$>`tX+T|xGt(+Y48@ZYu#z;0pCgYgmMVbFb!$?%yhZqP_nhn zy4<#3P1oQ#2b51NU1mGnHP$cf0j-YOgAA}A$QoL6JVLcmExs(kU{4z;PBHJD%_=0F z>+sQV`mzijSIT7xn%PiDKHOujX;n|M&qr1T@rOxTdxtZ!&u&3HHFLYD5$RLQ=heur zb>+AFokUVQeJy-#LP*^)spt{mb@Mqe=A~-4p0b+Bt|pZ+@CY+%x}9f}izU5;4&QFE zO1bhg&A4uC1)Zb67kuowWY4xbo&J=%yoXlFB)&$d*-}kjBu|w!^zbD1YPc0-#XTJr z)pm2RDy%J3jlqSMq|o%xGS$bPwn4AqitC6&e?pqWcjWPt{3I{>CBy;hg0Umh#c;hU3RhCUX=8aR>rmd` z7Orw(5tcM{|-^J?ZAA9KP|)X6n9$-kvr#j5YDecTM6n z&07(nD^qb8hpF0B^z^pQ*%5ePYkv&FabrlI61ntiVp!!C8y^}|<2xgAd#FY=8b*y( zuQOuvy2`Ii^`VBNJB&R!0{hABYX55ooCAJSSevl4RPqEGb)iy_0H}v@vFwFzD%>#I>)3PsouQ+_Kkbqy*kKdHdfkN7NBcq%V{x^fSxgXpg7$bF& zj!6AQbDY(1u#1_A#1UO9AxiZaCVN2F0wGXdY*g@x$ByvUA?ePdide0dmr#}udE%K| z3*k}Vv2Ew2u1FXBaVA6aerI36R&rzEZeDDCl5!t0J=ug6kuNZzH>3i_VN`%BsaVB3 zQYw|Xub_SGf{)F{$ZX5`Jc!X!;eybjP+o$I{Z^Hsj@D=E{MnnL+TbC@HEU2DjG{3-LDGIbq()U87x4eS;JXnSh;lRlJ z>EL3D>wHt-+wTjQF$fGyDO$>d+(fq@bPpLBS~xA~R=3JPbS{tzN(u~m#Po!?H;IYv zE;?8%^vle|%#oux(Lj!YzBKv+Fd}*Ur-dCBoX*t{KeNM*n~ZPYJ4NNKkI^MFbz9!v z4(Bvm*Kc!-$%VFEewYJKz-CQN{`2}KX4*CeJEs+Q(!kI%hN1!1P6iOq?ovz}X0IOi z)YfWpwW@pK08^69#wSyCZkX9?uZD?C^@rw^Y?gLS_xmFKkooyx$*^5#cPqntNTtSG zlP>XLMj2!VF^0k#ole7`-c~*~+_T5ls?x4)ah(j8vo_ zwb%S8qoaZqY0-$ZI+ViIA_1~~rAH7K_+yFS{0rT@eQtTAdz#8E5VpwnW!zJ_^{Utv zlW5Iar3V5t&H4D6A=>?mq;G92;1cg9a2sf;gY9pJDVKn$DYdQlvfXq}zz8#LyPGq@ z+`YUMD;^-6w&r-82JL7mA8&M~Pj@aK!m{0+^v<|t%APYf7`}jGEhdYLqsHW-Le9TL z_hZZ1gbrz7$f9^fAzVIP30^KIz!!#+DRLL+qMszvI_BpOSmjtl$hh;&UeM{ER@INV zcI}VbiVTPoN|iSna@=7XkP&-4#06C};8ajbxJ4Gcq8(vWv4*&X8bM^T$mBk75Q92j z1v&%a;OSKc8EIrodmIiw$lOES2hzGDcjjB`kEDfJe{r}yE6`eZL zEB`9u>Cl0IsQ+t}`-cx}{6jqcANucqIB>Qmga_&<+80E2Q|VHHQ$YlAt{6`Qu`HA3 z03s0-sSlwbvgi&_R8s={6<~M^pGvBNjKOa>tWenzS8s zR>L7R5aZ=mSU{f?ib4Grx$AeFvtO5N|D>9#)ChH#Fny2maHWHOf2G=#<9Myot#+4u zWVa6d^Vseq_0=#AYS(-m$Lp;*8nC_6jXIjEM`omUmtH@QDs3|G)i4j*#_?#UYVZvJ z?YjT-?!4Q{BNun;dKBWLEw2C-VeAz`%?A>p;)PL}TAZn5j~HK>v1W&anteARlE+~+ zj>c(F;?qO3pXBb|#OZdQnm<4xWmn~;DR5SDMxt0UK_F^&eD|KZ=O;tO3vy4@4h^;2 zUL~-z`-P1aOe?|ZC1BgVsL)2^J-&vIFI%q@40w0{jjEfeVl)i9(~bt2z#2Vm)p`V_ z1;6$Ae7=YXk#=Qkd24Y23t&GvRxaOoad~NbJ+6pxqzJ>FY#Td7@`N5xp!n(c!=RE& z&<<@^a$_Ys8jqz4|5Nk#FY$~|FPC0`*a5HH!|Gssa9=~66&xG9)|=pOOJ2KE5|YrR zw!w6K2aC=J$t?L-;}5hn6mHd%hC;p8P|Dgh6D>hGnXPgi;6r+eA=?f72y9(Cf_ho{ zH6#)uD&R=73^$$NE;5piWX2bzR67fQ)`b=85o0eOLGI4c-Tb@-KNi2pz=Ke@SDcPn za$AxXib84`!Sf;Z3B@TSo`Dz7GM5Kf(@PR>Ghzi=BBxK8wRp>YQoXm+iL>H*Jo9M3 z6w&E?BC8AFTFT&Tv8zf+m9<&S&%dIaZ)Aoqkak_$r-2{$d~0g2oLETx9Y`eOAf14QXEQw3tJne;fdzl@wV#TFXSLXM2428F-Q}t+n2g%vPRMUzYPvzQ9f# zu(liiJem9P*?0%V@RwA7F53r~|I!Ty)<*AsMX3J{_4&}{6pT%Tpw>)^|DJ)>gpS~1rNEh z0$D?uO8mG?H;2BwM5a*26^7YO$XjUm40XmBsb63MoR;bJh63J;OngS5sSI+o2HA;W zdZV#8pDpC9Oez&L8loZO)MClRz!_!WD&QRtQxnazhT%Vj6Wl4G11nUk8*vSeVab@N#oJ}`KyJv+8Mo@T1-pqZ1t|?cnaVOd;1(h9 z!$DrN=jcGsVYE-0-n?oCJ^4x)F}E;UaD-LZUIzcD?W^ficqJWM%QLy6QikrM1aKZC zi{?;oKwq^Vsr|&`i{jIphA8S6G4)$KGvpULjH%9u(Dq247;R#l&I0{IhcC|oBF*Al zvLo7Xte=C{aIt*otJD}BUq)|_pdR>{zBMT< z(^1RpZv*l*m*OV^8>9&asGBo8h*_4q*)-eCv*|Pq=XNGrZE)^(SF7^{QE_~4VDB(o zVcPA_!G+2CAtLbl+`=Q~9iW`4ZRLku!uB?;tWqVjB0lEOf}2RD7dJ=BExy=<9wkb- z9&7{XFA%n#JsHYN8t5d~=T~5DcW4$B%3M+nNvC2`0!#@sckqlzo5;hhGi(D9=*A4` z5ynobawSPRtWn&CDLEs3Xf`(8^zDP=NdF~F^s&={l7(aw&EG}KWpMjtmz7j_VLO;@ zM2NVLDxZ@GIv7*gzl1 zjq78tv*8#WSY`}Su0&C;2F$Ze(q>F(@Wm^Gw!)(j;dk9Ad{STaxn)IV9FZhm*n+U} zi;4y*3v%A`_c7a__DJ8D1b@dl0Std3F||4Wtvi)fCcBRh!X9$1x!_VzUh>*S5s!oq z;qd{J_r79EL2wIeiGAqFstWtkfIJpjVh%zFo*=55B9Zq~y0=^iqHWfQl@O!Ak;(o*m!pZqe9 z%U2oDOhR)BvW8&F70L;2TpkzIutIvNQaTjjs5V#8mV4!NQ}zN=i`i@WI1z0eN-iCS z;vL-Wxc^Vc_qK<5RPh(}*8dLT{~GzE{w2o$2kMFaEl&q zP{V=>&3kW7tWaK-Exy{~`v4J0U#OZBk{a9{&)&QG18L@6=bsZ1zC_d{{pKZ-Ey>I> z;8H0t4bwyQqgu4hmO`3|4K{R*5>qnQ&gOfdy?z`XD%e5+pTDzUt3`k^u~SaL&XMe= z9*h#kT(*Q9jO#w2Hd|Mr-%DV8i_1{J1MU~XJ3!WUplhXDYBpJH><0OU`**nIvPIof z|N8@I=wA)sf45SAvx||f?Z5uB$kz1qL3Ky_{%RPdP5iN-D2!p5scq}buuC00C@jom zhfGKm3|f?Z0iQ|K$Z~!`8{nmAS1r+fp6r#YDOS8V*;K&Gs7Lc&f^$RC66O|)28oh`NHy&vq zJh+hAw8+ybTB0@VhWN^0iiTnLsCWbS_y`^gs!LX!Lw{yE``!UVzrV24tP8o;I6-65 z1MUiHw^{bB15tmrVT*7-#sj6cs~z`wk52YQJ*TG{SE;KTm#Hf#a~|<(|ImHH17nNM z`Ub{+J3dMD!)mzC8b(2tZtokKW5pAwHa?NFiso~# z1*iaNh4lQ4TS)|@G)H4dZV@l*Vd;Rw;-;odDhW2&lJ%m@jz+Panv7LQm~2Js6rOW3 z0_&2cW^b^MYW3)@o;neZ<{B4c#m48dAl$GCc=$>ErDe|?y@z`$uq3xd(%aAsX)D%l z>y*SQ%My`yDP*zof|3@_w#cjaW_YW4BdA;#Glg1RQcJGY*CJ9`H{@|D+*e~*457kd z73p<%fB^PV!Ybw@)Dr%(ZJbX}xmCStCYv#K3O32ej{$9IzM^I{6FJ8!(=azt7RWf4 z7ib0UOPqN40X!wOnFOoddd8`!_IN~9O)#HRTyjfc#&MCZ zZAMzOVB=;qwt8gV?{Y2?b=iSZG~RF~uyx18K)IDFLl})G1v@$(s{O4@RJ%OTJyF+Cpcx4jmy|F3euCnMK!P2WTDu5j z{{gD$=M*pH!GGzL%P)V2*ROm>!$Y=z|D`!_yY6e7SU$~a5q8?hZGgaYqaiLnkK%?0 zs#oI%;zOxF@g*@(V4p!$7dS1rOr6GVs6uYCTt2h)eB4?(&w8{#o)s#%gN@BBosRUe z)@P@8_Zm89pr~)b>e{tbPC~&_MR--iB{=)y;INU5#)@Gix-YpgP<-c2Ms{9zuCX|3 z!p(?VaXww&(w&uBHzoT%!A2=3HAP>SDxcljrego7rY|%hxy3XlODWffO_%g|l+7Y_ zqV(xbu)s4lV=l7M;f>vJl{`6qBm>#ZeMA}kXb97Z)?R97EkoI?x6Lp0yu1Z>PS?2{ z0QQ(8D)|lc9CO3B~e(pQM&5(1y&y=e>C^X$`)_&XuaI!IgDTVqt31wX#n+@!a_A0ZQkA zCJ2@M_4Gb5MfCrm5UPggeyh)8 zO9?`B0J#rkoCx(R0I!ko_2?iO@|oRf1;3r+i)w-2&j?=;NVIdPFsB)`|IC0zk6r9c zRrkfxWsiJ(#8QndNJj@{@WP2Ackr|r1VxV{7S&rSU(^)-M8gV>@UzOLXu9K<{6e{T zXJ6b92r$!|lwjhmgqkdswY&}c)KW4A)-ac%sU;2^fvq7gfUW4Bw$b!i@duy1CAxSn z(pyh$^Z=&O-q<{bZUP+$U}=*#M9uVc>CQVgDs4swy5&8RAHZ~$)hrTF4W zPsSa~qYv_0mJnF89RnnJTH`3}w4?~epFl=D(35$ zWa07ON$`OMBOHgCmfO(9RFc<)?$x)N}Jd2A(<*Ll7+4jrRt9w zwGxExUXd9VB#I|DwfxvJ;HZ8Q{37^wDhaZ%O!oO(HpcqfLH%#a#!~;Jl7F5>EX_=8 z{()l2NqPz>La3qJR;_v+wlK>GsHl;uRA8%j`A|yH@k5r%55S9{*Cp%uw6t`qc1!*T za2OeqtQj7sAp#Q~=5Fs&aCR9v>5V+s&RdNvo&H~6FJOjvaj--2sYYBvMq;55%z8^o z|BJDA4vzfow#DO#ZQHh;Oq_{r+qP{R9ox2TOgwQiv7Ow!zjN+A@BN;0tA2lUb#+zO z(^b89eV)D7UVE+h{mcNc6&GtpOqDn_?VAQ)Vob$hlFwW%xh>D#wml{t&Ofmm_d_+; zKDxzdr}`n2Rw`DtyIjrG)eD0vut$}dJAZ0AohZ+ZQdWXn_Z@dI_y=7t3q8x#pDI-K z2VVc&EGq445Rq-j0=U=Zx`oBaBjsefY;%)Co>J3v4l8V(T8H?49_@;K6q#r~Wwppc z4XW0(4k}cP=5ex>-Xt3oATZ~bBWKv)aw|I|Lx=9C1s~&b77idz({&q3T(Y(KbWO?+ zmcZ6?WeUsGk6>km*~234YC+2e6Zxdl~<_g2J|IE`GH%n<%PRv-50; zH{tnVts*S5*_RxFT9eM0z-pksIb^drUq4>QSww=u;UFCv2AhOuXE*V4z?MM`|ABOC4P;OfhS(M{1|c%QZ=!%rQTDFx`+}?Kdx$&FU?Y<$x;j7z=(;Lyz+?EE>ov!8vvMtSzG!nMie zsBa9t8as#2nH}n8xzN%W%U$#MHNXmDUVr@GX{?(=yI=4vks|V)!-W5jHsU|h_&+kY zS_8^kd3jlYqOoiI`ZqBVY!(UfnAGny!FowZWY_@YR0z!nG7m{{)4OS$q&YDyw6vC$ zm4!$h>*|!2LbMbxS+VM6&DIrL*X4DeMO!@#EzMVfr)e4Tagn~AQHIU8?e61TuhcKD zr!F4(kEebk(Wdk-?4oXM(rJwanS>Jc%<>R(siF+>+5*CqJLecP_we33iTFTXr6W^G z7M?LPC-qFHK;E!fxCP)`8rkxZyFk{EV;G-|kwf4b$c1k0atD?85+|4V%YATWMG|?K zLyLrws36p%Qz6{}>7b>)$pe>mR+=IWuGrX{3ZPZXF3plvuv5Huax86}KX*lbPVr}L z{C#lDjdDeHr~?l|)Vp_}T|%$qF&q#U;ClHEPVuS+Jg~NjC1RP=17=aQKGOcJ6B3mp z8?4*-fAD~}sX*=E6!}^u8)+m2j<&FSW%pYr_d|p_{28DZ#Cz0@NF=gC-o$MY?8Ca8 zr5Y8DSR^*urS~rhpX^05r30Ik#2>*dIOGxRm0#0YX@YQ%Mg5b6dXlS!4{7O_kdaW8PFSdj1=ryI-=5$fiieGK{LZ+SX(1b=MNL!q#lN zv98?fqqTUH8r8C7v(cx#BQ5P9W>- zmW93;eH6T`vuJ~rqtIBg%A6>q>gnWb3X!r0wh_q;211+Om&?nvYzL1hhtjB zK_7G3!n7PL>d!kj){HQE zE8(%J%dWLh1_k%gVXTZt zEdT09XSKAx27Ncaq|(vzL3gm83q>6CAw<$fTnMU05*xAe&rDfCiu`u^1)CD<>sx0i z*hr^N_TeN89G(nunZoLBf^81#pmM}>JgD@Nn1l*lN#a=B=9pN%tmvYFjFIoKe_(GF z-26x{(KXdfsQL7Uv6UtDuYwV`;8V3w>oT_I<`Ccz3QqK9tYT5ZQzbop{=I=!pMOCb zCU68`n?^DT%^&m>A%+-~#lvF!7`L7a{z<3JqIlk1$<||_J}vW1U9Y&eX<}l8##6i( zZcTT@2`9(Mecptm@{3A_Y(X`w9K0EwtPq~O!16bq{7c0f7#(3wn-^)h zxV&M~iiF!{-6A@>o;$RzQ5A50kxXYj!tcgme=Qjrbje~;5X2xryU;vH|6bE(8z^<7 zQ>BG7_c*JG8~K7Oe68i#0~C$v?-t@~@r3t2inUnLT(c=URpA9kA8uq9PKU(Ps(LVH zqgcqW>Gm?6oV#AldDPKVRcEyQIdTT`Qa1j~vS{<;SwyTdr&3*t?J)y=M7q*CzucZ&B0M=joT zBbj@*SY;o2^_h*>R0e({!QHF0=)0hOj^B^d*m>SnRrwq>MolNSgl^~r8GR#mDWGYEIJA8B<|{{j?-7p zVnV$zancW3&JVDtVpIlI|5djKq0(w$KxEFzEiiL=h5Jw~4Le23@s(mYyXWL9SX6Ot zmb)sZaly_P%BeX_9 zw&{yBef8tFm+%=--m*J|o~+Xg3N+$IH)t)=fqD+|fEk4AAZ&!wcN5=mi~Vvo^i`}> z#_3ahR}Ju)(Px7kev#JGcSwPXJ2id9%Qd2A#Uc@t8~egZ8;iC{e! z%=CGJOD1}j!HW_sgbi_8suYnn4#Ou}%9u)dXd3huFIb!ytlX>Denx@pCS-Nj$`VO&j@(z!kKSP0hE4;YIP#w9ta=3DO$7f*x zc9M4&NK%IrVmZAe=r@skWD`AEWH=g+r|*13Ss$+{c_R!b?>?UaGXlw*8qDmY#xlR= z<0XFbs2t?8i^G~m?b|!Hal^ZjRjt<@a? z%({Gn14b4-a|#uY^=@iiKH+k?~~wTj5K1A&hU z2^9-HTC)7zpoWK|$JXaBL6C z#qSNYtY>65T@Zs&-0cHeu|RX(Pxz6vTITdzJdYippF zC-EB+n4}#lM7`2Ry~SO>FxhKboIAF#Z{1wqxaCb{#yEFhLuX;Rx(Lz%T`Xo1+a2M}7D+@wol2)OJs$TwtRNJ={( zD@#zTUEE}#Fz#&(EoD|SV#bayvr&E0vzmb%H?o~46|FAcx?r4$N z&67W3mdip-T1RIxwSm_&(%U|+WvtGBj*}t69XVd&ebn>KOuL(7Y8cV?THd-(+9>G7*Nt%T zcH;`p={`SOjaf7hNd(=37Lz3-51;58JffzIPgGs_7xIOsB5p2t&@v1mKS$2D$*GQ6 zM(IR*j4{nri7NMK9xlDy-hJW6sW|ZiDRaFiayj%;(%51DN!ZCCCXz+0Vm#};70nOx zJ#yA0P3p^1DED;jGdPbQWo0WATN=&2(QybbVdhd=Vq*liDk`c7iZ?*AKEYC#SY&2g z&Q(Ci)MJ{mEat$ZdSwTjf6h~roanYh2?9j$CF@4hjj_f35kTKuGHvIs9}Re@iKMxS-OI*`0S z6s)fOtz}O$T?PLFVSeOjSO26$@u`e<>k(OSP!&YstH3ANh>)mzmKGNOwOawq-MPXe zy4xbeUAl6tamnx))-`Gi2uV5>9n(73yS)Ukma4*7fI8PaEwa)dWHs6QA6>$}7?(L8 ztN8M}?{Tf!Zu22J5?2@95&rQ|F7=FK-hihT-vDp!5JCcWrVogEnp;CHenAZ)+E+K5 z$Cffk5sNwD_?4+ymgcHR(5xgt20Z8M`2*;MzOM#>yhk{r3x=EyM226wb&!+j`W<%* zSc&|`8!>dn9D@!pYow~(DsY_naSx7(Z4i>cu#hA5=;IuI88}7f%)bRkuY2B;+9Uep zpXcvFWkJ!mQai63BgNXG26$5kyhZ2&*3Q_tk)Ii4M>@p~_~q_cE!|^A;_MHB;7s#9 zKzMzK{lIxotjc};k67^Xsl-gS!^*m*m6kn|sbdun`O?dUkJ{0cmI0-_2y=lTAfn*Y zKg*A-2sJq)CCJgY0LF-VQvl&6HIXZyxo2#!O&6fOhbHXC?%1cMc6y^*dOS{f$=137Ds1m01qs`>iUQ49JijsaQ( zksqV9@&?il$|4Ua%4!O15>Zy&%gBY&wgqB>XA3!EldQ%1CRSM(pp#k~-pkcCg4LAT zXE=puHbgsw)!xtc@P4r~Z}nTF=D2~j(6D%gTBw$(`Fc=OOQ0kiW$_RDd=hcO0t97h zb86S5r=>(@VGy1&#S$Kg_H@7G^;8Ue)X5Y+IWUi`o;mpvoV)`fcVk4FpcT|;EG!;? zHG^zrVVZOm>1KFaHlaogcWj(v!S)O(Aa|Vo?S|P z5|6b{qkH(USa*Z7-y_Uvty_Z1|B{rTS^qmEMLEYUSk03_Fg&!O3BMo{b^*`3SHvl0 zhnLTe^_vVIdcSHe)SQE}r~2dq)VZJ!aSKR?RS<(9lzkYo&dQ?mubnWmgMM37Nudwo z3Vz@R{=m2gENUE3V4NbIzAA$H1z0pagz94-PTJyX{b$yndsdKptmlKQKaaHj@3=ED zc7L?p@%ui|RegVYutK$64q4pe9+5sv34QUpo)u{1ci?)_7gXQd{PL>b0l(LI#rJmN zGuO+%GO`xneFOOr4EU(Wg}_%bhzUf;d@TU+V*2#}!2OLwg~%D;1FAu=Un>OgjPb3S z7l(riiCwgghC=Lm5hWGf5NdGp#01xQ59`HJcLXbUR3&n%P(+W2q$h2Qd z*6+-QXJ*&Kvk9ht0f0*rO_|FMBALen{j7T1l%=Q>gf#kma zQlg#I9+HB+z*5BMxdesMND`_W;q5|FaEURFk|~&{@qY32N$G$2B=&Po{=!)x5b!#n zxLzblkq{yj05#O7(GRuT39(06FJlalyv<#K4m}+vs>9@q-&31@1(QBv82{}Zkns~K ze{eHC_RDX0#^A*JQTwF`a=IkE6Ze@j#-8Q`tTT?k9`^ZhA~3eCZJ-Jr{~7Cx;H4A3 zcZ+Zj{mzFZbVvQ6U~n>$U2ZotGsERZ@}VKrgGh0xM;Jzt29%TX6_&CWzg+YYMozrM z`nutuS)_0dCM8UVaKRj804J4i%z2BA_8A4OJRQ$N(P9Mfn-gF;4#q788C@9XR0O3< zsoS4wIoyt046d+LnSCJOy@B@Uz*#GGd#+Ln1ek5Dv>(ZtD@tgZlPnZZJGBLr^JK+!$$?A_fA3LOrkoDRH&l7 zcMcD$Hsjko3`-{bn)jPL6E9Ds{WskMrivsUu5apD z?grQO@W7i5+%X&E&p|RBaEZ(sGLR@~(y^BI@lDMot^Ll?!`90KT!JXUhYS`ZgX3jnu@Ja^seA*M5R@f`=`ynQV4rc$uT1mvE?@tz)TN<=&H1%Z?5yjxcpO+6y_R z6EPuPKM5uxKpmZfT(WKjRRNHs@ib)F5WAP7QCADvmCSD#hPz$V10wiD&{NXyEwx5S z6NE`3z!IS^$s7m}PCwQutVQ#~w+V z=+~->DI*bR2j0^@dMr9`p>q^Ny~NrAVxrJtX2DUveic5vM%#N*XO|?YAWwNI$Q)_) zvE|L(L1jP@F%gOGtnlXtIv2&1i8q<)Xfz8O3G^Ea~e*HJsQgBxWL(yuLY+jqUK zRE~`-zklrGog(X}$9@ZVUw!8*=l`6mzYLtsg`AvBYz(cxmAhr^j0~(rzXdiOEeu_p zE$sf2(w(BPAvO5DlaN&uQ$4@p-b?fRs}d7&2UQ4Fh?1Hzu*YVjcndqJLw0#q@fR4u zJCJ}>_7-|QbvOfylj+e^_L`5Ep9gqd>XI3-O?Wp z-gt*P29f$Tx(mtS`0d05nHH=gm~Po_^OxxUwV294BDKT>PHVlC5bndncxGR!n(OOm znsNt@Q&N{TLrmsoKFw0&_M9$&+C24`sIXGWgQaz=kY;S{?w`z^Q0JXXBKFLj0w0U6P*+jPKyZHX9F#b0D1$&(- zrm8PJd?+SrVf^JlfTM^qGDK&-p2Kdfg?f>^%>1n8bu&byH(huaocL>l@f%c*QkX2i znl}VZ4R1en4S&Bcqw?$=Zi7ohqB$Jw9x`aM#>pHc0x z0$!q7iFu zZ`tryM70qBI6JWWTF9EjgG@>6SRzsd}3h+4D8d~@CR07P$LJ}MFsYi-*O%XVvD@yT|rJ+Mk zDllJ7$n0V&A!0flbOf)HE6P_afPWZmbhpliqJuw=-h+r;WGk|ntkWN(8tKlYpq5Ow z(@%s>IN8nHRaYb*^d;M(D$zGCv5C|uqmsDjwy4g=Lz>*OhO3z=)VD}C<65;`89Ye} zSCxrv#ILzIpEx1KdLPlM&%Cctf@FqTKvNPXC&`*H9=l=D3r!GLM?UV zOxa(8ZsB`&+76S-_xuj?G#wXBfDY@Z_tMpXJS7^mp z@YX&u0jYw2A+Z+bD#6sgVK5ZgdPSJV3>{K^4~%HV?rn~4D)*2H!67Y>0aOmzup`{D zzDp3c9yEbGCY$U<8biJ_gB*`jluz1ShUd!QUIQJ$*1;MXCMApJ^m*Fiv88RZ zFopLViw}{$Tyhh_{MLGIE2~sZ)t0VvoW%=8qKZ>h=adTe3QM$&$PO2lfqH@brt!9j ziePM8$!CgE9iz6B<6_wyTQj?qYa;eC^{x_0wuwV~W+^fZmFco-o%wsKSnjXFEx02V zF5C2t)T6Gw$Kf^_c;Ei3G~uC8SM-xyycmXyC2hAVi-IfXqhu$$-C=*|X?R0~hu z8`J6TdgflslhrmDZq1f?GXF7*ALeMmOEpRDg(s*H`4>_NAr`2uqF;k;JQ+8>A|_6ZNsNLECC%NNEb1Y1dP zbIEmNpK)#XagtL4R6BC{C5T(+=yA-(Z|Ap}U-AfZM#gwVpus3(gPn}Q$CExObJ5AC z)ff9Yk?wZ}dZ-^)?cbb9Fw#EjqQ8jxF4G3=L?Ra zg_)0QDMV1y^A^>HRI$x?Op@t;oj&H@1xt4SZ9(kifQ zb59B*`M99Td7@aZ3UWvj1rD0sE)d=BsBuW*KwkCds7ay(7*01_+L}b~7)VHI>F_!{ zyxg-&nCO?v#KOUec0{OOKy+sjWA;8rTE|Lv6I9H?CI?H(mUm8VXGwU$49LGpz&{nQp2}dinE1@lZ1iox6{ghN&v^GZv9J${7WaXj)<0S4g_uiJ&JCZ zr8-hsu`U%N;+9N^@&Q0^kVPB3)wY(rr}p7{p0qFHb3NUUHJb672+wRZs`gd1UjKPX z4o6zljKKA+Kkj?H>Ew63o%QjyBk&1!P22;MkD>sM0=z_s-G{mTixJCT9@_|*(p^bz zJ8?ZZ&;pzV+7#6Mn`_U-)k8Pjg?a;|Oe^us^PoPY$Va~yi8|?+&=y$f+lABT<*pZr zP}D{~Pq1Qyni+@|aP;ixO~mbEW9#c0OU#YbDZIaw=_&$K%Ep2f%hO^&P67hApZe`x zv8b`Mz@?M_7-)b!lkQKk)JXXUuT|B8kJlvqRmRpxtQDgvrHMXC1B$M@Y%Me!BSx3P z#2Eawl$HleZhhTS6Txm>lN_+I`>eV$&v9fOg)%zVn3O5mI*lAl>QcHuW6!Kixmq`X zBCZ*Ck6OYtDiK!N47>jxI&O2a9x7M|i^IagRr-fmrmikEQGgw%J7bO|)*$2FW95O4 zeBs>KR)izRG1gRVL;F*sr8A}aRHO0gc$$j&ds8CIO1=Gwq1%_~E)CWNn9pCtBE}+`Jelk4{>S)M)`Ll=!~gnn1yq^EX(+y*ik@3Ou0qU`IgYi3*doM+5&dU!cho$pZ zn%lhKeZkS72P?Cf68<#kll_6OAO26bIbueZx**j6o;I0cS^XiL`y+>{cD}gd%lux} z)3N>MaE24WBZ}s0ApfdM;5J_Ny}rfUyxfkC``Awo2#sgLnGPewK};dORuT?@I6(5~ z?kE)Qh$L&fwJXzK){iYx!l5$Tt|^D~MkGZPA}(o6f7w~O2G6Vvzdo*a;iXzk$B66$ zwF#;wM7A+(;uFG4+UAY(2`*3XXx|V$K8AYu#ECJYSl@S=uZW$ksfC$~qrrbQj4??z-)uz0QL}>k^?fPnJTPw% zGz)~?B4}u0CzOf@l^um}HZzbaIwPmb<)< zi_3@E9lc)Qe2_`*Z^HH;1CXOceL=CHpHS{HySy3T%<^NrWQ}G0i4e1xm_K3(+~oi$ zoHl9wzb?Z4j#90DtURtjtgvi7uw8DzHYmtPb;?%8vb9n@bszT=1qr)V_>R%s!92_` zfnHQPANx z<#hIjIMm#*(v*!OXtF+w8kLu`o?VZ5k7{`vw{Yc^qYclpUGIM_PBN1+c{#Vxv&E*@ zxg=W2W~JuV{IuRYw3>LSI1)a!thID@R=bU+cU@DbR^_SXY`MC7HOsCN z!dO4OKV7(E_Z8T#8MA1H`99?Z!r0)qKW_#|29X3#Jb+5+>qUidbeP1NJ@)(qi2S-X zao|f0_tl(O+$R|Qwd$H{_ig|~I1fbp_$NkI!0E;Y z6JrnU{1Ra6^on{9gUUB0mwzP3S%B#h0fjo>JvV~#+X0P~JV=IG=yHG$O+p5O3NUgG zEQ}z6BTp^Fie)Sg<){Z&I8NwPR(=mO4joTLHkJ>|Tnk23E(Bo`FSbPc05lF2-+)X? z6vV3*m~IBHTy*^E!<0nA(tCOJW2G4DsH7)BxLV8kICn5lu6@U*R`w)o9;Ro$i8=Q^V%uH8n3q=+Yf;SFRZu z!+F&PKcH#8cG?aSK_Tl@K9P#8o+jry@gdexz&d(Q=47<7nw@e@FFfIRNL9^)1i@;A z28+$Z#rjv-wj#heI|<&J_DiJ*s}xd-f!{J8jfqOHE`TiHHZVIA8CjkNQ_u;Ery^^t zl1I75&u^`1_q)crO+JT4rx|z2ToSC>)Or@-D zy3S>jW*sNIZR-EBsfyaJ+Jq4BQE4?SePtD2+jY8*%FsSLZ9MY>+wk?}}}AFAw)vr{ml)8LUG-y9>^t!{~|sgpxYc0Gnkg`&~R z-pilJZjr@y5$>B=VMdZ73svct%##v%wdX~9fz6i3Q-zOKJ9wso+h?VME7}SjL=!NUG{J?M&i!>ma`eoEa@IX`5G>B1(7;%}M*%-# zfhJ(W{y;>MRz!Ic8=S}VaBKqh;~7KdnGEHxcL$kA-6E~=!hrN*zw9N+_=odt<$_H_8dbo;0=42wcAETPCVGUr~v(`Uai zb{=D!Qc!dOEU6v)2eHSZq%5iqK?B(JlCq%T6av$Cb4Rko6onlG&?CqaX7Y_C_cOC3 zYZ;_oI(}=>_07}Oep&Ws7x7-R)cc8zfe!SYxJYP``pi$FDS)4Fvw5HH=FiU6xfVqIM!hJ;Rx8c0cB7~aPtNH(Nmm5Vh{ibAoU#J6 zImRCr?(iyu_4W_6AWo3*vxTPUw@vPwy@E0`(>1Qi=%>5eSIrp^`` zK*Y?fK_6F1W>-7UsB)RPC4>>Ps9)f+^MqM}8AUm@tZ->j%&h1M8s*s!LX5&WxQcAh z8mciQej@RPm?660%>{_D+7er>%zX_{s|$Z+;G7_sfNfBgY(zLB4Ey}J9F>zX#K0f6 z?dVNIeEh?EIShmP6>M+d|0wMM85Sa4diw1hrg|ITJ}JDg@o8y>(rF9mXk5M z2@D|NA)-7>wD&wF;S_$KS=eE84`BGw3g0?6wGxu8ys4rwI?9U=*^VF22t3%mbGeOh z`!O-OpF7#Vceu~F`${bW0nYVU9ecmk31V{tF%iv&5hWofC>I~cqAt@u6|R+|HLMMX zVxuSlMFOK_EQ86#E8&KwxIr8S9tj_goWtLv4f@!&h8;Ov41{J~496vp9vX=(LK#j! zAwi*21RAV-LD>9Cw3bV_9X(X3)Kr0-UaB*7Y>t82EQ%!)(&(XuAYtTsYy-dz+w=$ir)VJpe!_$ z6SGpX^i(af3{o=VlFPC);|J8#(=_8#vdxDe|Cok+ANhYwbE*FO`Su2m1~w+&9<_9~ z-|tTU_ACGN`~CNW5WYYBn^B#SwZ(t4%3aPp z;o)|L6Rk569KGxFLUPx@!6OOa+5OjQLK5w&nAmwxkC5rZ|m&HT8G%GVZxB_@ME z>>{rnXUqyiJrT(8GMj_ap#yN_!9-lO5e8mR3cJiK3NE{_UM&=*vIU`YkiL$1%kf+1 z4=jk@7EEj`u(jy$HnzE33ZVW_J4bj}K;vT?T91YlO(|Y0FU4r+VdbmQ97%(J5 zkK*Bed8+C}FcZ@HIgdCMioV%A<*4pw_n}l*{Cr4}a(lq|injK#O?$tyvyE`S%(1`H z_wwRvk#13ElkZvij2MFGOj`fhy?nC^8`Zyo%yVcUAfEr8x&J#A{|moUBAV_^f$hpaUuyQeY3da^ zS9iRgf87YBwfe}>BO+T&Fl%rfpZh#+AM?Dq-k$Bq`vG6G_b4z%Kbd&v>qFjow*mBl z-OylnqOpLg}or7_VNwRg2za3VBK6FUfFX{|TD z`Wt0Vm2H$vdlRWYQJqDmM?JUbVqL*ZQY|5&sY*?!&%P8qhA~5+Af<{MaGo(dl&C5t zE%t!J0 zh6jqANt4ABdPxSTrVV}fLsRQal*)l&_*rFq(Ez}ClEH6LHv{J#v?+H-BZ2)Wy{K@9 z+ovXHq~DiDvm>O~r$LJo!cOuwL+Oa--6;UFE2q@g3N8Qkw5E>ytz^(&($!O47+i~$ zKM+tkAd-RbmP{s_rh+ugTD;lriL~`Xwkad#;_aM?nQ7L_muEFI}U_4$phjvYgleK~`Fo`;GiC07&Hq1F<%p;9Q;tv5b?*QnR%8DYJH3P>Svmv47Y>*LPZJy8_{9H`g6kQpyZU{oJ`m%&p~D=K#KpfoJ@ zn-3cqmHsdtN!f?~w+(t+I`*7GQA#EQC^lUA9(i6=i1PqSAc|ha91I%X&nXzjYaM{8$s&wEx@aVkQ6M{E2 zfzId#&r(XwUNtPcq4Ngze^+XaJA1EK-%&C9j>^9(secqe{}z>hR5CFNveMsVA)m#S zk)_%SidkY-XmMWlVnQ(mNJ>)ooszQ#vaK;!rPmGKXV7am^_F!Lz>;~{VrIO$;!#30XRhE1QqO_~#+Ux;B_D{Nk=grn z8Y0oR^4RqtcYM)7a%@B(XdbZCOqnX#fD{BQTeLvRHd(irHKq=4*jq34`6@VAQR8WG z^%)@5CXnD_T#f%@-l${>y$tfb>2LPmc{~5A82|16mH)R?&r#KKLs7xpN-D`=&Cm^R zvMA6#Ahr<3X>Q7|-qfTY)}32HkAz$_mibYV!I)u>bmjK`qwBe(>za^0Kt*HnFbSdO z1>+ryKCNxmm^)*$XfiDOF2|{-v3KKB?&!(S_Y=Ht@|ir^hLd978xuI&N{k>?(*f8H z=ClxVJK_%_z1TH0eUwm2J+2To7FK4o+n_na)&#VLn1m;!+CX+~WC+qg1?PA~KdOlC zW)C@pw75_xoe=w7i|r9KGIvQ$+3K?L{7TGHwrQM{dCp=Z*D}3kX7E-@sZnup!BImw z*T#a=+WcTwL78exTgBn|iNE3#EsOorO z*kt)gDzHiPt07fmisA2LWN?AymkdqTgr?=loT7z@d`wnlr6oN}@o|&JX!yPzC*Y8d zu6kWlTzE1)ckyBn+0Y^HMN+GA$wUO_LN6W>mxCo!0?oiQvT`z$jbSEu&{UHRU0E8# z%B^wOc@S!yhMT49Y)ww(Xta^8pmPCe@eI5C*ed96)AX9<>))nKx0(sci8gwob_1}4 z0DIL&vsJ1_s%<@y%U*-eX z5rN&(zef-5G~?@r79oZGW1d!WaTqQn0F6RIOa9tJ=0(kdd{d1{<*tHT#cCvl*i>YY zH+L7jq8xZNcTUBqj(S)ztTU!TM!RQ}In*n&Gn<>(60G7}4%WQL!o>hbJqNDSGwl#H z`4k+twp0cj%PsS+NKaxslAEu9!#U3xT1|_KB6`h=PI0SW`P9GTa7caD1}vKEglV8# zjKZR`pluCW19c2fM&ZG)c3T3Um;ir3y(tSCJ7Agl6|b524dy5El{^EQBG?E61H0XY z`bqg!;zhGhyMFl&(o=JWEJ8n~z)xI}A@C0d2hQGvw7nGv)?POU@(kS1m=%`|+^ika zXl8zjS?xqW$WlO?Ewa;vF~XbybHBor$f<%I&*t$F5fynwZlTGj|IjZtVfGa7l&tK} zW>I<69w(cZLu)QIVG|M2xzW@S+70NinQzk&Y0+3WT*cC)rx~04O-^<{JohU_&HL5XdUKW!uFy|i$FB|EMu0eUyW;gsf`XfIc!Z0V zeK&*hPL}f_cX=@iv>K%S5kL;cl_$v?n(Q9f_cChk8Lq$glT|=e+T*8O4H2n<=NGmn z+2*h+v;kBvF>}&0RDS>)B{1!_*XuE8A$Y=G8w^qGMtfudDBsD5>T5SB;Qo}fSkkiV ze^K^M(UthkwrD!&*tTsu>Dacdj_q`~V%r_twr$(Ct&_dKeeXE?fA&4&yASJWJ*}~- zel=@W)tusynfC_YqH4ll>4Eg`Xjs5F7Tj>tTLz<0N3)X<1px_d2yUY>X~y>>93*$) z5PuNMQLf9Bu?AAGO~a_|J2akO1M*@VYN^VxvP0F$2>;Zb9;d5Yfd8P%oFCCoZE$ z4#N$^J8rxYjUE_6{T%Y>MmWfHgScpuGv59#4u6fpTF%~KB^Ae`t1TD_^Ud#DhL+Dm zbY^VAM#MrAmFj{3-BpVSWph2b_Y6gCnCAombVa|1S@DU)2r9W<> zT5L8BB^er3zxKt1v(y&OYk!^aoQisqU zH(g@_o)D~BufUXcPt!Ydom)e|aW{XiMnes2z&rE?og>7|G+tp7&^;q?Qz5S5^yd$i z8lWr4g5nctBHtigX%0%XzIAB8U|T6&JsC4&^hZBw^*aIcuNO47de?|pGXJ4t}BB`L^d8tD`H`i zqrP8?#J@8T#;{^B!KO6J=@OWKhAerih(phML`(Rg7N1XWf1TN>=Z3Do{l_!d~DND&)O)D>ta20}@Lt77qSnVsA7>)uZAaT9bsB>u&aUQl+7GiY2|dAEg@%Al3i316y;&IhQL^8fw_nwS>f60M_-m+!5)S_6EPM7Y)(Nq^8gL7(3 zOiot`6Wy6%vw~a_H?1hLVzIT^i1;HedHgW9-P#)}Y6vF%C=P70X0Tk^z9Te@kPILI z_(gk!k+0%CG)%!WnBjjw*kAKs_lf#=5HXC00s-}oM-Q1aXYLj)(1d!_a7 z*Gg4Fe6F$*ujVjI|79Z5+Pr`us%zW@ln++2l+0hsngv<{mJ%?OfSo_3HJXOCys{Ug z00*YR-(fv<=&%Q!j%b-_ppA$JsTm^_L4x`$k{VpfLI(FMCap%LFAyq;#ns5bR7V+x zO!o;c5y~DyBPqdVQX)8G^G&jWkBy2|oWTw>)?5u}SAsI$RjT#)lTV&Rf8;>u*qXnb z8F%Xb=7#$m)83z%`E;49)t3fHInhtc#kx4wSLLms!*~Z$V?bTyUGiS&m>1P(952(H zuHdv=;o*{;5#X-uAyon`hP}d#U{uDlV?W?_5UjJvf%11hKwe&(&9_~{W)*y1nR5f_ z!N(R74nNK`y8>B!0Bt_Vr!;nc3W>~RiKtGSBkNlsR#-t^&;$W#)f9tTlZz>n*+Fjz z3zXZ;jf(sTM(oDzJt4FJS*8c&;PLTW(IQDFs_5QPy+7yhi1syPCarvqrHFcf&yTy)^O<1EBx;Ir`5W{TIM>{8w&PB>ro4;YD<5LF^TjTb0!zAP|QijA+1Vg>{Afv^% zmrkc4o6rvBI;Q8rj4*=AZacy*n8B{&G3VJc)so4$XUoie0)vr;qzPZVbb<#Fc=j+8CGBWe$n|3K& z_@%?{l|TzKSlUEO{U{{%Fz_pVDxs7i9H#bnbCw7@4DR=}r_qV!Zo~CvD4ZI*+j3kO zW6_=|S`)(*gM0Z;;}nj`73OigF4p6_NPZQ-Od~e$c_);;4-7sR>+2u$6m$Gf%T{aq zle>e3(*Rt(TPD}03n5)!Ca8Pu!V}m6v0o1;5<1h$*|7z|^(3$Y&;KHKTT}hV056wuF0Xo@mK-52~r=6^SI1NC%c~CC?n>yX6wPTgiWYVz!Sx^atLby9YNn1Rk{g?|pJaxD4|9cUf|V1_I*w zzxK)hRh9%zOl=*$?XUjly5z8?jPMy%vEN)f%T*|WO|bp5NWv@B(K3D6LMl!-6dQg0 zXNE&O>Oyf%K@`ngCvbGPR>HRg5!1IV$_}m@3dWB7x3t&KFyOJn9pxRXCAzFr&%37wXG;z^xaO$ekR=LJG ztIHpY8F5xBP{mtQidqNRoz= z@){+N3(VO5bD+VrmS^YjG@+JO{EOIW)9=F4v_$Ed8rZtHvjpiEp{r^c4F6Ic#ChlC zJX^DtSK+v(YdCW)^EFcs=XP7S>Y!4=xgmv>{S$~@h=xW-G4FF9?I@zYN$e5oF9g$# zb!eVU#J+NjLyX;yb)%SY)xJdvGhsnE*JEkuOVo^k5PyS=o#vq!KD46UTW_%R=Y&0G zFj6bV{`Y6)YoKgqnir2&+sl+i6foAn-**Zd1{_;Zb7Ki=u394C5J{l^H@XN`_6XTKY%X1AgQM6KycJ+= zYO=&t#5oSKB^pYhNdzPgH~aEGW2=ec1O#s-KG z71}LOg@4UEFtp3GY1PBemXpNs6UK-ax*)#$J^pC_me;Z$Je(OqLoh|ZrW*mAMBFn< zHttjwC&fkVfMnQeen8`Rvy^$pNRFVaiEN4Pih*Y3@jo!T0nsClN)pdrr9AYLcZxZ| zJ5Wlj+4q~($hbtuY zVQ7hl>4-+@6g1i`1a)rvtp-;b0>^`Dloy(#{z~ytgv=j4q^Kl}wD>K_Y!l~ zp(_&7sh`vfO(1*MO!B%<6E_bx1)&s+Ae`O)a|X=J9y~XDa@UB`m)`tSG4AUhoM=5& znWoHlA-(z@3n0=l{E)R-p8sB9XkV zZ#D8wietfHL?J5X0%&fGg@MH~(rNS2`GHS4xTo7L$>TPme+Is~!|79=^}QbPF>m%J zFMkGzSndiPO|E~hrhCeo@&Ea{M(ieIgRWMf)E}qeTxT8Q#g-!Lu*x$v8W^M^>?-g= zwMJ$dThI|~M06rG$Sv@C@tWR>_YgaG&!BAbkGggVQa#KdtDB)lMLNVLN|51C@F^y8 zCRvMB^{GO@j=cHfmy}_pCGbP%xb{pNN>? z?7tBz$1^zVaP|uaatYaIN+#xEN4jBzwZ|YI_)p(4CUAz1ZEbDk>J~Y|63SZaak~#0 zoYKruYsWHoOlC1(MhTnsdUOwQfz5p6-D0}4;DO$B;7#M{3lSE^jnTT;ns`>!G%i*F?@pR1JO{QTuD0U+~SlZxcc8~>IB{)@8p`P&+nDxNj`*gh|u?yrv$phpQcW)Us)bi`kT%qLj(fi{dWRZ%Es2!=3mI~UxiW0$-v3vUl?#g{p6eF zMEUAqo5-L0Ar(s{VlR9g=j7+lt!gP!UN2ICMokAZ5(Agd>})#gkA2w|5+<%-CuEP# zqgcM}u@3(QIC^Gx<2dbLj?cFSws_f3e%f4jeR?4M^M3cx1f+Qr6ydQ>n)kz1s##2w zk}UyQc+Z5G-d-1}{WzjkLXgS-2P7auWSJ%pSnD|Uivj5u!xk0 z_^-N9r9o;(rFDt~q1PvE#iJZ_f>J3gcP$)SOqhE~pD2|$=GvpL^d!r z6u=sp-CrMoF7;)}Zd7XO4XihC4ji?>V&(t^?@3Q&t9Mx=qex6C9d%{FE6dvU6%d94 zIE;hJ1J)cCqjv?F``7I*6bc#X)JW2b4f$L^>j{*$R`%5VHFi*+Q$2;nyieduE}qdS{L8y8F08yLs?w}{>8>$3236T-VMh@B zq-nujsb_1aUv_7g#)*rf9h%sFj*^mIcImRV*k~Vmw;%;YH(&ylYpy!&UjUVqqtfG` zox3esju?`unJJA_zKXRJP)rA3nXc$m^{S&-p|v|-0x9LHJm;XIww7C#R$?00l&Yyj z=e}gKUOpsImwW?N)+E(awoF@HyP^EhL+GlNB#k?R<2>95hz!h9sF@U20DHSB3~WMa zk90+858r@-+vWwkawJ)8ougd(i#1m3GLN{iSTylYz$brAsP%=&m$mQQrH$g%3-^VR zE%B`Vi&m8f3T~&myTEK28BDWCVzfWir1I?03;pX))|kY5ClO^+bae z*7E?g=3g7EiisYOrE+lA)2?Ln6q2*HLNpZEWMB|O-JI_oaHZB%CvYB(%=tU= zE*OY%QY58fW#RG5=gm0NR#iMB=EuNF@)%oZJ}nmm=tsJ?eGjia{e{yuU0l3{d^D@)kVDt=1PE)&tf_hHC%0MB znL|CRCPC}SeuVTdf>-QV70`0(EHizc21s^sU>y%hW0t!0&y<7}Wi-wGy>m%(-jsDj zP?mF|>p_K>liZ6ZP(w5(|9Ga%>tLgb$|doDDfkdW>Z z`)>V2XC?NJT26mL^@ zf+IKr27TfM!UbZ@?zRddC7#6ss1sw%CXJ4FWC+t3lHZupzM77m^=9 z&(a?-LxIq}*nvv)y?27lZ{j zifdl9hyJudyP2LpU$-kXctshbJDKS{WfulP5Dk~xU4Le4c#h^(YjJit4#R8_khheS z|8(>2ibaHES4+J|DBM7I#QF5u-*EdN{n=Kt@4Zt?@Tv{JZA{`4 zU#kYOv{#A&gGPwT+$Ud}AXlK3K7hYzo$(fBSFjrP{QQ zeaKg--L&jh$9N}`pu{Bs>?eDFPaWY4|9|foN%}i;3%;@4{dc+iw>m}{3rELqH21G! z`8@;w-zsJ1H(N3%|1B@#ioLOjib)j`EiJqPQVSbPSPVHCj6t5J&(NcWzBrzCiDt{4 zdlPAUKldz%6x5II1H_+jv)(xVL+a;P+-1hv_pM>gMRr%04@k;DTokASSKKhU1Qms| zrWh3a!b(J3n0>-tipg{a?UaKsP7?+|@A+1WPDiQIW1Sf@qDU~M_P65_s}7(gjTn0X zucyEm)o;f8UyshMy&>^SC3I|C6jR*R_GFwGranWZe*I>K+0k}pBuET&M~ z;Odo*ZcT?ZpduHyrf8E%IBFtv;JQ!N_m>!sV6ly$_1D{(&nO~w)G~Y`7sD3#hQk%^ zp}ucDF_$!6DAz*PM8yE(&~;%|=+h(Rn-=1Wykas_-@d&z#=S}rDf`4w(rVlcF&lF! z=1)M3YVz7orwk^BXhslJ8jR);sh^knJW(Qmm(QdSgIAIdlN4Te5KJisifjr?eB{FjAX1a0AB>d?qY4Wx>BZ8&}5K0fA+d{l8 z?^s&l8#j7pR&ijD?0b%;lL9l$P_mi2^*_OL+b}4kuLR$GAf85sOo02?Y#90}CCDiS zZ%rbCw>=H~CBO=C_JVV=xgDe%b4FaEFtuS7Q1##y686r%F6I)s-~2(}PWK|Z8M+Gu zl$y~5@#0Ka%$M<&Cv%L`a8X^@tY&T7<0|(6dNT=EsRe0%kp1Qyq!^43VAKYnr*A5~ zsI%lK1ewqO;0TpLrT9v}!@vJK{QoVa_+N4FYT#h?Y8rS1S&-G+m$FNMP?(8N`MZP zels(*?kK{{^g9DOzkuZXJ2;SrOQsp9T$hwRB1(phw1c7`!Q!by?Q#YsSM#I12RhU{$Q+{xj83axHcftEc$mNJ8_T7A-BQc*k(sZ+~NsO~xAA zxnbb%dam_fZlHvW7fKXrB~F&jS<4FD2FqY?VG?ix*r~MDXCE^WQ|W|WM;gsIA4lQP zJ2hAK@CF*3*VqPr2eeg6GzWFlICi8S>nO>5HvWzyZTE)hlkdC_>pBej*>o0EOHR|) z$?};&I4+_?wvL*g#PJ9)!bc#9BJu1(*RdNEn>#Oxta(VWeM40ola<0aOe2kSS~{^P zDJBd}0L-P#O-CzX*%+$#v;(x%<*SPgAje=F{Zh-@ucd2DA(yC|N_|ocs*|-!H%wEw z@Q!>siv2W;C^^j^59OAX03&}&D*W4EjCvfi(ygcL#~t8XGa#|NPO+*M@Y-)ctFA@I z-p7npT1#5zOLo>7q?aZpCZ=iecn3QYklP;gF0bq@>oyBq94f6C=;Csw3PkZ|5q=(c zfs`aw?II0e(h=|7o&T+hq&m$; zBrE09Twxd9BJ2P+QPN}*OdZ-JZV7%av@OM7v!!NL8R;%WFq*?{9T3{ct@2EKgc8h) zMxoM$SaF#p<`65BwIDfmXG6+OiK0e)`I=!A3E`+K@61f}0e z!2a*FOaDrOe>U`q%K!QN`&=&0C~)CaL3R4VY(NDt{Xz(Xpqru5=r#uQN1L$Je1*dkdqQ*=lofQaN%lO!<5z9ZlHgxt|`THd>2 zsWfU$9=p;yLyJyM^t zS2w9w?Bpto`@H^xJpZDKR1@~^30Il6oFGfk5%g6w*C+VM)+%R@gfIwNprOV5{F^M2 zO?n3DEzpT+EoSV-%OdvZvNF+pDd-ZVZ&d8 zKeIyrrfPN=EcFRCPEDCVflX#3-)Ik_HCkL(ejmY8vzcf-MTA{oHk!R2*36`O68$7J zf}zJC+bbQk--9Xm!u#lgLvx8TXx2J258E5^*IZ(FXMpq$2LUUvhWQPs((z1+2{Op% z?J}9k5^N=z;7ja~zi8a_-exIqWUBJwohe#4QJ`|FF*$C{lM18z^#hX6!5B8KAkLUX ziP=oti-gpV(BsLD{0(3*dw}4JxK23Y7M{BeFPucw!sHpY&l%Ws4pSm`+~V7;bZ%Dx zeI)MK=4vC&5#;2MT7fS?^ch9?2;%<8Jlu-IB&N~gg8t;6S-#C@!NU{`p7M8@2iGc& zg|JPg%@gCoCQ&s6JvDU&`X2S<57f(k8nJ1wvBu{8r?;q3_kpZZ${?|( z+^)UvR33sjSd)aT!UPkA;ylO6{aE3MQa{g%Mcf$1KONcjO@&g5zPHWtzM1rYC{_K> zgQNcs<{&X{OA=cEWw5JGqpr0O>x*Tfak2PE9?FuWtz^DDNI}rwAaT0(bdo-<+SJ6A z&}S%boGMWIS0L}=S>|-#kRX;e^sUsotry(MjE|3_9duvfc|nwF#NHuM-w7ZU!5ei8 z6Mkf>2)WunY2eU@C-Uj-A zG(z0Tz2YoBk>zCz_9-)4a>T46$(~kF+Y{#sA9MWH%5z#zNoz)sdXq7ZR_+`RZ%0(q zC7&GyS_|BGHNFl8Xa%@>iWh%Gr?=J5<(!OEjauj5jyrA-QXBjn0OAhJJ9+v=!LK`` z@g(`^*84Q4jcDL`OA&ZV60djgwG`|bcD*i50O}Q{9_noRg|~?dj%VtKOnyRs$Uzqg z191aWoR^rDX#@iSq0n z?9Sg$WSRPqSeI<}&n1T3!6%Wj@5iw5`*`Btni~G=&;J+4`7g#OQTa>u`{4ZZ(c@s$ zK0y;ySOGD-UTjREKbru{QaS>HjN<2)R%Nn-TZiQ(Twe4p@-saNa3~p{?^V9Nixz@a zykPv~<@lu6-Ng9i$Lrk(xi2Tri3q=RW`BJYOPC;S0Yly%77c727Yj-d1vF!Fuk{Xh z)lMbA69y7*5ufET>P*gXQrxsW+ zz)*MbHZv*eJPEXYE<6g6_M7N%#%mR{#awV3i^PafNv(zyI)&bH?F}2s8_rR(6%!V4SOWlup`TKAb@ee>!9JKPM=&8g#BeYRH9FpFybxBXQI2|g}FGJfJ+ zY-*2hB?o{TVL;Wt_ek;AP5PBqfDR4@Z->_182W z{P@Mc27j6jE*9xG{R$>6_;i=y{qf(c`5w9fa*`rEzX6t!KJ(p1H|>J1pC-2zqWENF zmm=Z5B4u{cY2XYl(PfrInB*~WGWik3@1oRhiMOS|D;acnf-Bs(QCm#wR;@Vf!hOPJ zgjhDCfDj$HcyVLJ=AaTbQ{@vIv14LWWF$=i-BDoC11}V;2V8A`S>_x)vIq44-VB-v z*w-d}$G+Ql?En8j!~ZkCpQ$|cA0|+rrY>tiCeWxkRGPoarxlGU2?7%k#F693RHT24 z-?JsiXlT2PTqZqNb&sSc>$d;O4V@|b6VKSWQb~bUaWn1Cf0+K%`Q&Wc<>mQ>*iEGB zbZ;aYOotBZ{vH3y<0A*L0QVM|#rf*LIsGx(O*-7)r@yyBIzJnBFSKBUSl1e|8lxU* zzFL+YDVVkIuzFWeJ8AbgN&w(4-7zbiaMn{5!JQXu)SELk*CNL+Fro|2v|YO)1l15t zs(0^&EB6DPMyaqvY>=KL>)tEpsn;N5Q#yJj<9}ImL((SqErWN3Q=;tBO~ExTCs9hB z2E$7eN#5wX4<3m^5pdjm#5o>s#eS_Q^P)tm$@SawTqF*1dj_i#)3};JslbLKHXl_N z)Fxzf>FN)EK&Rz&*|6&%Hs-^f{V|+_vL1S;-1K-l$5xiC@}%uDuwHYhmsV?YcOUlk zOYkG5v2+`+UWqpn0aaaqrD3lYdh0*!L`3FAsNKu=Q!vJu?Yc8n|CoYyDo_`r0mPoo z8>XCo$W4>l(==h?2~PoRR*kEe)&IH{1sM41mO#-36`02m#nTX{r*r`Q5rZ2-sE|nA zhnn5T#s#v`52T5|?GNS`%HgS2;R(*|^egNPDzzH_z^W)-Q98~$#YAe)cEZ%vge965AS_am#DK#pjPRr-!^za8>`kksCAUj(Xr*1NW5~e zpypt_eJpD&4_bl_y?G%>^L}=>xAaV>KR6;^aBytqpiHe%!j;&MzI_>Sx7O%F%D*8s zSN}cS^<{iiK)=Ji`FpO#^zY!_|D)qeRNAtgmH)m;qC|mq^j(|hL`7uBz+ULUj37gj zksdbnU+LSVo35riSX_4z{UX=%n&}7s0{WuZYoSfwAP`8aKN9P@%e=~1`~1ASL-z%# zw>DO&ixr}c9%4InGc*_y42bdEk)ZdG7-mTu0bD@_vGAr*NcFoMW;@r?@LUhRI zCUJgHb`O?M3!w)|CPu~ej%fddw20lod?Ufp8Dmt0PbnA0J%KE^2~AIcnKP()025V> zG>noSM3$5Btmc$GZoyP^v1@Poz0FD(6YSTH@aD0}BXva?LphAiSz9f&Y(aDAzBnUh z?d2m``~{z;{}kZJ>a^wYI?ry(V9hIoh;|EFc0*-#*`$T0DRQ1;WsqInG;YPS+I4{g zJGpKk%%Sdc5xBa$Q^_I~(F97eqDO7AN3EN0u)PNBAb+n+ zWBTxQx^;O9o0`=g+Zrt_{lP!sgWZHW?8bLYS$;1a@&7w9rD9|Ge;Gb?sEjFoF9-6v z#!2)t{DMHZ2@0W*fCx;62d#;jouz`R5Y(t{BT=$N4yr^^o$ON8d{PQ=!O zX17^CrdM~7D-;ZrC!||<+FEOxI_WI3CA<35va%4v>gc zEX-@h8esj=a4szW7x{0g$hwoWRQG$yK{@3mqd-jYiVofJE!Wok1* znV7Gm&Ssq#hFuvj1sRyHg(6PFA5U*Q8Rx>-blOs=lb`qa{zFy&n4xY;sd$fE+<3EI z##W$P9M{B3c3Si9gw^jlPU-JqD~Cye;wr=XkV7BSv#6}DrsXWFJ3eUNrc%7{=^sP> zrp)BWKA9<}^R9g!0q7yWlh;gr_TEOD|#BmGq<@IV;ueg+D2}cjpp+dPf&Q(36sFU&K8}hA85U61faW&{ zlB`9HUl-WWCG|<1XANN3JVAkRYvr5U4q6;!G*MTdSUt*Mi=z_y3B1A9j-@aK{lNvx zK%p23>M&=KTCgR!Ee8c?DAO2_R?B zkaqr6^BSP!8dHXxj%N1l+V$_%vzHjqvu7p@%Nl6;>y*S}M!B=pz=aqUV#`;h%M0rU zHfcog>kv3UZAEB*g7Er@t6CF8kHDmKTjO@rejA^ULqn!`LwrEwOVmHx^;g|5PHm#B zZ+jjWgjJ!043F+&#_;D*mz%Q60=L9Ove|$gU&~As5^uz@2-BfQ!bW)Khn}G+Wyjw- z19qI#oB(RSNydn0t~;tAmK!P-d{b-@@E5|cdgOS#!>%#Rj6ynkMvaW@37E>@hJP^8 z2zk8VXx|>#R^JCcWdBCy{0nPmYFOxN55#^-rlqobe0#L6)bi?E?SPymF*a5oDDeSd zO0gx?#KMoOd&G(2O@*W)HgX6y_aa6iMCl^~`{@UR`nMQE`>n_{_aY5nA}vqU8mt8H z`oa=g0SyiLd~BxAj2~l$zRSDHxvDs;I4>+M$W`HbJ|g&P+$!U7-PHX4RAcR0szJ*( ze-417=bO2q{492SWrqDK+L3#ChUHtz*@MP)e^%@>_&#Yk^1|tv@j4%3T)diEX zATx4K*hcO`sY$jk#jN5WD<=C3nvuVsRh||qDHnc~;Kf59zr0;c7VkVSUPD%NnnJC_ zl3F^#f_rDu8l}l8qcAz0FFa)EAt32IUy_JLIhU_J^l~FRH&6-ivSpG2PRqzDdMWft>Zc(c)#tb%wgmWN%>IOPm zZi-noqS!^Ftb81pRcQi`X#UhWK70hy4tGW1mz|+vI8c*h@ zfFGJtW3r>qV>1Z0r|L>7I3un^gcep$AAWfZHRvB|E*kktY$qQP_$YG60C@X~tTQjB3%@`uz!qxtxF+LE!+=nrS^07hn` zEgAp!h|r03h7B!$#OZW#ACD+M;-5J!W+{h|6I;5cNnE(Y863%1(oH}_FTW})8zYb$7czP zg~Szk1+_NTm6SJ0MS_|oSz%e(S~P-&SFp;!k?uFayytV$8HPwuyELSXOs^27XvK-D zOx-Dl!P|28DK6iX>p#Yb%3`A&CG0X2S43FjN%IB}q(!hC$fG}yl1y9W&W&I@KTg6@ zK^kpH8=yFuP+vI^+59|3%Zqnb5lTDAykf z9S#X`3N(X^SpdMyWQGOQRjhiwlj!0W-yD<3aEj^&X%=?`6lCy~?`&WSWt z?U~EKFcCG_RJ(Qp7j=$I%H8t)Z@6VjA#>1f@EYiS8MRHZphp zMA_5`znM=pzUpBPO)pXGYpQ6gkine{6u_o!P@Q+NKJ}k!_X7u|qfpAyIJb$_#3@wJ z<1SE2Edkfk9C!0t%}8Yio09^F`YGzpaJHGk*-ffsn85@)%4@`;Fv^8q(-Wk7r=Q8p zT&hD`5(f?M{gfzGbbwh8(}G#|#fDuk7v1W)5H9wkorE0ZZjL0Q1=NRGY>zwgfm81DdoaVwNH;or{{eSyybt)m<=zXoA^RALYG-2t zouH|L*BLvmm9cdMmn+KGopyR@4*=&0&4g|FLoreZOhRmh=)R0bg~ zT2(8V_q7~42-zvb)+y959OAv!V$u(O3)%Es0M@CRFmG{5sovIq4%8Ahjk#*5w{+)+ zMWQoJI_r$HxL5km1#6(e@{lK3Udc~n0@g`g$s?VrnQJ$!oPnb?IHh-1qA`Rz$)Ai< z6w$-MJW-gKNvOhL+XMbE7&mFt`x1KY>k4(!KbbpZ`>`K@1J<(#vVbjx@Z@(6Q}MF# zMnbr-f55(cTa^q4+#)=s+ThMaV~E`B8V=|W_fZWDwiso8tNMTNse)RNBGi=gVwgg% zbOg8>mbRN%7^Um-7oj4=6`$|(K7!+t^90a{$18Z>}<#!bm%ZEFQ{X(yBZMc>lCz0f1I2w9Sq zuGh<9<=AO&g6BZte6hn>Qmvv;Rt)*cJfTr2=~EnGD8P$v3R|&1RCl&7)b+`=QGapi zPbLg_pxm`+HZurtFZ;wZ=`Vk*do~$wB zxoW&=j0OTbQ=Q%S8XJ%~qoa3Ea|au5o}_(P;=!y-AjFrERh%8la!z6Fn@lR?^E~H12D?8#ht=1F;7@o4$Q8GDj;sSC%Jfn01xgL&%F2 zwG1|5ikb^qHv&9hT8w83+yv&BQXOQyMVJSBL(Ky~p)gU3#%|blG?IR9rP^zUbs7rOA0X52Ao=GRt@C&zlyjNLv-} z9?*x{y(`509qhCV*B47f2hLrGl^<@SuRGR!KwHei?!CM10Tq*YDIoBNyRuO*>3FU? zHjipIE#B~y3FSfOsMfj~F9PNr*H?0oHyYB^G(YyNh{SxcE(Y-`x5jFMKb~HO*m+R% zrq|ic4fzJ#USpTm;X7K+E%xsT_3VHKe?*uc4-FsILUH;kL>_okY(w`VU*8+l>o>Jm ziU#?2^`>arnsl#)*R&nf_%>A+qwl%o{l(u)M?DK1^mf260_oteV3#E_>6Y4!_hhVD zM8AI6MM2V*^_M^sQ0dmHu11fy^kOqXqzpr?K$`}BKWG`=Es(9&S@K@)ZjA{lj3ea7_MBP zk(|hBFRjHVMN!sNUkrB;(cTP)T97M$0Dtc&UXSec<+q?y>5=)}S~{Z@ua;1xt@=T5 zI7{`Z=z_X*no8s>mY;>BvEXK%b`a6(DTS6t&b!vf_z#HM{Uoy_5fiB(zpkF{})ruka$iX*~pq1ZxD?q68dIo zIZSVls9kFGsTwvr4{T_LidcWtt$u{kJlW7moRaH6+A5hW&;;2O#$oKyEN8kx`LmG)Wfq4ykh+q{I3|RfVpkR&QH_x;t41Uw z`P+tft^E2B$domKT@|nNW`EHwyj>&}K;eDpe z1bNOh=fvIfk`&B61+S8ND<(KC%>y&?>opCnY*r5M+!UrWKxv0_QvTlJc>X#AaI^xo zaRXL}t5Ej_Z$y*|w*$6D+A?Lw-CO-$itm^{2Ct82-<0IW)0KMNvJHgBrdsIR0v~=H z?n6^}l{D``Me90`^o|q!olsF?UX3YSq^6Vu>Ijm>>PaZI8G@<^NGw{Cx&%|PwYrfw zR!gX_%AR=L3BFsf8LxI|K^J}deh0ZdV?$3r--FEX`#INxsOG6_=!v)DI>0q|BxT)z z-G6kzA01M?rba+G_mwNMQD1mbVbNTWmBi*{s_v_Ft9m2Avg!^78(QFu&n6mbRJ2bA zv!b;%yo{g*9l2)>tsZJOOp}U~8VUH`}$ z8p_}t*XIOehezolNa-a2x0BS})Y9}&*TPgua{Ewn-=wVrmJUeU39EKx+%w%=ixQWK zDLpwaNJs65#6o7Ln7~~X+p_o2BR1g~VCfxLzxA{HlWAI6^H;`juI=&r1jQrUv_q0Z z1Ja-tjdktrrP>GOC*#p?*xfQU5MqjMsBe!9lh(u8)w$e@Z|>aUHI5o;MGw*|Myiz3 z-f0;pHg~Q#%*Kx8MxH%AluVXjG2C$)WL-K63@Q`#y9_k_+}eR(x4~dp7oV-ek0H>I zgy8p#i4GN{>#v=pFYUQT(g&b$OeTy-X_#FDgNF8XyfGY6R!>inYn8IR2RDa&O!(6< znXs{W!bkP|s_YI*Yx%4stI`=ZO45IK6rBs`g7sP40ic}GZ58s?Mc$&i`kq_tfci>N zIHrC0H+Qpam1bNa=(`SRKjixBTtm&e`j9porEci!zdlg1RI0Jw#b(_Tb@RQK1Zxr_ z%7SUeH6=TrXt3J@js`4iDD0=IoHhK~I7^W8^Rcp~Yaf>2wVe|Hh1bUpX9ATD#moByY57-f2Ef1TP^lBi&p5_s7WGG9|0T}dlfxOx zXvScJO1Cnq`c`~{Dp;{;l<-KkCDE+pmexJkd}zCgE{eF=)K``-qC~IT6GcRog_)!X z?fK^F8UDz$(zFUrwuR$qro5>qqn>+Z%<5>;_*3pZ8QM|yv9CAtrAx;($>4l^_$_-L z*&?(77!-=zvnCVW&kUcZMb6;2!83si518Y%R*A3JZ8Is|kUCMu`!vxDgaWjs7^0j( ziTaS4HhQ)ldR=r)_7vYFUr%THE}cPF{0H45FJ5MQW^+W>P+eEX2kLp3zzFe*-pFVA zdDZRybv?H|>`9f$AKVjFWJ=wegO7hOOIYCtd?Vj{EYLT*^gl35|HQ`R=ti+ADm{jyQE7K@kdjuqJhWVSks>b^ zxha88-h3s;%3_5b1TqFCPTxVjvuB5U>v=HyZ$?JSk+&I%)M7KE*wOg<)1-Iy)8-K! z^XpIt|0ibmk9RtMmlUd7#Ap3Q!q9N4atQy)TmrhrFhfx1DAN`^vq@Q_SRl|V z#lU<~n67$mT)NvHh`%als+G-)x1`Y%4Bp*6Un5Ri9h=_Db zA-AdP!f>f0m@~>7X#uBM?diI@)Egjuz@jXKvm zJo+==juc9_<;CqeRaU9_Mz@;3e=E4=6TK+c`|uu#pIqhSyNm`G(X)&)B`8q0RBv#> z`gGlw(Q=1Xmf55VHj%C#^1lpc>LY8kfA@|rlC1EA<1#`iuyNO z(=;irt{_&K=i4)^x%;U(Xv<)+o=dczC5H3W~+e|f~{*ucxj@{Yi-cw^MqYr3fN zF5D+~!wd$#al?UfMnz(@K#wn`_5na@rRr8XqN@&M&FGEC@`+OEv}sI1hw>Up0qAWf zL#e4~&oM;TVfjRE+10B_gFlLEP9?Q-dARr3xi6nQqnw>k-S;~b z;!0s2VS4}W8b&pGuK=7im+t(`nz@FnT#VD|!)eQNp-W6)@>aA+j~K*H{$G`y2|QHY z|Hmy+CR@#jWY4~)lr1qBJB_RfHJFfP<}pK5(#ZZGSqcpyS&}01LnTWk5fzmXMGHkJ zTP6L^B+uj;lmB_W<~4=${+v0>z31M!-_O@o-O9GyW)j_mjx}!0@br_LE-7SIuPP84 z;5=O(U*g_um0tyG|61N@d9lEuOeiRd+#NY^{nd5;-CVlw&Ap7J?qwM^?E29wvS}2d zbzar4Fz&RSR(-|s!Z6+za&Z zY#D<5q_JUktIzvL0)yq_kLWG6DO{ri=?c!y!f(Dk%G{8)k`Gym%j#!OgXVDD3;$&v@qy#ISJfp=Vm>pls@9-mapVQChAHHd-x+OGx)(*Yr zC1qDUTZ6mM(b_hi!TuFF2k#8uI2;kD70AQ&di$L*4P*Y-@p`jdm%_c3f)XhYD^6M8&#Y$ZpzQMcR|6nsH>b=*R_Von!$BTRj7yGCXokoAQ z&ANvx0-Epw`QIEPgI(^cS2f(Y85yV@ygI{ewyv5Frng)e}KCZF7JbR(&W618_dcEh(#+^zZFY;o<815<5sOHQdeax9_!PyM&;{P zkBa5xymca0#)c#tke@3KNEM8a_mT&1gm;p&&JlMGH(cL(b)BckgMQ^9&vRwj!~3@l zY?L5}=Jzr080OGKb|y`ee(+`flQg|!lo6>=H)X4`$Gz~hLmu2a%kYW_Uu8x09Pa0J zKZ`E$BKJ=2GPj_3l*TEcZ*uYRr<*J^#5pILTT;k_cgto1ZL-%slyc16J~OH-(RgDA z%;EjEnoUkZ&acS{Q8`{i6T5^nywgqQI5bDIymoa7CSZG|WWVk>GM9)zy*bNih|QIm z%0+(Nnc*a_xo;$=!HQYaapLms>J1ToyjtFByY`C2H1wT#178#4+|{H0BBqtCdd$L% z_3Hc60j@{t9~MjM@LBalR&6@>B;9?r<7J~F+WXyYu*y3?px*=8MAK@EA+jRX8{CG?GI-< z54?Dc9CAh>QTAvyOEm0^+x;r2BWX|{3$Y7)L5l*qVE*y0`7J>l2wCmW zL1?|a`pJ-l{fb_N;R(Z9UMiSj6pQjOvQ^%DvhIJF!+Th7jO2~1f1N+(-TyCFYQZYw z4)>7caf^Ki_KJ^Zx2JUb z&$3zJy!*+rCV4%jqwyuNY3j1ZEiltS0xTzd+=itTb;IPYpaf?8Y+RSdVdpacB(bVQ zC(JupLfFp8y43%PMj2}T|VS@%LVp>hv4Y!RPMF?pp8U_$xCJ)S zQx!69>bphNTIb9yn*_yfj{N%bY)t{L1cs8<8|!f$;UQ*}IN=2<6lA;x^(`8t?;+ST zh)z4qeYYgZkIy{$4x28O-pugO&gauRh3;lti9)9Pvw+^)0!h~%m&8Q!AKX%urEMnl z?yEz?g#ODn$UM`+Q#$Q!6|zsq_`dLO5YK-6bJM6ya>}H+vnW^h?o$z;V&wvuM$dR& zeEq;uUUh$XR`TWeC$$c&Jjau2it3#%J-y}Qm>nW*s?En?R&6w@sDXMEr#8~$=b(gk zwDC3)NtAP;M2BW_lL^5ShpK$D%@|BnD{=!Tq)o(5@z3i7Z){} zGr}Exom_qDO{kAVkZ*MbLNHE666Kina#D{&>Jy%~w7yX$oj;cYCd^p9zy z8*+wgSEcj$4{WxKmCF(5o7U4jqwEvO&dm1H#7z}%VXAbW&W24v-tS6N3}qrm1OnE)fUkoE8yMMn9S$?IswS88tQWm4#Oid#ckgr6 zRtHm!mfNl-`d>O*1~d7%;~n+{Rph6BBy^95zqI{K((E!iFQ+h*C3EsbxNo_aRm5gj zKYug($r*Q#W9`p%Bf{bi6;IY0v`pB^^qu)gbg9QHQ7 zWBj(a1YSu)~2RK8Pi#C>{DMlrqFb9e_RehEHyI{n?e3vL_}L>kYJC z_ly$$)zFi*SFyNrnOt(B*7E$??s67EO%DgoZL2XNk8iVx~X_)o++4oaK1M|ou73vA0K^503j@uuVmLcHH4ya-kOIDfM%5%(E z+Xpt~#7y2!KB&)PoyCA+$~DXqxPxxALy!g-O?<9+9KTk4Pgq4AIdUkl`1<1#j^cJg zgU3`0hkHj_jxV>`Y~%LAZl^3o0}`Sm@iw7kwff{M%VwtN)|~!p{AsfA6vB5UolF~d zHWS%*uBDt<9y!9v2Xe|au&1j&iR1HXCdyCjxSgG*L{wmTD4(NQ=mFjpa~xooc6kju z`~+d{j7$h-;HAB04H!Zscu^hZffL#9!p$)9>sRI|Yovm)g@F>ZnosF2EgkU3ln0bR zTA}|+E(tt)!SG)-bEJi_0m{l+(cAz^pi}`9=~n?y&;2eG;d9{M6nj>BHGn(KA2n|O zt}$=FPq!j`p&kQ8>cirSzkU0c08%8{^Qyqi-w2LoO8)^E7;;I1;HQ6B$u0nNaX2CY zSmfi)F`m94zL8>#zu;8|{aBui@RzRKBlP1&mfFxEC@%cjl?NBs`cr^nm){>;$g?rhKr$AO&6qV_Wbn^}5tfFBry^e1`%du2~o zs$~dN;S_#%iwwA_QvmMjh%Qo?0?rR~6liyN5Xmej8(*V9ym*T`xAhHih-v$7U}8=dfXi2i*aAB!xM(Xekg*ix@r|ymDw*{*s0?dlVys2e)z62u1 z+k3esbJE=-P5S$&KdFp+2H7_2e=}OKDrf( z9-207?6$@f4m4B+9E*e((Y89!q?zH|mz_vM>kp*HGXldO0Hg#!EtFhRuOm$u8e~a9 z5(roy7m$Kh+zjW6@zw{&20u?1f2uP&boD}$#Zy)4o&T;vyBoqFiF2t;*g=|1=)PxB z8eM3Mp=l_obbc?I^xyLz?4Y1YDWPa+nm;O<$Cn;@ane616`J9OO2r=rZr{I_Kizyc zP#^^WCdIEp*()rRT+*YZK>V@^Zs=ht32x>Kwe zab)@ZEffz;VM4{XA6e421^h~`ji5r%)B{wZu#hD}f3$y@L0JV9f3g{-RK!A?vBUA}${YF(vO4)@`6f1 z-A|}e#LN{)(eXloDnX4Vs7eH|<@{r#LodP@Nz--$Dg_Par%DCpu2>2jUnqy~|J?eZ zBG4FVsz_A+ibdwv>mLp>P!(t}E>$JGaK$R~;fb{O3($y1ssQQo|5M;^JqC?7qe|hg zu0ZOqeFcp?qVn&Qu7FQJ4hcFi&|nR!*j)MF#b}QO^lN%5)4p*D^H+B){n8%VPUzi! zDihoGcP71a6!ab`l^hK&*dYrVYzJ0)#}xVrp!e;lI!+x+bfCN0KXwUAPU9@#l7@0& QuEJmfE|#`Dqx|px0L@K;Y5)KL diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index ffed3a2..9623276 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,7 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip +networkTimeout=10000 +validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/gradlew b/gradlew index 005bcde..9d0ce63 100755 --- a/gradlew +++ b/gradlew @@ -55,7 +55,7 @@ # Darwin, MinGW, and NonStop. # # (3) This script is generated from the Groovy template -# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt # within the Gradle project. # # You can find Gradle at https://github.com/gradle/gradle/. @@ -69,37 +69,35 @@ app_path=$0 # Need this for daisy-chained symlinks. while - APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path - [ -h "$app_path" ] +APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path +[ -h "$app_path" ] do - ls=$( ls -ld "$app_path" ) - link=${ls#*' -> '} - case $link in #( - /*) app_path=$link ;; #( - *) app_path=$APP_HOME$link ;; - esac +ls=$( ls -ld "$app_path" ) +link=${ls#*' -> '} +case $link in #( +/*) app_path=$link ;; #( +*) app_path=$APP_HOME$link ;; +esac done -APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit - -APP_NAME="Gradle" +# This is normally unused +# shellcheck disable=SC2034 APP_BASE_NAME=${0##*/} - -# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -DEFAULT_JVM_OPTS='-Dfile.encoding=UTF-8 "-Xmx64m" "-Xms64m"' +# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) +APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit # Use the maximum available, or set MAX_FD != -1 to use that value. MAX_FD=maximum warn () { - echo "$*" +echo "$*" } >&2 die () { - echo - echo "$*" - echo - exit 1 +echo +echo "$*" +echo +exit 1 } >&2 # OS specific support (must be 'true' or 'false'). @@ -108,10 +106,10 @@ msys=false darwin=false nonstop=false case "$( uname )" in #( - CYGWIN* ) cygwin=true ;; #( - Darwin* ) darwin=true ;; #( - MSYS* | MINGW* ) msys=true ;; #( - NONSTOP* ) nonstop=true ;; +CYGWIN* ) cygwin=true ;; #( +Darwin* ) darwin=true ;; #( +MSYS* | MINGW* ) msys=true ;; #( +NONSTOP* ) nonstop=true ;; esac CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar @@ -119,39 +117,46 @@ CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar # Determine the Java command to use to start the JVM. if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD=$JAVA_HOME/jre/sh/java - else - JAVACMD=$JAVA_HOME/bin/java - fi - if [ ! -x "$JAVACMD" ] ; then - die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME +if [ -x "$JAVA_HOME/jre/sh/java" ] ; then +# IBM's JDK on AIX uses strange locations for the executables +JAVACMD=$JAVA_HOME/jre/sh/java +else +JAVACMD=$JAVA_HOME/bin/java +fi +if [ ! -x "$JAVACMD" ] ; then +die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME Please set the JAVA_HOME variable in your environment to match the location of your Java installation." - fi +fi else - JAVACMD=java - which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +JAVACMD=java +if ! command -v java >/dev/null 2>&1 +then +die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. Please set the JAVA_HOME variable in your environment to match the location of your Java installation." fi +fi # Increase the maximum file descriptors if we can. if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then - case $MAX_FD in #( - max*) - MAX_FD=$( ulimit -H -n ) || - warn "Could not query maximum file descriptor limit" - esac - case $MAX_FD in #( - '' | soft) :;; #( - *) - ulimit -n "$MAX_FD" || - warn "Could not set maximum file descriptor limit to $MAX_FD" - esac +case $MAX_FD in #( +max*) +# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. +# shellcheck disable=SC2039,SC3045 +MAX_FD=$( ulimit -H -n ) || +warn "Could not query maximum file descriptor limit" +esac +case $MAX_FD in #( +'' | soft) :;; #( +*) +# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. +# shellcheck disable=SC2039,SC3045 +ulimit -n "$MAX_FD" || +warn "Could not set maximum file descriptor limit to $MAX_FD" +esac fi # Collect all arguments for the java command, stacking in reverse order: @@ -164,46 +169,56 @@ fi # For Cygwin or MSYS, switch paths to Windows format before running java if "$cygwin" || "$msys" ; then - APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) - CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) - - JAVACMD=$( cygpath --unix "$JAVACMD" ) - - # Now convert the arguments - kludge to limit ourselves to /bin/sh - for arg do - if - case $arg in #( - -*) false ;; # don't mess with options #( - /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath - [ -e "$t" ] ;; #( - *) false ;; - esac - then - arg=$( cygpath --path --ignore --mixed "$arg" ) - fi - # Roll the args list around exactly as many times as the number of - # args, so each arg winds up back in the position where it started, but - # possibly modified. - # - # NB: a `for` loop captures its iteration list before it begins, so - # changing the positional parameters here affects neither the number of - # iterations, nor the values presented in `arg`. - shift # remove old arg - set -- "$@" "$arg" # push replacement arg - done +APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) +CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) + +JAVACMD=$( cygpath --unix "$JAVACMD" ) + +# Now convert the arguments - kludge to limit ourselves to /bin/sh +for arg do +if +case $arg in #( +-*) false ;; # don't mess with options #( +/?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath +[ -e "$t" ] ;; #( +*) false ;; +esac +then +arg=$( cygpath --path --ignore --mixed "$arg" ) +fi +# Roll the args list around exactly as many times as the number of +# args, so each arg winds up back in the position where it started, but +# possibly modified. +# +# NB: a `for` loop captures its iteration list before it begins, so +# changing the positional parameters here affects neither the number of +# iterations, nor the values presented in `arg`. +shift # remove old arg +set -- "$@" "$arg" # push replacement arg +done fi -# Collect all arguments for the java command; -# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of -# shell script including quotes and variable substitutions, so put them in -# double quotes to make sure that they get re-expanded; and -# * put everything else in single quotes, so that it's not re-expanded. + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Collect all arguments for the java command: +# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, +# and any embedded shellness will be escaped. +# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be +# treated as '${Hostname}' itself on the command line. set -- \ - "-Dorg.gradle.appname=$APP_BASE_NAME" \ - -classpath "$CLASSPATH" \ - org.gradle.wrapper.GradleWrapperMain \ - "$@" +"-Dorg.gradle.appname=$APP_BASE_NAME" \ +-classpath "$CLASSPATH" \ +org.gradle.wrapper.GradleWrapperMain \ +"$@" + +# Stop when "xargs" is not available. +if ! command -v xargs >/dev/null 2>&1 +then +die "xargs is not available" +fi # Use "xargs" to parse quoted args. # @@ -225,10 +240,10 @@ set -- \ # eval "set -- $( - printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | - xargs -n1 | - sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | - tr '\n' ' ' - )" '"$@"' +printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | +xargs -n1 | +sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | +tr '\n' ' ' +)" '"$@"' exec "$JAVACMD" "$@" diff --git a/gradlew.bat b/gradlew.bat index 6a68175..25da30d 100644 --- a/gradlew.bat +++ b/gradlew.bat @@ -14,7 +14,7 @@ @rem limitations under the License. @rem -@if "%DEBUG%" == "" @echo off +@if "%DEBUG%"=="" @echo off @rem ########################################################################## @rem @rem Gradle startup script for Windows @@ -25,7 +25,8 @@ if "%OS%"=="Windows_NT" setlocal set DIRNAME=%~dp0 -if "%DIRNAME%" == "" set DIRNAME=. +if "%DIRNAME%"=="" set DIRNAME=. +@rem This is normally unused set APP_BASE_NAME=%~n0 set APP_HOME=%DIRNAME% @@ -33,20 +34,20 @@ set APP_HOME=%DIRNAME% for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -set DEFAULT_JVM_OPTS=-Dfile.encoding=UTF-8 "-Xmx64m" "-Xms64m" +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" @rem Find java.exe if defined JAVA_HOME goto findJavaFromJavaHome set JAVA_EXE=java.exe %JAVA_EXE% -version >NUL 2>&1 -if "%ERRORLEVEL%" == "0" goto execute +if %ERRORLEVEL% equ 0 goto execute -echo. -echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. +echo. 1>&2 +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 goto fail @@ -56,11 +57,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe if exist "%JAVA_EXE%" goto execute -echo. -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. +echo. 1>&2 +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 goto fail @@ -75,13 +76,15 @@ set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar :end @rem End local scope for the variables with windows NT shell -if "%ERRORLEVEL%"=="0" goto mainEnd +if %ERRORLEVEL% equ 0 goto mainEnd :fail rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of rem the _cmd.exe /c_ return code! -if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 -exit /b 1 +set EXIT_CODE=%ERRORLEVEL% +if %EXIT_CODE% equ 0 set EXIT_CODE=1 +if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% +exit /b %EXIT_CODE% :mainEnd if "%OS%"=="Windows_NT" endlocal diff --git a/src/main/java/examples/Examples.java b/src/main/java/examples/Examples.java index c08ae36..ae20c75 100644 --- a/src/main/java/examples/Examples.java +++ b/src/main/java/examples/Examples.java @@ -215,8 +215,9 @@ private static void listGroups(TileDBClient tileDBClient) List excludeTag = null; // 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 = null; // String | search only the children of the groups with this uuid + Boolean withMetadata = false; try { - GroupBrowserData result = apiInstance.listPublicGroups(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent); + GroupBrowserData result = apiInstance.listPublicGroups(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, withMetadata); //or use api.listOwnedGroups(...) / api.listSharedGroups(...) System.out.println(result.getGroups()); } catch (ApiException e) { @@ -232,10 +233,11 @@ 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) + Boolean withMetadata = false; ArrayApi apiInstance = new ArrayApi(tileDBClient.getApiClient()); try { - List result = apiInstance.getArraysInNamespace(namespace); + List result = apiInstance.getArraysInNamespace(namespace, withMetadata); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ArrayApi#getArraysInNamespace"); diff --git a/src/main/java/io/tiledb/cloud/TileDBSQL.java b/src/main/java/io/tiledb/cloud/TileDBSQL.java index 6b76101..ee06055 100644 --- a/src/main/java/io/tiledb/cloud/TileDBSQL.java +++ b/src/main/java/io/tiledb/cloud/TileDBSQL.java @@ -98,7 +98,7 @@ public Pair, Integer> execArrow(){ * * @return */ - public List exec(){ + public List> exec(){ try { if (sql.getResultFormat() == null ){ return apiInstance.runSQL(namespace, sql, ResultFormat.TILEDB_JSON.toString()); 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..2bfb44d 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,8 @@ package io.tiledb.cloud.rest_api; +import java.io.IOException; + 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..59e35be 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; @@ -28,6 +22,7 @@ import okio.BufferedSink; import okio.Okio; import org.apache.oltu.oauth2.client.request.OAuthClientRequest.TokenRequestBuilder; +import org.apache.oltu.oauth2.common.message.types.GrantType; import javax.net.ssl.*; import java.io.File; @@ -46,6 +41,7 @@ import java.security.cert.Certificate; import java.security.cert.CertificateException; import java.security.cert.CertificateFactory; +import java.security.cert.X509Certificate; import java.text.DateFormat; import java.time.LocalDate; import java.time.OffsetDateTime; @@ -53,15 +49,33 @@ import java.util.*; import java.util.Map.Entry; import java.util.concurrent.TimeUnit; +import java.util.function.Supplier; 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.HttpBearerAuth; +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.

*/ public class ApiClient { private String basePath = "/v1"; + protected List servers = new ArrayList(Arrays.asList( + new ServerConfiguration( + "/v1", + "No description provided", + new HashMap() + ) + )); + protected Integer serverIndex = 0; + protected Map serverVariables = null; private boolean debugging = false; private Map defaultHeaderMap = new HashMap(); private Map defaultCookieMap = new HashMap(); @@ -91,8 +105,8 @@ public ApiClient() { initHttpClient(); // Setup authentications (key: authentication name, value: authentication). - authentications.put("ApiKeyAuth", new ApiKeyAuth("header", "X-TILEDB-REST-API-KEY")); authentications.put("BasicAuth", new HttpBasicAuth()); + authentications.put("ApiKeyAuth", new ApiKeyAuth("header", "X-TILEDB-REST-API-KEY")); authentications.put("OAuth2", new OAuth()); // Prevent the authentications from being modified. authentications = Collections.unmodifiableMap(authentications); @@ -109,8 +123,8 @@ public ApiClient(OkHttpClient client) { httpClient = client; // Setup authentications (key: authentication name, value: authentication). - authentications.put("ApiKeyAuth", new ApiKeyAuth("header", "X-TILEDB-REST-API-KEY")); authentications.put("BasicAuth", new HttpBasicAuth()); + authentications.put("ApiKeyAuth", new ApiKeyAuth("header", "X-TILEDB-REST-API-KEY")); authentications.put("OAuth2", new OAuth()); // Prevent the authentications from being modified. authentications = Collections.unmodifiableMap(authentications); @@ -177,8 +191,8 @@ public ApiClient(String basePath, String clientId, String clientSecret, MapsingletonList(retryingOAuth)); // Setup authentications (key: authentication name, value: authentication). - authentications.put("ApiKeyAuth", new ApiKeyAuth("header", "X-TILEDB-REST-API-KEY")); authentications.put("BasicAuth", new HttpBasicAuth()); + authentications.put("ApiKeyAuth", new ApiKeyAuth("header", "X-TILEDB-REST-API-KEY")); // Prevent the authentications from being modified. authentications = Collections.unmodifiableMap(authentications); @@ -204,7 +218,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(); } @@ -226,6 +240,34 @@ public String getBasePath() { */ public ApiClient setBasePath(String basePath) { this.basePath = basePath; + this.serverIndex = null; + return this; + } + + public List getServers() { + return servers; + } + + public ApiClient setServers(List servers) { + this.servers = servers; + return this; + } + + public Integer getServerIndex() { + return serverIndex; + } + + public ApiClient setServerIndex(Integer serverIndex) { + this.serverIndex = serverIndex; + return this; + } + + public Map getServerVariables() { + return serverVariables; + } + + public ApiClient setServerVariables(Map serverVariables) { + this.serverVariables = serverVariables; return this; } @@ -350,10 +392,10 @@ 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); + JSON.setDateFormat(dateFormat); return this; } @@ -361,10 +403,10 @@ 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); + JSON.setSqlDateFormat(dateFormat); return this; } @@ -372,10 +414,10 @@ 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); + JSON.setOffsetDateTimeFormat(dateFormat); return this; } @@ -383,10 +425,10 @@ 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); + JSON.setLocalDateFormat(dateFormat); return this; } @@ -394,10 +436,10 @@ 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); + JSON.setLenientOnJson(lenientOnJson); return this; } @@ -496,6 +538,31 @@ public void setAccessToken(String accessToken) { throw new RuntimeException("No OAuth2 authentication configured!"); } + /** + * Helper method to set credentials for AWSV4 Signature + * + * @param accessKey Access Key + * @param secretKey Secret Key + * @param region Region + * @param service Service to access to + */ + public void setAWS4Configuration(String accessKey, String secretKey, String region, String service) { + throw new RuntimeException("No AWS4 authentication configured!"); + } + + /** + * Helper method to set credentials for AWSV4 Signature + * + * @param accessKey Access Key + * @param secretKey Secret Key + * @param sessionToken Session Token + * @param region Region + * @param service Service to access to + */ + public void setAWS4Configuration(String accessKey, String secretKey, String sessionToken, String region, String service) { + throw new RuntimeException("No AWS4 authentication configured!"); + } + /** * Set the User-Agent header's value (by adding to the default header map). * @@ -678,7 +745,7 @@ public String parameterToString(Object param) { return ""; } else if (param instanceof Date || param instanceof OffsetDateTime || param instanceof LocalDate) { //Serialize to json string and remove the " enclosing characters - String jsonStr = json.serialize(param); + String jsonStr = JSON.serialize(param); return jsonStr.substring(1, jsonStr.length() - 1); } else if (param instanceof Collection) { StringBuilder b = new StringBuilder(); @@ -686,7 +753,7 @@ public String parameterToString(Object param) { if (b.length() > 0) { b.append(","); } - b.append(String.valueOf(o)); + b.append(o); } return b.toString(); } else { @@ -896,7 +963,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") @@ -937,7 +1004,7 @@ public T deserialize(Response response, Type returnType) throws ApiException contentType = "application/json"; } if (isJsonMime(contentType)) { - return json.deserialize(respBody, returnType); + return JSON.deserialize(respBody, returnType); } else if (returnType.equals(String.class)) { // Expecting string, return the raw response body. return (T) respBody; @@ -957,7 +1024,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[]) { @@ -971,13 +1038,13 @@ public RequestBody serialize(Object obj, String contentType) throws ApiException } else if (isJsonMime(contentType)) { String content; if (obj != null) { - content = json.serialize(obj); + content = JSON.serialize(obj); } else { content = null; } return RequestBody.create(content, MediaType.parse(contentType)); } else if (obj instanceof String) { - return RequestBody.create(MediaType.parse(contentType), (String) obj); + return RequestBody.create((String) obj, MediaType.parse(contentType)); } else { throw new ApiException("Content type \"" + contentType + "\" is not supported"); } @@ -987,7 +1054,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 +1118,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 +1133,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 +1197,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 +1244,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 +1267,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 @@ -1212,12 +1279,15 @@ public Request buildRequest(String baseUrl, String path, String method, List queryParams, List if (baseUrl != null) { url.append(baseUrl).append(path); } else { - url.append(basePath).append(path); + String baseURL; + if (serverIndex != null) { + if (serverIndex < 0 || serverIndex >= servers.size()) { + throw new ArrayIndexOutOfBoundsException(String.format( + "Invalid index %d when selecting the host settings. Must be less than %d", serverIndex, servers.size() + )); + } + baseURL = servers.get(serverIndex).URL(serverVariables); + } else { + baseURL = basePath; + } + url.append(baseURL).append(path); } if (queryParams != null && !queryParams.isEmpty()) { @@ -1352,7 +1433,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 { @@ -1450,7 +1531,7 @@ private void addPartToMultiPartBuilder(MultipartBody.Builder mpBuilder, String k } else { String content; if (obj != null) { - content = json.serialize(obj); + content = JSON.serialize(obj); } else { content = null; } @@ -1528,7 +1609,7 @@ public boolean verify(String hostname, SSLSession session) { KeyStore caKeyStore = newEmptyKeyStore(password); int index = 0; for (Certificate certificate : certificates) { - String certificateAlias = "ca" + Integer.toString(index++); + String certificateAlias = "ca" + (index++); caKeyStore.setCertificateEntry(certificateAlias, certificate); } trustManagerFactory.init(caKeyStore); @@ -1563,7 +1644,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..808e648 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,18 +16,19 @@ 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class ApiException extends Exception { + private static final long serialVersionUID = 1L; + private int code = 0; private Map> responseHeaders = null; private String responseBody = null; - + /** *

Constructor for ApiException.

*/ @@ -99,7 +100,7 @@ public ApiException(String message, Throwable throwable, int code, Map> responseHeaders, String responseBody) { - this((String) null, (Throwable) null, code, responseHeaders, responseBody); + this("Response Code: " + code + " Response Body: " + responseBody, (Throwable) null, code, responseHeaders, responseBody); } /** 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/Configuration.java b/src/main/java/io/tiledb/cloud/rest_api/Configuration.java index fd82662..c2eae8b 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,8 +13,10 @@ 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class Configuration { + public static final String VERSION = "2.17.51"; + private static ApiClient defaultApiClient = new ApiClient(); /** 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/JSON.java b/src/main/java/io/tiledb/cloud/rest_api/JSON.java index a18f608..4f699ea 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). @@ -22,144 +22,8 @@ import com.google.gson.stream.JsonWriter; import com.google.gson.JsonElement; import io.gsonfire.GsonFireBuilder; +import io.gsonfire.TypeSelector; -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; @@ -172,7 +36,9 @@ import java.time.OffsetDateTime; import java.time.format.DateTimeFormatter; import java.util.Date; +import java.util.Locale; import java.util.Map; +import java.util.HashMap; /* * A JSON utility class @@ -220,150 +86,162 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri return clazz; } - { + static { GsonBuilder gsonBuilder = createGson(); gsonBuilder.registerTypeAdapter(Date.class, dateTypeAdapter); gsonBuilder.registerTypeAdapter(java.sql.Date.class, sqlDateTypeAdapter); 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.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/Pair.java b/src/main/java/io/tiledb/cloud/rest_api/Pair.java index b71d75a..5fbb234 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") 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/ServerConfiguration.java b/src/main/java/io/tiledb/cloud/rest_api/ServerConfiguration.java index 199f405..d39750a 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/ServerConfiguration.java +++ b/src/main/java/io/tiledb/cloud/rest_api/ServerConfiguration.java @@ -5,6 +5,7 @@ /** * Representing a Server configuration. */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class ServerConfiguration { public String URL; public String description; @@ -42,7 +43,7 @@ public String URL(Map variables) { throw new IllegalArgumentException("The variable " + name + " in the server URL has invalid value " + value + "."); } } - url = url.replaceAll("\\{" + name + "\\}", value); + url = url.replace("{" + name + "}", value); } return url; } diff --git a/src/main/java/io/tiledb/cloud/rest_api/ServerVariable.java b/src/main/java/io/tiledb/cloud/rest_api/ServerVariable.java index 3a082af..c9db9f5 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/ServerVariable.java +++ b/src/main/java/io/tiledb/cloud/rest_api/ServerVariable.java @@ -5,6 +5,7 @@ /** * Representing a Server Variable for server URL template substitution. */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class ServerVariable { public String description; public String defaultValue; 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..c207942 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") 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/api/ArrayApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/ArrayApi.java index 9b366c6..0f6dcfb 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/api/ArrayApi.java +++ b/src/main/java/io/tiledb/cloud/rest_api/api/ArrayApi.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,23 +14,24 @@ package io.tiledb.cloud.rest_api.api; import io.tiledb.cloud.rest_api.ApiCallback; -import io.tiledb.cloud.rest_api.model.ArrayActivityLog; -import io.tiledb.cloud.rest_api.model.ArrayEndTimestampData; -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.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.ApiResponse; import io.tiledb.cloud.rest_api.Configuration; import io.tiledb.cloud.rest_api.Pair; +import io.tiledb.cloud.rest_api.ProgressRequestBody; +import io.tiledb.cloud.rest_api.ProgressResponseBody; import com.google.gson.reflect.TypeToken; +import java.io.IOException; + +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; @@ -39,7 +40,14 @@ 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.Error; +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; @@ -124,8 +132,8 @@ public okhttp3.Call arrayActivityLogCall(String namespace, String array, Integer // create path and map variables String localVarPath = "/arrays/{namespace}/{array}/activity" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -162,33 +170,29 @@ public okhttp3.Call arrayActivityLogCall(String namespace, String array, Integer } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return arrayActivityLogCall(namespace, array, start, end, eventTypes, taskId, hasTaskId, _callback); } @@ -277,13 +281,14 @@ public okhttp3.Call arrayActivityLogAsync(String namespace, String array, Intege * @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 last_accessed, size, name (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 ApiException If fail to serialize the request body object @@ -295,7 +300,7 @@ public okhttp3.Call arrayActivityLogAsync(String namespace, String array, Intege 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, final ApiCallback _callback) throws ApiException { + 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[] { }; @@ -364,6 +369,10 @@ public okhttp3.Call arraysBrowserOwnedGetCall(Integer page, Integer perPage, Str localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "file_property", fileProperty)); } + if (withMetadata != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("with_metadata", withMetadata)); + } + final String[] localVarAccepts = { "application/json" }; @@ -373,23 +382,19 @@ public okhttp3.Call arraysBrowserOwnedGetCall(Integer page, Integer perPage, Str } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = arraysBrowserOwnedGetCall(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, _callback); - return localVarCall; + 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 { + return arraysBrowserOwnedGetCall(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, withMetadata, _callback); } @@ -400,13 +405,14 @@ private okhttp3.Call arraysBrowserOwnedGetValidateBeforeCall(Integer page, Integ * @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 last_accessed, size, name (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 ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -417,8 +423,8 @@ private okhttp3.Call arraysBrowserOwnedGetValidateBeforeCall(Integer page, Integ 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) throws ApiException { - ApiResponse localVarResp = arraysBrowserOwnedGetWithHttpInfo(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty); + 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(); } @@ -429,13 +435,14 @@ public ArrayBrowserData arraysBrowserOwnedGet(Integer page, Integer perPage, Str * @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 last_accessed, size, name (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 ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -446,8 +453,8 @@ public ArrayBrowserData arraysBrowserOwnedGet(Integer page, Integer perPage, Str 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) throws ApiException { - okhttp3.Call localVarCall = arraysBrowserOwnedGetValidateBeforeCall(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, null); + 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); } @@ -459,13 +466,14 @@ public ApiResponse arraysBrowserOwnedGetWithHttpInfo(Integer p * @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 last_accessed, size, name (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 ApiException If fail to process the API call, e.g. serializing the request body object @@ -477,9 +485,9 @@ public ApiResponse arraysBrowserOwnedGetWithHttpInfo(Integer p 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, final ApiCallback _callback) throws ApiException { + 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, _callback); + 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; @@ -546,23 +554,19 @@ public okhttp3.Call arraysBrowserOwnedSidebarGetCall(List fileType, List } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return arraysBrowserOwnedSidebarGetCall(fileType, excludeFileType, fileProperty, _callback); } @@ -639,13 +643,14 @@ public okhttp3.Call arraysBrowserOwnedSidebarGetAsync(List fileType, Lis * @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 last_accessed, size, name (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 ApiException If fail to serialize the request body object @@ -657,7 +662,7 @@ public okhttp3.Call arraysBrowserOwnedSidebarGetAsync(List fileType, Lis 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, final ApiCallback _callback) throws ApiException { + 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[] { }; @@ -726,6 +731,10 @@ public okhttp3.Call arraysBrowserPublicGetCall(Integer page, Integer perPage, St localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "file_property", fileProperty)); } + if (withMetadata != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("with_metadata", withMetadata)); + } + final String[] localVarAccepts = { "application/json" }; @@ -735,23 +744,19 @@ public okhttp3.Call arraysBrowserPublicGetCall(Integer page, Integer perPage, St } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = arraysBrowserPublicGetCall(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, _callback); - return localVarCall; + 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 { + return arraysBrowserPublicGetCall(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, withMetadata, _callback); } @@ -762,13 +767,14 @@ private okhttp3.Call arraysBrowserPublicGetValidateBeforeCall(Integer page, Inte * @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 last_accessed, size, name (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 ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -779,8 +785,8 @@ private okhttp3.Call arraysBrowserPublicGetValidateBeforeCall(Integer page, Inte 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) throws ApiException { - ApiResponse localVarResp = arraysBrowserPublicGetWithHttpInfo(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty); + 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(); } @@ -791,13 +797,14 @@ public ArrayBrowserData arraysBrowserPublicGet(Integer page, Integer perPage, St * @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 last_accessed, size, name (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 ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -808,8 +815,8 @@ public ArrayBrowserData arraysBrowserPublicGet(Integer page, Integer perPage, St 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) throws ApiException { - okhttp3.Call localVarCall = arraysBrowserPublicGetValidateBeforeCall(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, null); + 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); } @@ -821,13 +828,14 @@ public ApiResponse arraysBrowserPublicGetWithHttpInfo(Integer * @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 last_accessed, size, name (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 ApiException If fail to process the API call, e.g. serializing the request body object @@ -839,9 +847,9 @@ public ApiResponse arraysBrowserPublicGetWithHttpInfo(Integer 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, final ApiCallback _callback) throws ApiException { + 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, _callback); + 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; @@ -908,23 +916,19 @@ public okhttp3.Call arraysBrowserPublicSidebarGetCall(List fileType, Lis } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return arraysBrowserPublicSidebarGetCall(fileType, excludeFileType, fileProperty, _callback); } @@ -1001,7 +1005,7 @@ public okhttp3.Call arraysBrowserPublicSidebarGetAsync(List fileType, Li * @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 last_accessed, size, name (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) @@ -1009,6 +1013,7 @@ public okhttp3.Call arraysBrowserPublicSidebarGetAsync(List fileType, Li * @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 ApiException If fail to serialize the request body object @@ -1020,7 +1025,7 @@ public okhttp3.Call arraysBrowserPublicSidebarGetAsync(List fileType, Li 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, final ApiCallback _callback) throws ApiException { + 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[] { }; @@ -1093,6 +1098,10 @@ public okhttp3.Call arraysBrowserSharedGetCall(Integer page, Integer perPage, St localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "shared_to", sharedTo)); } + if (withMetadata != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("with_metadata", withMetadata)); + } + final String[] localVarAccepts = { "application/json" }; @@ -1102,23 +1111,19 @@ public okhttp3.Call arraysBrowserSharedGetCall(Integer page, Integer perPage, St } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = arraysBrowserSharedGetCall(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, sharedTo, _callback); - return localVarCall; + 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 { + return arraysBrowserSharedGetCall(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, sharedTo, withMetadata, _callback); } @@ -1129,7 +1134,7 @@ private okhttp3.Call arraysBrowserSharedGetValidateBeforeCall(Integer page, Inte * @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 last_accessed, size, name (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) @@ -1137,6 +1142,7 @@ private okhttp3.Call arraysBrowserSharedGetValidateBeforeCall(Integer page, Inte * @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 ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1147,8 +1153,8 @@ private okhttp3.Call arraysBrowserSharedGetValidateBeforeCall(Integer page, Inte 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) throws ApiException { - ApiResponse localVarResp = arraysBrowserSharedGetWithHttpInfo(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, sharedTo); + 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(); } @@ -1159,7 +1165,7 @@ public ArrayBrowserData arraysBrowserSharedGet(Integer page, Integer perPage, St * @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 last_accessed, size, name (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) @@ -1167,6 +1173,7 @@ public ArrayBrowserData arraysBrowserSharedGet(Integer page, Integer perPage, St * @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 ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1177,8 +1184,8 @@ public ArrayBrowserData arraysBrowserSharedGet(Integer page, Integer perPage, St 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) throws ApiException { - okhttp3.Call localVarCall = arraysBrowserSharedGetValidateBeforeCall(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, sharedTo, null); + 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); } @@ -1190,7 +1197,7 @@ public ApiResponse arraysBrowserSharedGetWithHttpInfo(Integer * @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 last_accessed, size, name (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) @@ -1198,6 +1205,7 @@ public ApiResponse arraysBrowserSharedGetWithHttpInfo(Integer * @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 ApiException If fail to process the API call, e.g. serializing the request body object @@ -1209,9 +1217,9 @@ public ApiResponse arraysBrowserSharedGetWithHttpInfo(Integer 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, final ApiCallback _callback) throws ApiException { + 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, _callback); + 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; @@ -1283,23 +1291,19 @@ public okhttp3.Call arraysBrowserSharedSidebarGetCall(List fileType, Lis } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return arraysBrowserSharedSidebarGetCall(fileType, excludeFileType, fileProperty, sharedTo, _callback); } @@ -1408,8 +1412,8 @@ public okhttp3.Call arraysNamespaceArrayEndTimestampsGetCall(String namespace, S // create path and map variables String localVarPath = "/arrays/{namespace}/{array}/end_timestamps" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1434,33 +1438,29 @@ public okhttp3.Call arraysNamespaceArrayEndTimestampsGetCall(String namespace, S } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return arraysNamespaceArrayEndTimestampsGetCall(namespace, array, page, perPage, _callback); } @@ -1568,8 +1568,8 @@ public okhttp3.Call consolidateArrayCall(String namespace, String array, ArrayCo // create path and map variables String localVarPath = "/arrays/{namespace}/{array}/consolidate" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1593,31 +1593,28 @@ public okhttp3.Call consolidateArrayCall(String namespace, String array, ArrayCo localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return consolidateArrayCall(namespace, array, consolidateRequest, _callback); } @@ -1720,8 +1717,8 @@ public okhttp3.Call createArrayCall(String namespace, String array, String conte // create path and map variables String localVarPath = "/arrays/{namespace}/{array}" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1753,36 +1750,33 @@ public okhttp3.Call createArrayCall(String namespace, String array, String conte localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return createArrayCall(namespace, array, contentType, arraySchema, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, _callback); } @@ -1889,8 +1883,8 @@ public okhttp3.Call deleteArrayCall(String namespace, String array, String conte // create path and map variables String localVarPath = "/arrays/{namespace}/{array}" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1911,38 +1905,34 @@ public okhttp3.Call deleteArrayCall(String namespace, String array, String conte } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return deleteArrayCall(namespace, array, contentType, _callback); } @@ -2042,8 +2032,8 @@ public okhttp3.Call deregisterArrayCall(String namespace, String array, final Ap // create path and map variables String localVarPath = "/arrays/{namespace}/{array}/deregister" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2060,33 +2050,29 @@ public okhttp3.Call deregisterArrayCall(String namespace, String array, final Ap } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return deregisterArrayCall(namespace, array, _callback); } @@ -2184,8 +2170,8 @@ public okhttp3.Call fragmentInfoCall(String namespace, String array, String cont // create path and map variables String localVarPath = "/arrays/{namespace}/{array}/fragment_info" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2213,36 +2199,33 @@ public okhttp3.Call fragmentInfoCall(String namespace, String array, String cont localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return fragmentInfoCall(namespace, array, contentType, fragmentInfoRequest, _callback); } @@ -2347,9 +2330,9 @@ public okhttp3.Call getActivityLogByIdCall(String namespace, String array, Strin // 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())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())) + .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2366,38 +2349,34 @@ public okhttp3.Call getActivityLogByIdCall(String namespace, String array, Strin } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return getActivityLogByIdCall(namespace, array, id, _callback); } @@ -2520,23 +2499,19 @@ public okhttp3.Call getAllArrayMetadataCall(String publicShare, final ApiCallbac } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return getAllArrayMetadataCall(publicShare, _callback); } @@ -2635,8 +2610,8 @@ public okhttp3.Call getArrayCall(String namespace, String array, String contentT // create path and map variables String localVarPath = "/arrays/{namespace}/{array}" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2649,7 +2624,8 @@ public okhttp3.Call getArrayCall(String namespace, String array, String contentT } final String[] localVarAccepts = { - "application/json", "application/capnp" + "application/json", + "application/capnp" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2657,38 +2633,34 @@ public okhttp3.Call getArrayCall(String namespace, String array, String contentT } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return getArrayCall(namespace, array, contentType, _callback); } @@ -2795,8 +2767,8 @@ public okhttp3.Call getArrayMaxBufferSizesCall(String namespace, String array, S // 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())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2825,43 +2797,39 @@ public okhttp3.Call getArrayMaxBufferSizesCall(String namespace, String array, S } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return getArrayMaxBufferSizesCall(namespace, array, subarray, contentType, xPayer, _callback); } @@ -2973,8 +2941,8 @@ public okhttp3.Call getArrayMetaDataJsonCall(String namespace, String array, Int // create path and map variables String localVarPath = "/arrays/{namespace}/{array}/metadata_json" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2999,33 +2967,29 @@ public okhttp3.Call getArrayMetaDataJsonCall(String namespace, String array, Int } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return getArrayMetaDataJsonCall(namespace, array, length, endTimestamp, _callback); } @@ -3036,7 +3000,7 @@ private okhttp3.Call getArrayMetaDataJsonValidateBeforeCall(String namespace, St * @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 + * @return Map<String, Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3046,8 +3010,8 @@ private okhttp3.Call getArrayMetaDataJsonValidateBeforeCall(String namespace, St
0 error response -
*/ - public Object getArrayMetaDataJson(String namespace, String array, Integer length, Integer endTimestamp) throws ApiException { - ApiResponse localVarResp = getArrayMetaDataJsonWithHttpInfo(namespace, array, length, endTimestamp); + public Map getArrayMetaDataJson(String namespace, String array, Integer length, Integer endTimestamp) throws ApiException { + ApiResponse> localVarResp = getArrayMetaDataJsonWithHttpInfo(namespace, array, length, endTimestamp); return localVarResp.getData(); } @@ -3058,7 +3022,7 @@ public Object getArrayMetaDataJson(String namespace, String array, Integer lengt * @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> + * @return ApiResponse<Map<String, Object>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3068,9 +3032,9 @@ public Object getArrayMetaDataJson(String namespace, String array, Integer lengt
0 error response -
*/ - public ApiResponse getArrayMetaDataJsonWithHttpInfo(String namespace, String array, Integer length, Integer endTimestamp) throws ApiException { + 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(); + Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -3092,10 +3056,10 @@ public ApiResponse getArrayMetaDataJsonWithHttpInfo(String namespace, St 0 error response - */ - public okhttp3.Call getArrayMetaDataJsonAsync(String namespace, String array, Integer length, Integer endTimestamp, final ApiCallback _callback) throws ApiException { + 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(); + Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -3132,8 +3096,8 @@ public okhttp3.Call getArrayMetadataCall(String namespace, String array, final A // create path and map variables String localVarPath = "/arrays/{namespace}/{array}/metadata" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3150,33 +3114,29 @@ public okhttp3.Call getArrayMetadataCall(String namespace, String array, final A } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return getArrayMetadataCall(namespace, array, _callback); } @@ -3277,8 +3237,8 @@ public okhttp3.Call getArrayMetadataCapnpCall(String namespace, String array, fi // create path and map variables String localVarPath = "/arrays/{namespace}/{array}/array_metadata" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3287,7 +3247,8 @@ public okhttp3.Call getArrayMetadataCapnpCall(String namespace, String array, fi Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/capnp" + "application/json", + "application/capnp" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3295,33 +3256,29 @@ public okhttp3.Call getArrayMetadataCapnpCall(String namespace, String array, fi } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return getArrayMetadataCapnpCall(namespace, array, _callback); } @@ -3424,8 +3381,8 @@ public okhttp3.Call getArrayNonEmptyDomainCall(String namespace, String array, S // 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())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3450,38 +3407,34 @@ public okhttp3.Call getArrayNonEmptyDomainCall(String namespace, String array, S } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return getArrayNonEmptyDomainCall(namespace, array, contentType, xPayer, _callback); } @@ -3588,8 +3541,8 @@ public okhttp3.Call getArrayNonEmptyDomainJsonCall(String namespace, String arra // 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())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3606,33 +3559,29 @@ public okhttp3.Call getArrayNonEmptyDomainJsonCall(String namespace, String arra } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return getArrayNonEmptyDomainJsonCall(namespace, array, _callback); } @@ -3641,7 +3590,7 @@ private okhttp3.Call getArrayNonEmptyDomainJsonValidateBeforeCall(String namespa * 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 + * @return Map<String, Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3651,8 +3600,8 @@ private okhttp3.Call getArrayNonEmptyDomainJsonValidateBeforeCall(String namespa
0 error response -
*/ - public Object getArrayNonEmptyDomainJson(String namespace, String array) throws ApiException { - ApiResponse localVarResp = getArrayNonEmptyDomainJsonWithHttpInfo(namespace, array); + public Map getArrayNonEmptyDomainJson(String namespace, String array) throws ApiException { + ApiResponse> localVarResp = getArrayNonEmptyDomainJsonWithHttpInfo(namespace, array); return localVarResp.getData(); } @@ -3661,7 +3610,7 @@ public Object getArrayNonEmptyDomainJson(String namespace, String array) throws * 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> + * @return ApiResponse<Map<String, Object>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3671,9 +3620,9 @@ public Object getArrayNonEmptyDomainJson(String namespace, String array) throws
0 error response -
*/ - public ApiResponse getArrayNonEmptyDomainJsonWithHttpInfo(String namespace, String array) throws ApiException { + public ApiResponse> getArrayNonEmptyDomainJsonWithHttpInfo(String namespace, String array) throws ApiException { okhttp3.Call localVarCall = getArrayNonEmptyDomainJsonValidateBeforeCall(namespace, array, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -3693,10 +3642,10 @@ public ApiResponse getArrayNonEmptyDomainJsonWithHttpInfo(String namespa 0 error response - */ - public okhttp3.Call getArrayNonEmptyDomainJsonAsync(String namespace, String array, final ApiCallback _callback) throws ApiException { + 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(); + Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -3734,8 +3683,8 @@ public okhttp3.Call getArraySampleDataCall(String namespace, String array, BigDe // create path and map variables String localVarPath = "/arrays/{namespace}/{array}/sample" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3756,33 +3705,29 @@ public okhttp3.Call getArraySampleDataCall(String namespace, String array, BigDe } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return getArraySampleDataCall(namespace, array, samples, _callback); } @@ -3887,8 +3832,8 @@ public okhttp3.Call getArraySharingPoliciesCall(String namespace, String array, // create path and map variables String localVarPath = "/arrays/{namespace}/{array}/share" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3905,33 +3850,29 @@ public okhttp3.Call getArraySharingPoliciesCall(String namespace, String array, } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return getArraySharingPoliciesCall(namespace, array, _callback); } @@ -4005,6 +3946,7 @@ public okhttp3.Call getArraySharingPoliciesAsync(String namespace, String array, /** * 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 ApiException If fail to serialize the request body object @@ -4016,7 +3958,7 @@ public okhttp3.Call getArraySharingPoliciesAsync(String namespace, String array, 0 error response - */ - public okhttp3.Call getArraysInNamespaceCall(String namespace, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getArraysInNamespaceCall(String namespace, Boolean withMetadata, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4034,7 +3976,7 @@ public okhttp3.Call getArraysInNamespaceCall(String namespace, final ApiCallback // create path and map variables String localVarPath = "/arrays/{namespace}" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -4042,6 +3984,10 @@ public okhttp3.Call getArraysInNamespaceCall(String namespace, final ApiCallback Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (withMetadata != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("with_metadata", withMetadata)); + } + final String[] localVarAccepts = { "application/json" }; @@ -4051,28 +3997,24 @@ public okhttp3.Call getArraysInNamespaceCall(String namespace, final ApiCallback } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getArraysInNamespaceValidateBeforeCall(String namespace, final ApiCallback _callback) throws ApiException { - + 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, _callback); - return localVarCall; + return getArraysInNamespaceCall(namespace, withMetadata, _callback); } @@ -4080,6 +4022,7 @@ private okhttp3.Call getArraysInNamespaceValidateBeforeCall(String namespace, fi * * 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 ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4090,8 +4033,8 @@ private okhttp3.Call getArraysInNamespaceValidateBeforeCall(String namespace, fi 0 error response - */ - public List getArraysInNamespace(String namespace) throws ApiException { - ApiResponse> localVarResp = getArraysInNamespaceWithHttpInfo(namespace); + public List getArraysInNamespace(String namespace, Boolean withMetadata) throws ApiException { + ApiResponse> localVarResp = getArraysInNamespaceWithHttpInfo(namespace, withMetadata); return localVarResp.getData(); } @@ -4099,6 +4042,7 @@ public List getArraysInNamespace(String namespace) throws ApiExceptio * * 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 ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4109,8 +4053,8 @@ public List getArraysInNamespace(String namespace) throws ApiExceptio 0 error response - */ - public ApiResponse> getArraysInNamespaceWithHttpInfo(String namespace) throws ApiException { - okhttp3.Call localVarCall = getArraysInNamespaceValidateBeforeCall(namespace, null); + 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); } @@ -4119,6 +4063,7 @@ public ApiResponse> getArraysInNamespaceWithHttpInfo(String name * (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 ApiException If fail to process the API call, e.g. serializing the request body object @@ -4130,9 +4075,9 @@ public ApiResponse> getArraysInNamespaceWithHttpInfo(String name 0 error response - */ - public okhttp3.Call getArraysInNamespaceAsync(String namespace, final ApiCallback> _callback) throws ApiException { + public okhttp3.Call getArraysInNamespaceAsync(String namespace, Boolean withMetadata, final ApiCallback> _callback) throws ApiException { - okhttp3.Call localVarCall = getArraysInNamespaceValidateBeforeCall(namespace, _callback); + okhttp3.Call localVarCall = getArraysInNamespaceValidateBeforeCall(namespace, withMetadata, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -4171,8 +4116,8 @@ public okhttp3.Call getFragmentEndTimestampCall(String namespace, String array, // 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())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -4193,33 +4138,29 @@ public okhttp3.Call getFragmentEndTimestampCall(String namespace, String array, } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return getFragmentEndTimestampCall(namespace, array, endTimestamp, _callback); } @@ -4337,23 +4278,19 @@ public okhttp3.Call getLastAccessedArraysCall(final ApiCallback _callback) throw } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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 getLastAccessedArraysCall(_callback); } @@ -4415,6 +4352,316 @@ public okhttp3.Call getLastAccessedArraysAsync(final ApiCallback + 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" + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "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[] { "BasicAuth", "ApiKeyAuth" }; + 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)"); + } + + return loadArraySchemaCall(namespace, array, loadArraySchemaRequest, _callback); + + } + + /** + * + * 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 ApiException 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 ApiException 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 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 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" + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "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[] { "BasicAuth", "ApiKeyAuth" }; + 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)"); + } + + return loadEnumerationsCall(namespace, array, loadEnumerationsRequest, _callback); + + } + + /** + * + * 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 ApiException 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 ApiException 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 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) @@ -4449,8 +4696,8 @@ public okhttp3.Call registerArrayCall(String namespace, String array, ArrayInfoU // create path and map variables String localVarPath = "/arrays/{namespace}/{array}/register" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -4474,31 +4721,28 @@ public okhttp3.Call registerArrayCall(String namespace, String array, ArrayInfoU localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return registerArrayCall(namespace, array, arrayMetadata, _callback); } @@ -4604,8 +4848,8 @@ public okhttp3.Call shareArrayCall(String namespace, String array, ArraySharing // create path and map variables String localVarPath = "/arrays/{namespace}/{array}/share" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -4629,31 +4873,28 @@ public okhttp3.Call shareArrayCall(String namespace, String array, ArraySharing localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return shareArrayCall(namespace, array, arraySharing, _callback); } @@ -4757,8 +4998,8 @@ public okhttp3.Call updateArrayMetadataCall(String namespace, String array, Arra // create path and map variables String localVarPath = "/arrays/{namespace}/{array}/metadata" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -4782,31 +5023,28 @@ public okhttp3.Call updateArrayMetadataCall(String namespace, String array, Arra localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return updateArrayMetadataCall(namespace, array, arrayMetadata, _callback); } @@ -4907,8 +5145,8 @@ public okhttp3.Call updateArrayMetadataCapnpCall(String namespace, String array, // create path and map variables String localVarPath = "/arrays/{namespace}/{array}/array_metadata" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -4917,7 +5155,8 @@ public okhttp3.Call updateArrayMetadataCapnpCall(String namespace, String array, Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json", "application/capnp" + "application/json", + "application/capnp" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4925,38 +5164,36 @@ public okhttp3.Call updateArrayMetadataCapnpCall(String namespace, String array, } final String[] localVarContentTypes = { - "application/json", "application/capnp" + "application/json", + "application/capnp" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return updateArrayMetadataCapnpCall(namespace, array, arrayMetadataEntries, _callback); } @@ -5057,8 +5294,8 @@ public okhttp3.Call vacuumArrayCall(String namespace, String array, ArrayVacuumR // create path and map variables String localVarPath = "/arrays/{namespace}/{array}/vacuum" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -5082,31 +5319,28 @@ public okhttp3.Call vacuumArrayCall(String namespace, String array, ArrayVacuumR localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return vacuumArrayCall(namespace, array, vaccumRequest, _callback); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/api/ArrayTasksApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/ArrayTasksApi.java index 7eab19f..624eebb 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/api/ArrayTasksApi.java +++ b/src/main/java/io/tiledb/cloud/rest_api/api/ArrayTasksApi.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,16 +13,22 @@ package io.tiledb.cloud.rest_api.api; -import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.rest_api.model.ArrayTaskBrowserSidebar; import io.tiledb.cloud.rest_api.ApiCallback; import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.ApiResponse; +import io.tiledb.cloud.rest_api.Configuration; import io.tiledb.cloud.rest_api.Pair; +import io.tiledb.cloud.rest_api.ProgressRequestBody; +import io.tiledb.cloud.rest_api.ProgressResponseBody; import com.google.gson.reflect.TypeToken; +import java.io.IOException; + + +import io.tiledb.cloud.rest_api.model.ArrayTaskBrowserSidebar; +import io.tiledb.cloud.rest_api.model.Error; import java.lang.reflect.Type; import java.util.ArrayList; @@ -125,23 +131,19 @@ public okhttp3.Call getArrayTasksSidebarCall(Integer start, Integer end, final A } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return getArrayTasksSidebarCall(start, end, _callback); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/api/AssetsApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/AssetsApi.java new file mode 100644 index 0000000..ee3ff5a --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/api/AssetsApi.java @@ -0,0 +1,440 @@ +/* + * 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.api; + +import io.tiledb.cloud.rest_api.ApiCallback; +import io.tiledb.cloud.rest_api.ApiClient; +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.ApiResponse; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.Pair; +import io.tiledb.cloud.rest_api.ProgressRequestBody; +import io.tiledb.cloud.rest_api.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import io.tiledb.cloud.rest_api.model.AssetListResponse; +import io.tiledb.cloud.rest_api.model.Error; + +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 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 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}" + .replace("{" + "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[] { "BasicAuth", "ApiKeyAuth" }; + 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)"); + } + + return listAssetsCall(namespace, assetType, ownershipLevel, depth, search, page, perPage, orderBy, expand, _callback); + + } + + /** + * + * 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 ApiException 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 ApiException 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 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 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[] { "BasicAuth", "ApiKeyAuth" }; + 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 { + return listPublicAssetsCall(assetType, depth, search, page, perPage, orderBy, _callback); + + } + + /** + * + * 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 ApiException 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 ApiException 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 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/api/FavoritesApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/FavoritesApi.java index 93d56f5..0bddb96 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/api/FavoritesApi.java +++ b/src/main/java/io/tiledb/cloud/rest_api/api/FavoritesApi.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). @@ -19,12 +19,17 @@ import io.tiledb.cloud.rest_api.ApiResponse; import io.tiledb.cloud.rest_api.Configuration; import io.tiledb.cloud.rest_api.Pair; +import io.tiledb.cloud.rest_api.ProgressRequestBody; +import io.tiledb.cloud.rest_api.ProgressResponseBody; import com.google.gson.reflect.TypeToken; +import java.io.IOException; + import io.tiledb.cloud.rest_api.model.ArrayFavorite; import io.tiledb.cloud.rest_api.model.ArrayFavoritesData; +import io.tiledb.cloud.rest_api.model.Error; import io.tiledb.cloud.rest_api.model.MLModelFavorite; import io.tiledb.cloud.rest_api.model.MLModelFavoritesData; import io.tiledb.cloud.rest_api.model.NotebookFavorite; @@ -108,8 +113,8 @@ public okhttp3.Call addArrayFavoriteCall(String namespace, String name, final Ap // create path and map variables String localVarPath = "/arrays/favorites/{namespace}/{name}" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -126,33 +131,29 @@ public okhttp3.Call addArrayFavoriteCall(String namespace, String name, final Ap } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return addArrayFavoriteCall(namespace, name, _callback); } @@ -249,8 +250,8 @@ public okhttp3.Call addMLModelFavoriteCall(String namespace, String name, final // create path and map variables String localVarPath = "/ml_models/favorites/{namespace}/{name}" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -267,33 +268,29 @@ public okhttp3.Call addMLModelFavoriteCall(String namespace, String name, final } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return addMLModelFavoriteCall(namespace, name, _callback); } @@ -390,8 +387,8 @@ public okhttp3.Call addNotebookFavoriteCall(String namespace, String name, final // create path and map variables String localVarPath = "/notebooks/favorites/{namespace}/{name}" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -408,33 +405,29 @@ public okhttp3.Call addNotebookFavoriteCall(String namespace, String name, final } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return addNotebookFavoriteCall(namespace, name, _callback); } @@ -531,8 +524,8 @@ public okhttp3.Call addUDFFavoriteCall(String namespace, String name, final ApiC // create path and map variables String localVarPath = "/udfs/favorites/{namespace}/{name}" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -549,33 +542,29 @@ public okhttp3.Call addUDFFavoriteCall(String namespace, String name, final ApiC } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return addUDFFavoriteCall(namespace, name, _callback); } @@ -672,8 +661,8 @@ public okhttp3.Call deleteArrayFavoriteCall(String namespace, String name, final // create path and map variables String localVarPath = "/arrays/favorites/{namespace}/{name}" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -690,33 +679,29 @@ public okhttp3.Call deleteArrayFavoriteCall(String namespace, String name, final } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return deleteArrayFavoriteCall(namespace, name, _callback); } @@ -813,8 +798,8 @@ public okhttp3.Call deleteMLModelFavoriteCall(String namespace, String name, fin // create path and map variables String localVarPath = "/ml_models/favorites/{namespace}/{name}" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -831,33 +816,29 @@ public okhttp3.Call deleteMLModelFavoriteCall(String namespace, String name, fin } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return deleteMLModelFavoriteCall(namespace, name, _callback); } @@ -954,8 +935,8 @@ public okhttp3.Call deleteNotebookFavoriteCall(String namespace, String name, fi // create path and map variables String localVarPath = "/notebooks/favorites/{namespace}/{name}" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -972,33 +953,29 @@ public okhttp3.Call deleteNotebookFavoriteCall(String namespace, String name, fi } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return deleteNotebookFavoriteCall(namespace, name, _callback); } @@ -1095,8 +1072,8 @@ public okhttp3.Call deleteUDFFavoriteCall(String namespace, String name, final A // create path and map variables String localVarPath = "/udfs/favorites/{namespace}/{name}" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1113,33 +1090,29 @@ public okhttp3.Call deleteUDFFavoriteCall(String namespace, String name, final A } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return deleteUDFFavoriteCall(namespace, name, _callback); } @@ -1236,8 +1209,8 @@ public okhttp3.Call getArrayFavoriteCall(String namespace, String name, final Ap // create path and map variables String localVarPath = "/arrays/favorites/{namespace}/{name}" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1254,33 +1227,29 @@ public okhttp3.Call getArrayFavoriteCall(String namespace, String name, final Ap } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return getArrayFavoriteCall(namespace, name, _callback); } @@ -1381,8 +1350,8 @@ public okhttp3.Call getMLModelFavoriteCall(String namespace, String name, final // create path and map variables String localVarPath = "/ml_models/favorites/{namespace}/{name}" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1399,33 +1368,29 @@ public okhttp3.Call getMLModelFavoriteCall(String namespace, String name, final } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return getMLModelFavoriteCall(namespace, name, _callback); } @@ -1526,8 +1491,8 @@ public okhttp3.Call getNotebookFavoriteCall(String namespace, String name, final // create path and map variables String localVarPath = "/notebooks/favorites/{namespace}/{name}" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1544,33 +1509,29 @@ public okhttp3.Call getNotebookFavoriteCall(String namespace, String name, final } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return getNotebookFavoriteCall(namespace, name, _callback); } @@ -1671,8 +1632,8 @@ public okhttp3.Call getUDFFavoriteCall(String namespace, String name, final ApiC // create path and map variables String localVarPath = "/udfs/favorites/{namespace}/{name}" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1689,33 +1650,29 @@ public okhttp3.Call getUDFFavoriteCall(String namespace, String name, final ApiC } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return getUDFFavoriteCall(namespace, name, _callback); } @@ -1840,23 +1797,19 @@ public okhttp3.Call listArrayFavoritesCall(Integer page, Integer perPage, final } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return listArrayFavoritesCall(page, perPage, _callback); } @@ -1971,23 +1924,19 @@ public okhttp3.Call listArrayFavoritesUUIDsCall(final ApiCallback _callback) thr } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return listArrayFavoritesUUIDsCall(_callback); } @@ -2106,23 +2055,19 @@ public okhttp3.Call listMLModelFavoritesCall(Integer page, Integer perPage, fina } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return listMLModelFavoritesCall(page, perPage, _callback); } @@ -2237,23 +2182,19 @@ public okhttp3.Call listMLModelFavoritesUUIDsCall(final ApiCallback _callback) t } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return listMLModelFavoritesUUIDsCall(_callback); } @@ -2377,23 +2318,19 @@ public okhttp3.Call listNotebookFavoritesCall(Boolean isDashboard, Integer page, } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return listNotebookFavoritesCall(isDashboard, page, perPage, _callback); } @@ -2511,23 +2448,19 @@ public okhttp3.Call listNotebookFavoritesUUIDsCall(final ApiCallback _callback) } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return listNotebookFavoritesUUIDsCall(_callback); } @@ -2646,23 +2579,19 @@ public okhttp3.Call listUDFFavoritesCall(Integer page, Integer perPage, final Ap } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return listUDFFavoritesCall(page, perPage, _callback); } @@ -2777,23 +2706,19 @@ public okhttp3.Call listUDFFavoritesUUIDsCall(final ApiCallback _callback) throw } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return listUDFFavoritesUUIDsCall(_callback); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/api/FilesApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/FilesApi.java index e799b94..de5e007 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/api/FilesApi.java +++ b/src/main/java/io/tiledb/cloud/rest_api/api/FilesApi.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,18 +14,23 @@ package io.tiledb.cloud.rest_api.api; import io.tiledb.cloud.rest_api.ApiCallback; -import io.tiledb.cloud.rest_api.model.FileCreated; import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.ApiResponse; import io.tiledb.cloud.rest_api.Configuration; import io.tiledb.cloud.rest_api.Pair; +import io.tiledb.cloud.rest_api.ProgressRequestBody; +import io.tiledb.cloud.rest_api.ProgressResponseBody; import com.google.gson.reflect.TypeToken; +import java.io.IOException; + +import io.tiledb.cloud.rest_api.model.Error; 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; @@ -107,7 +112,7 @@ public okhttp3.Call handleCreateFileCall(String namespace, FileCreate fileCreate // create path and map variables String localVarPath = "/files/{namespace}" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -135,26 +140,23 @@ public okhttp3.Call handleCreateFileCall(String namespace, FileCreate fileCreate localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return handleCreateFileCall(namespace, fileCreate, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, _callback); } @@ -259,8 +261,8 @@ public okhttp3.Call handleExportFileCall(String namespace, String _file, FileExp // create path and map variables String localVarPath = "/files/{namespace}/{file}/export" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "file" + "\\}", localVarApiClient.escapeString(_file.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "file" + "}", localVarApiClient.escapeString(_file.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -284,31 +286,28 @@ public okhttp3.Call handleExportFileCall(String namespace, String _file, FileExp localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return handleExportFileCall(namespace, _file, fileExport, _callback); } @@ -415,7 +414,7 @@ public okhttp3.Call handleUploadFileCall(String namespace, File inputFile, Strin // create path and map variables String localVarPath = "/files/{namespace}/upload" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -455,26 +454,23 @@ public okhttp3.Call handleUploadFileCall(String namespace, File inputFile, Strin localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return handleUploadFileCall(namespace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name, _callback); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/api/GroupsApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/GroupsApi.java index e817d9d..c233bd1 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/api/GroupsApi.java +++ b/src/main/java/io/tiledb/cloud/rest_api/api/GroupsApi.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,28 +13,33 @@ package io.tiledb.cloud.rest_api.api; -import io.tiledb.cloud.rest_api.model.GroupSharingRequest; -import io.tiledb.cloud.rest_api.model.GroupUpdate; import io.tiledb.cloud.rest_api.ApiCallback; import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.ApiResponse; import io.tiledb.cloud.rest_api.Configuration; import io.tiledb.cloud.rest_api.Pair; +import io.tiledb.cloud.rest_api.ProgressRequestBody; +import io.tiledb.cloud.rest_api.ProgressResponseBody; import com.google.gson.reflect.TypeToken; +import java.io.IOException; + -import io.tiledb.cloud.rest_api.model.GroupActivityResponse; +import io.tiledb.cloud.rest_api.model.Error; 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; @@ -113,8 +118,8 @@ public okhttp3.Call changeGroupContentsCall(String groupNamespace, String groupN // 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())); + .replace("{" + "group_namespace" + "}", localVarApiClient.escapeString(groupNamespace.toString())) + .replace("{" + "group_name" + "}", localVarApiClient.escapeString(groupName.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -138,26 +143,23 @@ public okhttp3.Call changeGroupContentsCall(String groupNamespace, String groupN localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return changeGroupContentsCall(groupNamespace, groupName, groupChanges, _callback); } @@ -257,7 +259,7 @@ public okhttp3.Call createGroupCall(String namespace, GroupCreate groupCreate, f // create path and map variables String localVarPath = "/groups/{namespace}/create" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -281,21 +283,18 @@ public okhttp3.Call createGroupCall(String namespace, GroupCreate groupCreate, f localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return createGroupCall(namespace, groupCreate, _callback); } @@ -392,8 +391,8 @@ public okhttp3.Call deleteGroupCall(String groupNamespace, String groupName, fin // 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())); + .replace("{" + "group_namespace" + "}", localVarApiClient.escapeString(groupNamespace.toString())) + .replace("{" + "group_name" + "}", localVarApiClient.escapeString(groupName.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -410,33 +409,29 @@ public okhttp3.Call deleteGroupCall(String groupNamespace, String groupName, fin } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return deleteGroupCall(groupNamespace, groupName, _callback); } @@ -533,8 +528,8 @@ public okhttp3.Call getGroupCall(String groupNamespace, String groupName, final // 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())); + .replace("{" + "group_namespace" + "}", localVarApiClient.escapeString(groupNamespace.toString())) + .replace("{" + "group_name" + "}", localVarApiClient.escapeString(groupName.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -551,33 +546,29 @@ public okhttp3.Call getGroupCall(String groupNamespace, String groupName, final } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return getGroupCall(groupNamespace, groupName, _callback); } @@ -680,8 +671,8 @@ public okhttp3.Call getGroupActivityCall(String groupNamespace, String groupName // 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())); + .replace("{" + "group_namespace" + "}", localVarApiClient.escapeString(groupNamespace.toString())) + .replace("{" + "group_name" + "}", localVarApiClient.escapeString(groupName.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -706,33 +697,29 @@ public okhttp3.Call getGroupActivityCall(String groupNamespace, String groupName } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return getGroupActivityCall(groupNamespace, groupName, page, perPage, _callback); } @@ -743,7 +730,7 @@ private okhttp3.Call getGroupActivityValidateBeforeCall(String groupNamespace, S * @param groupName The unique name or id of the group (required) * @param page pagination offset (optional) * @param perPage pagination limit (optional) - * @return GroupActivityResponse + * @return GroupContentActivityResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -753,8 +740,8 @@ private okhttp3.Call getGroupActivityValidateBeforeCall(String groupNamespace, S
0 error response -
*/ - public GroupActivityResponse getGroupActivity(String groupNamespace, String groupName, Integer page, Integer perPage) throws ApiException { - ApiResponse localVarResp = getGroupActivityWithHttpInfo(groupNamespace, groupName, page, perPage); + public GroupContentActivityResponse getGroupActivity(String groupNamespace, String groupName, Integer page, Integer perPage) throws ApiException { + ApiResponse localVarResp = getGroupActivityWithHttpInfo(groupNamespace, groupName, page, perPage); return localVarResp.getData(); } @@ -765,7 +752,7 @@ public GroupActivityResponse getGroupActivity(String groupNamespace, String grou * @param groupName The unique name or id of the group (required) * @param page pagination offset (optional) * @param perPage pagination limit (optional) - * @return ApiResponse<GroupActivityResponse> + * @return ApiResponse<GroupContentActivityResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -775,9 +762,9 @@ public GroupActivityResponse getGroupActivity(String groupNamespace, String grou
0 error response -
*/ - public ApiResponse getGroupActivityWithHttpInfo(String groupNamespace, String groupName, Integer page, Integer perPage) throws ApiException { + 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(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -799,10 +786,10 @@ public ApiResponse getGroupActivityWithHttpInfo(String gr 0 error response - */ - public okhttp3.Call getGroupActivityAsync(String groupNamespace, String groupName, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { + 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(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -848,8 +835,8 @@ public okhttp3.Call getGroupContentsCall(String groupNamespace, String groupName // 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())); + .replace("{" + "group_namespace" + "}", localVarApiClient.escapeString(groupNamespace.toString())) + .replace("{" + "group_name" + "}", localVarApiClient.escapeString(groupName.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -902,33 +889,29 @@ public okhttp3.Call getGroupContentsCall(String groupNamespace, String groupName } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return getGroupContentsCall(groupNamespace, groupName, page, perPage, namespace, search, orderby, tag, excludeTag, memberType, excludeMemberType, _callback); } @@ -1057,8 +1040,8 @@ public okhttp3.Call getGroupSharingPoliciesCall(String groupNamespace, String gr // 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())); + .replace("{" + "group_namespace" + "}", localVarApiClient.escapeString(groupNamespace.toString())) + .replace("{" + "group_name" + "}", localVarApiClient.escapeString(groupName.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1075,33 +1058,29 @@ public okhttp3.Call getGroupSharingPoliciesCall(String groupNamespace, String gr } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return getGroupSharingPoliciesCall(groupNamespace, groupName, _callback); } @@ -1224,23 +1203,19 @@ public okhttp3.Call groupsBrowserOwnedFiltersGetCall(String namespace, final Api } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return groupsBrowserOwnedFiltersGetCall(namespace, _callback); } @@ -1352,23 +1327,19 @@ public okhttp3.Call groupsBrowserPublicFiltersGetCall(final ApiCallback _callbac } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return groupsBrowserPublicFiltersGetCall(_callback); } @@ -1482,23 +1453,19 @@ public okhttp3.Call groupsBrowserSharedFiltersGetCall(String namespace, final Ap } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return groupsBrowserSharedFiltersGetCall(namespace, _callback); } @@ -1596,8 +1563,8 @@ public okhttp3.Call groupsGroupNamespaceGroupNameContentsFiltersGetCall(String g // 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())); + .replace("{" + "group_namespace" + "}", localVarApiClient.escapeString(groupNamespace.toString())) + .replace("{" + "group_name" + "}", localVarApiClient.escapeString(groupName.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1614,33 +1581,29 @@ public okhttp3.Call groupsGroupNamespaceGroupNameContentsFiltersGetCall(String g } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return groupsGroupNamespaceGroupNameContentsFiltersGetCall(groupNamespace, groupName, _callback); } @@ -1721,6 +1684,7 @@ public okhttp3.Call groupsGroupNamespaceGroupNameContentsFiltersGetAsync(String * @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 ApiException If fail to serialize the request body object @@ -1732,7 +1696,7 @@ public okhttp3.Call groupsGroupNamespaceGroupNameContentsFiltersGetAsync(String 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, final ApiCallback _callback) throws ApiException { + 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[] { }; @@ -1801,6 +1765,10 @@ public okhttp3.Call listOwnedGroupsCall(Integer page, Integer perPage, String gr localVarQueryParams.addAll(localVarApiClient.parameterToPair("parent", parent)); } + if (withMetadata != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("with_metadata", withMetadata)); + } + final String[] localVarAccepts = { "application/json" }; @@ -1810,23 +1778,19 @@ public okhttp3.Call listOwnedGroupsCall(Integer page, Integer perPage, String gr } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listOwnedGroupsCall(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, _callback); - return localVarCall; + 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 { + return listOwnedGroupsCall(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, withMetadata, _callback); } @@ -1844,6 +1808,7 @@ private okhttp3.Call listOwnedGroupsValidateBeforeCall(Integer page, Integer per * @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 ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1854,8 +1819,8 @@ private okhttp3.Call listOwnedGroupsValidateBeforeCall(Integer page, Integer per 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) throws ApiException { - ApiResponse localVarResp = listOwnedGroupsWithHttpInfo(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent); + 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(); } @@ -1873,6 +1838,7 @@ public GroupBrowserData listOwnedGroups(Integer page, Integer perPage, String gr * @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 ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1883,8 +1849,8 @@ public GroupBrowserData listOwnedGroups(Integer page, Integer perPage, String gr 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) throws ApiException { - okhttp3.Call localVarCall = listOwnedGroupsValidateBeforeCall(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, null); + 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); } @@ -1903,6 +1869,7 @@ public ApiResponse listOwnedGroupsWithHttpInfo(Integer page, I * @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 ApiException If fail to process the API call, e.g. serializing the request body object @@ -1914,9 +1881,9 @@ public ApiResponse listOwnedGroupsWithHttpInfo(Integer page, I 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, final ApiCallback _callback) throws ApiException { + 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, _callback); + 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; @@ -1934,6 +1901,7 @@ public okhttp3.Call listOwnedGroupsAsync(Integer page, Integer perPage, String g * @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 ApiException If fail to serialize the request body object @@ -1945,7 +1913,7 @@ public okhttp3.Call listOwnedGroupsAsync(Integer page, Integer perPage, String g 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, final ApiCallback _callback) throws ApiException { + 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[] { }; @@ -2014,6 +1982,10 @@ public okhttp3.Call listPublicGroupsCall(Integer page, Integer perPage, String g localVarQueryParams.addAll(localVarApiClient.parameterToPair("parent", parent)); } + if (withMetadata != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("with_metadata", withMetadata)); + } + final String[] localVarAccepts = { "application/json" }; @@ -2023,23 +1995,19 @@ public okhttp3.Call listPublicGroupsCall(Integer page, Integer perPage, String g } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listPublicGroupsCall(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, _callback); - return localVarCall; + 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 { + return listPublicGroupsCall(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, withMetadata, _callback); } @@ -2057,6 +2025,7 @@ private okhttp3.Call listPublicGroupsValidateBeforeCall(Integer page, Integer pe * @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 ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2067,8 +2036,8 @@ private okhttp3.Call listPublicGroupsValidateBeforeCall(Integer page, Integer pe 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) throws ApiException { - ApiResponse localVarResp = listPublicGroupsWithHttpInfo(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent); + 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(); } @@ -2086,6 +2055,7 @@ public GroupBrowserData listPublicGroups(Integer page, Integer perPage, String g * @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 ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2096,8 +2066,8 @@ public GroupBrowserData listPublicGroups(Integer page, Integer perPage, String g 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) throws ApiException { - okhttp3.Call localVarCall = listPublicGroupsValidateBeforeCall(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, null); + 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); } @@ -2116,6 +2086,7 @@ public ApiResponse listPublicGroupsWithHttpInfo(Integer page, * @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 ApiException If fail to process the API call, e.g. serializing the request body object @@ -2127,9 +2098,9 @@ public ApiResponse listPublicGroupsWithHttpInfo(Integer page, 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, final ApiCallback _callback) throws ApiException { + 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, _callback); + 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; @@ -2148,6 +2119,7 @@ public okhttp3.Call listPublicGroupsAsync(Integer page, Integer perPage, String * @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 ApiException If fail to serialize the request body object @@ -2159,7 +2131,7 @@ public okhttp3.Call listPublicGroupsAsync(Integer page, Integer perPage, String 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, final ApiCallback _callback) throws ApiException { + 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[] { }; @@ -2232,6 +2204,10 @@ public okhttp3.Call listSharedGroupsCall(Integer page, Integer perPage, String g localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "shared_to", sharedTo)); } + if (withMetadata != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("with_metadata", withMetadata)); + } + final String[] localVarAccepts = { "application/json" }; @@ -2241,23 +2217,19 @@ public okhttp3.Call listSharedGroupsCall(Integer page, Integer perPage, String g } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listSharedGroupsCall(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, sharedTo, _callback); - return localVarCall; + 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 { + return listSharedGroupsCall(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, sharedTo, withMetadata, _callback); } @@ -2276,6 +2248,7 @@ private okhttp3.Call listSharedGroupsValidateBeforeCall(Integer page, Integer pe * @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 ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2286,8 +2259,8 @@ private okhttp3.Call listSharedGroupsValidateBeforeCall(Integer page, Integer pe 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) throws ApiException { - ApiResponse localVarResp = listSharedGroupsWithHttpInfo(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, sharedTo); + 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(); } @@ -2306,6 +2279,7 @@ public GroupBrowserData listSharedGroups(Integer page, Integer perPage, String g * @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 ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2316,8 +2290,8 @@ public GroupBrowserData listSharedGroups(Integer page, Integer perPage, String g 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) throws ApiException { - okhttp3.Call localVarCall = listSharedGroupsValidateBeforeCall(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, sharedTo, null); + 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); } @@ -2337,6 +2311,7 @@ public ApiResponse listSharedGroupsWithHttpInfo(Integer page, * @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 ApiException If fail to process the API call, e.g. serializing the request body object @@ -2348,9 +2323,9 @@ public ApiResponse listSharedGroupsWithHttpInfo(Integer page, 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, final ApiCallback _callback) throws ApiException { + 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, _callback); + 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; @@ -2389,8 +2364,8 @@ public okhttp3.Call registerGroupCall(String namespace, String array, GroupRegis // create path and map variables String localVarPath = "/groups/{namespace}/{array}/register" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2414,26 +2389,23 @@ public okhttp3.Call registerGroupCall(String namespace, String array, GroupRegis localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return registerGroupCall(namespace, array, groupRegister, _callback); } @@ -2535,8 +2507,8 @@ public okhttp3.Call shareGroupCall(String groupNamespace, String groupName, Grou // 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())); + .replace("{" + "group_namespace" + "}", localVarApiClient.escapeString(groupNamespace.toString())) + .replace("{" + "group_name" + "}", localVarApiClient.escapeString(groupName.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2560,31 +2532,28 @@ public okhttp3.Call shareGroupCall(String groupNamespace, String groupName, Grou localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return shareGroupCall(groupNamespace, groupName, groupSharingRequest, _callback); } @@ -2688,8 +2657,8 @@ public okhttp3.Call updateGroupCall(String groupNamespace, String groupName, Gro // 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())); + .replace("{" + "group_namespace" + "}", localVarApiClient.escapeString(groupNamespace.toString())) + .replace("{" + "group_name" + "}", localVarApiClient.escapeString(groupName.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2713,26 +2682,23 @@ public okhttp3.Call updateGroupCall(String groupNamespace, String groupName, Gro localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return updateGroupCall(groupNamespace, groupName, groupUpdate, _callback); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/api/InvitationApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/InvitationApi.java index d081e80..a7f715a 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/api/InvitationApi.java +++ b/src/main/java/io/tiledb/cloud/rest_api/api/InvitationApi.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,18 +14,26 @@ package io.tiledb.cloud.rest_api.api; import io.tiledb.cloud.rest_api.ApiCallback; -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.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.ApiResponse; import io.tiledb.cloud.rest_api.Configuration; import io.tiledb.cloud.rest_api.Pair; +import io.tiledb.cloud.rest_api.ProgressRequestBody; +import io.tiledb.cloud.rest_api.ProgressResponseBody; import com.google.gson.reflect.TypeToken; +import java.io.IOException; + + +import io.tiledb.cloud.rest_api.model.Error; +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.SharePaymentRequest; import java.lang.reflect.Type; import java.util.ArrayList; @@ -103,7 +111,7 @@ public okhttp3.Call acceptInvitationCall(String invitation, final ApiCallback _c // create path and map variables String localVarPath = "/invitations/{invitation}" - .replaceAll("\\{" + "invitation" + "\\}", localVarApiClient.escapeString(invitation.toString())); + .replace("{" + "invitation" + "}", localVarApiClient.escapeString(invitation.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -120,28 +128,24 @@ public okhttp3.Call acceptInvitationCall(String invitation, final ApiCallback _c } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return acceptInvitationCall(invitation, _callback); } @@ -239,8 +243,8 @@ public okhttp3.Call cancelJoinOrganizationCall(String invitation, String organiz // create path and map variables String localVarPath = "/invitations/{invitation}/{organization}/join" - .replaceAll("\\{" + "invitation" + "\\}", localVarApiClient.escapeString(invitation.toString())) - .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())); + .replace("{" + "invitation" + "}", localVarApiClient.escapeString(invitation.toString())) + .replace("{" + "organization" + "}", localVarApiClient.escapeString(organization.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -257,33 +261,29 @@ public okhttp3.Call cancelJoinOrganizationCall(String invitation, String organiz } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return cancelJoinOrganizationCall(invitation, organization, _callback); } @@ -385,9 +385,9 @@ public okhttp3.Call cancelShareArrayByInviteCall(String namespace, String invita // 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())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "invitation" + "}", localVarApiClient.escapeString(invitation.toString())) + .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -404,38 +404,34 @@ public okhttp3.Call cancelShareArrayByInviteCall(String namespace, String invita } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return cancelShareArrayByInviteCall(namespace, invitation, array, _callback); } @@ -540,9 +536,9 @@ public okhttp3.Call cancelShareGroupByInviteCall(String namespace, String invita // 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())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "invitation" + "}", localVarApiClient.escapeString(invitation.toString())) + .replace("{" + "group_name" + "}", localVarApiClient.escapeString(groupName.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -559,38 +555,34 @@ public okhttp3.Call cancelShareGroupByInviteCall(String namespace, String invita } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return cancelShareGroupByInviteCall(namespace, invitation, groupName, _callback); } @@ -660,6 +652,143 @@ public okhttp3.Call cancelShareGroupByInviteAsync(String namespace, String invit 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 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}" + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "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[] { "BasicAuth", "ApiKeyAuth" }; + 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)"); + } + + return cancelSharePaymentCall(namespace, target, _callback); + + } + + /** + * + * 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 ApiException 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 ApiException 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 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) @@ -757,23 +886,19 @@ public okhttp3.Call fetchInvitationsCall(String organization, String array, Stri } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return fetchInvitationsCall(organization, array, group, start, end, page, perPage, type, status, orderby, _callback); } @@ -900,7 +1025,7 @@ public okhttp3.Call joinOrganizationCall(String organization, InvitationOrganiza // create path and map variables String localVarPath = "/invitations/{organization}/join" - .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())); + .replace("{" + "organization" + "}", localVarApiClient.escapeString(organization.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -924,26 +1049,23 @@ public okhttp3.Call joinOrganizationCall(String organization, InvitationOrganiza localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return joinOrganizationCall(organization, emailInvite, _callback); } @@ -1049,8 +1171,8 @@ public okhttp3.Call shareArrayByInviteCall(String namespace, String array, Invit // create path and map variables String localVarPath = "/invitations/{namespace}/{array}/share" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1074,31 +1196,28 @@ public okhttp3.Call shareArrayByInviteCall(String namespace, String array, Invit localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return shareArrayByInviteCall(namespace, array, emailInvite, _callback); } @@ -1207,8 +1326,8 @@ public okhttp3.Call shareGroupByInviteCall(String namespace, String group, Invit // create path and map variables String localVarPath = "/invitations/group/{namespace}/{group}/share" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "group" + "\\}", localVarApiClient.escapeString(group.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "group" + "}", localVarApiClient.escapeString(group.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1232,31 +1351,28 @@ public okhttp3.Call shareGroupByInviteCall(String namespace, String group, Invit localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return shareGroupByInviteCall(namespace, group, emailInvite, _callback); } @@ -1329,4 +1445,144 @@ public okhttp3.Call shareGroupByInviteAsync(String namespace, String group, Invi 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 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}" + .replace("{" + "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[] { "BasicAuth", "ApiKeyAuth" }; + 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)"); + } + + return sharePaymentCall(namespace, emailInvite, _callback); + + } + + /** + * + * 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 ApiException 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 ApiException 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 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/api/NotebookApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/NotebookApi.java index 5be5110..676806c 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/api/NotebookApi.java +++ b/src/main/java/io/tiledb/cloud/rest_api/api/NotebookApi.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). @@ -19,12 +19,16 @@ import io.tiledb.cloud.rest_api.ApiResponse; import io.tiledb.cloud.rest_api.Configuration; import io.tiledb.cloud.rest_api.Pair; +import io.tiledb.cloud.rest_api.ProgressRequestBody; +import io.tiledb.cloud.rest_api.ProgressResponseBody; import com.google.gson.reflect.TypeToken; +import java.io.IOException; -import io.tiledb.cloud.rest_api.model.ArrayInfoUpdate; +import io.tiledb.cloud.rest_api.model.ArrayInfoUpdate; +import io.tiledb.cloud.rest_api.model.Error; import java.io.File; import io.tiledb.cloud.rest_api.model.FileUploaded; import io.tiledb.cloud.rest_api.model.NotebookCopied; @@ -84,7 +88,6 @@ public void setCustomBaseUrl(String customBaseUrl) { - @@ -109,7 +112,7 @@ public okhttp3.Call getNotebookServerStatusCall(String namespace, final ApiCallb // create path and map variables String localVarPath = "/notebooks/server/{namespace}/status" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -126,28 +129,24 @@ public okhttp3.Call getNotebookServerStatusCall(String namespace, final ApiCallb } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return getNotebookServerStatusCall(namespace, _callback); } @@ -161,7 +160,6 @@ private okhttp3.Call getNotebookServerStatusValidateBeforeCall(String namespace,
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 -
- @@ -183,7 +181,6 @@ public NotebookStatus getNotebookServerStatus(String namespace) throws ApiExcept
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 -
- @@ -207,7 +204,6 @@ public ApiResponse getNotebookServerStatusWithHttpInfo(String na
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 -
- @@ -257,8 +253,8 @@ public okhttp3.Call handleCopyNotebookCall(String namespace, String array, Noteb // create path and map variables String localVarPath = "/notebooks/{namespace}/{array}/copy" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -290,31 +286,28 @@ public okhttp3.Call handleCopyNotebookCall(String namespace, String array, Noteb localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return handleCopyNotebookCall(namespace, array, notebookCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp, _callback); } @@ -427,7 +420,7 @@ public okhttp3.Call handleUploadNotebookCall(String namespace, File inputFile, S // create path and map variables String localVarPath = "/notebooks/{namespace}/upload" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -467,26 +460,23 @@ public okhttp3.Call handleUploadNotebookCall(String namespace, File inputFile, S localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return handleUploadNotebookCall(namespace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name, _callback); } @@ -596,7 +586,7 @@ public okhttp3.Call shutdownNotebookServerCall(String namespace, final ApiCallba // create path and map variables String localVarPath = "/notebooks/server/{namespace}" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -613,28 +603,24 @@ public okhttp3.Call shutdownNotebookServerCall(String namespace, final ApiCallba } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return shutdownNotebookServerCall(namespace, _callback); } @@ -732,8 +718,8 @@ public okhttp3.Call updateNotebookNameCall(String namespace, String array, Array // create path and map variables String localVarPath = "/notebooks/{namespace}/{array}/rename" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -757,31 +743,28 @@ public okhttp3.Call updateNotebookNameCall(String namespace, String array, Array localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return updateNotebookNameCall(namespace, array, notebookMetadata, _callback); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/api/NotebooksApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/NotebooksApi.java index 70fc1dc..e32dc2f 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/api/NotebooksApi.java +++ b/src/main/java/io/tiledb/cloud/rest_api/api/NotebooksApi.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,15 +14,21 @@ package io.tiledb.cloud.rest_api.api; import io.tiledb.cloud.rest_api.ApiCallback; -import io.tiledb.cloud.rest_api.model.ArrayEndTimestampData; import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.ApiResponse; import io.tiledb.cloud.rest_api.Configuration; import io.tiledb.cloud.rest_api.Pair; +import io.tiledb.cloud.rest_api.ProgressRequestBody; +import io.tiledb.cloud.rest_api.ProgressResponseBody; import com.google.gson.reflect.TypeToken; +import java.io.IOException; + + +import io.tiledb.cloud.rest_api.model.ArrayEndTimestampData; +import io.tiledb.cloud.rest_api.model.Error; import java.lang.reflect.Type; import java.util.ArrayList; @@ -102,8 +108,8 @@ public okhttp3.Call notebooksNamespaceArrayEndTimestampsGetCall(String namespace // create path and map variables String localVarPath = "/notebooks/{namespace}/{array}/end_timestamps" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -128,33 +134,29 @@ public okhttp3.Call notebooksNamespaceArrayEndTimestampsGetCall(String namespace } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return notebooksNamespaceArrayEndTimestampsGetCall(namespace, array, page, perPage, _callback); } @@ -262,8 +264,8 @@ public okhttp3.Call notebooksNamespaceArrayPrunePostCall(String namespace, Strin // create path and map variables String localVarPath = "/notebooks/{namespace}/{array}/prune" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -284,33 +286,29 @@ public okhttp3.Call notebooksNamespaceArrayPrunePostCall(String namespace, Strin } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return notebooksNamespaceArrayPrunePostCall(namespace, array, keepVersions, _callback); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/api/OrganizationApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/OrganizationApi.java index 56354bc..75fc700 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/api/OrganizationApi.java +++ b/src/main/java/io/tiledb/cloud/rest_api/api/OrganizationApi.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,20 +14,26 @@ package io.tiledb.cloud.rest_api.api; import io.tiledb.cloud.rest_api.ApiCallback; -import io.tiledb.cloud.rest_api.model.SSODomainConfig; import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.ApiResponse; import io.tiledb.cloud.rest_api.Configuration; import io.tiledb.cloud.rest_api.Pair; +import io.tiledb.cloud.rest_api.ProgressRequestBody; +import io.tiledb.cloud.rest_api.ProgressResponseBody; import com.google.gson.reflect.TypeToken; +import java.io.IOException; + import io.tiledb.cloud.rest_api.model.AWSAccessCredentials; import io.tiledb.cloud.rest_api.model.DomainCheckResult; +import io.tiledb.cloud.rest_api.model.Error; 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; @@ -106,7 +112,7 @@ public okhttp3.Call addAWSAccessCredentialsCall(String namespace, AWSAccessCrede // create path and map variables String localVarPath = "/credentials/{namespace}/aws" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -130,26 +136,23 @@ public okhttp3.Call addAWSAccessCredentialsCall(String namespace, AWSAccessCrede localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return addAWSAccessCredentialsCall(namespace, awsAccessCredentials, _callback); } @@ -246,7 +249,7 @@ public okhttp3.Call addUserToOrganizationCall(String organization, OrganizationU // create path and map variables String localVarPath = "/organizations/{organization}/user" - .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())); + .replace("{" + "organization" + "}", localVarApiClient.escapeString(organization.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -270,26 +273,23 @@ public okhttp3.Call addUserToOrganizationCall(String organization, OrganizationU localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return addUserToOrganizationCall(organization, user, _callback); } @@ -385,7 +385,7 @@ public okhttp3.Call checkAWSAccessCredentialsCall(String namespace, final ApiCal // create path and map variables String localVarPath = "/credentials/{namespace}/aws" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -402,28 +402,24 @@ public okhttp3.Call checkAWSAccessCredentialsCall(String namespace, final ApiCal } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return checkAWSAccessCredentialsCall(namespace, _callback); } @@ -521,8 +517,8 @@ public okhttp3.Call checkAWSAccessCredentialsByNameCall(String namespace, String // create path and map variables String localVarPath = "/credentials/{namespace}/aws/{name}" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -539,33 +535,29 @@ public okhttp3.Call checkAWSAccessCredentialsByNameCall(String namespace, String } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return checkAWSAccessCredentialsByNameCall(namespace, name, _callback); } @@ -665,8 +657,8 @@ public okhttp3.Call checkSSODomainCall(String organization, String uuid, final A // 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())); + .replace("{" + "organization" + "}", localVarApiClient.escapeString(organization.toString())) + .replace("{" + "uuid" + "}", localVarApiClient.escapeString(uuid.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -683,33 +675,29 @@ public okhttp3.Call checkSSODomainCall(String organization, String uuid, final A } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return checkSSODomainCall(organization, uuid, _callback); } @@ -829,21 +817,18 @@ public okhttp3.Call createOrganizationCall(Organization organization, final ApiC localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return createOrganizationCall(organization, _callback); } @@ -936,7 +921,7 @@ public okhttp3.Call createSSODomainCall(String organization, SSODomainConfig con // create path and map variables String localVarPath = "/organizations/{organization}/sso_domain" - .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())); + .replace("{" + "organization" + "}", localVarApiClient.escapeString(organization.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -960,26 +945,23 @@ public okhttp3.Call createSSODomainCall(String organization, SSODomainConfig con localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return createSSODomainCall(organization, config, _callback); } @@ -1077,8 +1059,8 @@ public okhttp3.Call deleteAWSAccessCredentialsCall(String namespace, String name // create path and map variables String localVarPath = "/credentials/{namespace}/aws/{name}" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1095,33 +1077,29 @@ public okhttp3.Call deleteAWSAccessCredentialsCall(String namespace, String name } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return deleteAWSAccessCredentialsCall(namespace, name, _callback); } @@ -1217,7 +1195,7 @@ public okhttp3.Call deleteOrganizationCall(String organization, final ApiCallbac // create path and map variables String localVarPath = "/organizations/{organization}" - .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())); + .replace("{" + "organization" + "}", localVarApiClient.escapeString(organization.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1234,28 +1212,24 @@ public okhttp3.Call deleteOrganizationCall(String organization, final ApiCallbac } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return deleteOrganizationCall(organization, _callback); } @@ -1348,8 +1322,8 @@ public okhttp3.Call deleteSSODomainCall(String organization, String uuid, final // create path and map variables String localVarPath = "/organizations/{organization}/sso_domains/{uuid}" - .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())) - .replaceAll("\\{" + "uuid" + "\\}", localVarApiClient.escapeString(uuid.toString())); + .replace("{" + "organization" + "}", localVarApiClient.escapeString(organization.toString())) + .replace("{" + "uuid" + "}", localVarApiClient.escapeString(uuid.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1366,33 +1340,29 @@ public okhttp3.Call deleteSSODomainCall(String organization, String uuid, final } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return deleteSSODomainCall(organization, uuid, _callback); } @@ -1486,8 +1456,8 @@ public okhttp3.Call deleteUserFromOrganizationCall(String organization, String u // create path and map variables String localVarPath = "/organizations/{organization}/{username}" - .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())) - .replaceAll("\\{" + "username" + "\\}", localVarApiClient.escapeString(username.toString())); + .replace("{" + "organization" + "}", localVarApiClient.escapeString(organization.toString())) + .replace("{" + "username" + "}", localVarApiClient.escapeString(username.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1504,33 +1474,29 @@ public okhttp3.Call deleteUserFromOrganizationCall(String organization, String u } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return deleteUserFromOrganizationCall(organization, username, _callback); } @@ -1643,23 +1609,19 @@ public okhttp3.Call getAllOrganizationsCall(final ApiCallback _callback) throws } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return getAllOrganizationsCall(_callback); } @@ -1760,7 +1722,7 @@ public okhttp3.Call getOrganizationCall(String organization, final ApiCallback _ // create path and map variables String localVarPath = "/organizations/{organization}" - .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())); + .replace("{" + "organization" + "}", localVarApiClient.escapeString(organization.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1777,28 +1739,24 @@ public okhttp3.Call getOrganizationCall(String organization, final ApiCallback _ } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return getOrganizationCall(organization, _callback); } @@ -1900,8 +1858,8 @@ public okhttp3.Call getOrganizationUserCall(String organization, String username // create path and map variables String localVarPath = "/organizations/{organization}/{username}" - .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())) - .replaceAll("\\{" + "username" + "\\}", localVarApiClient.escapeString(username.toString())); + .replace("{" + "organization" + "}", localVarApiClient.escapeString(organization.toString())) + .replace("{" + "username" + "}", localVarApiClient.escapeString(username.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1918,33 +1876,29 @@ public okhttp3.Call getOrganizationUserCall(String organization, String username } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return getOrganizationUserCall(organization, username, _callback); } @@ -2047,8 +2001,8 @@ public okhttp3.Call getSSODomainCall(String organization, String uuid, final Api // create path and map variables String localVarPath = "/organizations/{organization}/sso_domains/{uuid}" - .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())) - .replaceAll("\\{" + "uuid" + "\\}", localVarApiClient.escapeString(uuid.toString())); + .replace("{" + "organization" + "}", localVarApiClient.escapeString(organization.toString())) + .replace("{" + "uuid" + "}", localVarApiClient.escapeString(uuid.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2065,33 +2019,29 @@ public okhttp3.Call getSSODomainCall(String organization, String uuid, final Api } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return getSSODomainCall(organization, uuid, _callback); } @@ -2187,7 +2137,7 @@ public okhttp3.Call getSSODomainsCall(String organization, final ApiCallback _ca // create path and map variables String localVarPath = "/organizations/{organization}/sso_domains" - .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())); + .replace("{" + "organization" + "}", localVarApiClient.escapeString(organization.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2204,28 +2154,24 @@ public okhttp3.Call getSSODomainsCall(String organization, final ApiCallback _ca } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return getSSODomainsCall(organization, _callback); } @@ -2321,8 +2267,8 @@ public okhttp3.Call updateAWSAccessCredentialsCall(String namespace, String name // create path and map variables String localVarPath = "/credentials/{namespace}/aws/{name}" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2346,31 +2292,28 @@ public okhttp3.Call updateAWSAccessCredentialsCall(String namespace, String name localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return updateAWSAccessCredentialsCall(namespace, name, awsAccessCredentials, _callback); } @@ -2452,7 +2395,7 @@ public okhttp3.Call updateAWSAccessCredentialsAsync(String namespace, String nam
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 -
0 error response -
*/ - public okhttp3.Call updateOrganizationCall(String organization, Organization organizationDetails, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateOrganizationCall(String organization, OrganizationUpdate organizationDetails, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2470,7 +2413,7 @@ public okhttp3.Call updateOrganizationCall(String organization, Organization org // create path and map variables String localVarPath = "/organizations/{organization}" - .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())); + .replace("{" + "organization" + "}", localVarApiClient.escapeString(organization.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2494,26 +2437,23 @@ public okhttp3.Call updateOrganizationCall(String organization, Organization org localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call updateOrganizationValidateBeforeCall(String organization, Organization organizationDetails, final ApiCallback _callback) throws ApiException { - + 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; + return updateOrganizationCall(organization, organizationDetails, _callback); } @@ -2531,7 +2471,7 @@ private okhttp3.Call updateOrganizationValidateBeforeCall(String organization, O 0 error response - */ - public void updateOrganization(String organization, Organization organizationDetails) throws ApiException { + public void updateOrganization(String organization, OrganizationUpdate organizationDetails) throws ApiException { updateOrganizationWithHttpInfo(organization, organizationDetails); } @@ -2550,7 +2490,7 @@ public void updateOrganization(String organization, Organization organizationDet 0 error response - */ - public ApiResponse updateOrganizationWithHttpInfo(String organization, Organization organizationDetails) throws ApiException { + public ApiResponse updateOrganizationWithHttpInfo(String organization, OrganizationUpdate organizationDetails) throws ApiException { okhttp3.Call localVarCall = updateOrganizationValidateBeforeCall(organization, organizationDetails, null); return localVarApiClient.execute(localVarCall); } @@ -2571,7 +2511,7 @@ public ApiResponse updateOrganizationWithHttpInfo(String organization, Org 0 error response - */ - public okhttp3.Call updateOrganizationAsync(String organization, Organization organizationDetails, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateOrganizationAsync(String organization, OrganizationUpdate organizationDetails, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateOrganizationValidateBeforeCall(organization, organizationDetails, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -2610,8 +2550,8 @@ public okhttp3.Call updateSSODomainCall(String organization, String uuid, SSODom // create path and map variables String localVarPath = "/organizations/{organization}/sso_domains/{uuid}" - .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())) - .replaceAll("\\{" + "uuid" + "\\}", localVarApiClient.escapeString(uuid.toString())); + .replace("{" + "organization" + "}", localVarApiClient.escapeString(organization.toString())) + .replace("{" + "uuid" + "}", localVarApiClient.escapeString(uuid.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2635,31 +2575,28 @@ public okhttp3.Call updateSSODomainCall(String organization, String uuid, SSODom localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return updateSSODomainCall(organization, uuid, config, _callback); } @@ -2761,8 +2698,8 @@ public okhttp3.Call updateUserInOrganizationCall(String organization, String use // create path and map variables String localVarPath = "/organizations/{organization}/{username}" - .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())) - .replaceAll("\\{" + "username" + "\\}", localVarApiClient.escapeString(username.toString())); + .replace("{" + "organization" + "}", localVarApiClient.escapeString(organization.toString())) + .replace("{" + "username" + "}", localVarApiClient.escapeString(username.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2786,31 +2723,28 @@ public okhttp3.Call updateUserInOrganizationCall(String organization, String use localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return updateUserInOrganizationCall(organization, username, user, _callback); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/api/QueryApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/QueryApi.java index 7d1f6a5..fff1ee2 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/api/QueryApi.java +++ b/src/main/java/io/tiledb/cloud/rest_api/api/QueryApi.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,18 +14,23 @@ package io.tiledb.cloud.rest_api.api; import io.tiledb.cloud.rest_api.ApiCallback; -import io.tiledb.cloud.rest_api.model.Query; -import io.tiledb.cloud.rest_api.model.QueryJson; import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.ApiResponse; import io.tiledb.cloud.rest_api.Configuration; import io.tiledb.cloud.rest_api.Pair; +import io.tiledb.cloud.rest_api.ProgressRequestBody; +import io.tiledb.cloud.rest_api.ProgressResponseBody; import com.google.gson.reflect.TypeToken; +import java.io.IOException; + +import io.tiledb.cloud.rest_api.model.Error; 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; @@ -109,8 +114,8 @@ public okhttp3.Call finalizeQueryCall(String namespace, String array, String typ // create path and map variables String localVarPath = "/arrays/{namespace}/{array}/query/finalize" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -135,7 +140,8 @@ public okhttp3.Call finalizeQueryCall(String namespace, String array, String typ } final String[] localVarAccepts = { - "application/json", "application/capnp" + "application/json", + "application/capnp" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -143,48 +149,46 @@ public okhttp3.Call finalizeQueryCall(String namespace, String array, String typ } final String[] localVarContentTypes = { - "application/json", "application/capnp" + "application/json", + "application/capnp" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return finalizeQueryCall(namespace, array, type, contentType, query, xPayer, openAt, _callback); } @@ -309,8 +313,8 @@ public okhttp3.Call getEstResultSizesCall(String namespace, String array, String // 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())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -335,7 +339,8 @@ public okhttp3.Call getEstResultSizesCall(String namespace, String array, String } final String[] localVarAccepts = { - "application/json", "application/capnp" + "application/json", + "application/capnp" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -343,48 +348,46 @@ public okhttp3.Call getEstResultSizesCall(String namespace, String array, String } final String[] localVarContentTypes = { - "application/json", "application/capnp" + "application/json", + "application/capnp" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return getEstResultSizesCall(namespace, array, type, contentType, query, xPayer, openAt, _callback); } @@ -505,8 +508,8 @@ public okhttp3.Call getFileCall(String namespace, String array, String contentTy // 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())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -531,38 +534,34 @@ public okhttp3.Call getFileCall(String namespace, String array, String contentTy } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return getFileCall(namespace, array, contentType, xPayer, _callback); } @@ -675,8 +674,8 @@ public okhttp3.Call submitQueryCall(String namespace, String array, String type, // create path and map variables String localVarPath = "/arrays/{namespace}/{array}/query/submit" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -701,7 +700,8 @@ public okhttp3.Call submitQueryCall(String namespace, String array, String type, } final String[] localVarAccepts = { - "application/json", "application/capnp" + "application/json", + "application/capnp" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -709,48 +709,46 @@ public okhttp3.Call submitQueryCall(String namespace, String array, String type, } final String[] localVarContentTypes = { - "application/json", "application/capnp" + "application/json", + "application/capnp" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return submitQueryCall(namespace, array, type, contentType, query, xPayer, openAt, _callback); } @@ -872,8 +870,8 @@ public okhttp3.Call submitQueryJsonCall(String namespace, String array, String c // 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())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -905,36 +903,33 @@ public okhttp3.Call submitQueryJsonCall(String namespace, String array, String c localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return submitQueryJsonCall(namespace, array, contentType, queryJson, xPayer, _callback); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/api/RegisteredTaskGraphsApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/RegisteredTaskGraphsApi.java index 4d96ef6..d204743 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/api/RegisteredTaskGraphsApi.java +++ b/src/main/java/io/tiledb/cloud/rest_api/api/RegisteredTaskGraphsApi.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,16 +14,22 @@ package io.tiledb.cloud.rest_api.api; import io.tiledb.cloud.rest_api.ApiCallback; -import io.tiledb.cloud.rest_api.model.RegisteredTaskGraph; -import io.tiledb.cloud.rest_api.model.TaskGraphSharing; import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.ApiResponse; import io.tiledb.cloud.rest_api.Configuration; import io.tiledb.cloud.rest_api.Pair; +import io.tiledb.cloud.rest_api.ProgressRequestBody; +import io.tiledb.cloud.rest_api.ProgressResponseBody; import com.google.gson.reflect.TypeToken; +import java.io.IOException; + + +import io.tiledb.cloud.rest_api.model.Error; +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; @@ -101,8 +107,8 @@ public okhttp3.Call deleteRegisteredTaskGraphCall(String namespace, String name, // create path and map variables String localVarPath = "/taskgraphs/{namespace}/registered/{name}" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -119,33 +125,29 @@ public okhttp3.Call deleteRegisteredTaskGraphCall(String namespace, String name, } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return deleteRegisteredTaskGraphCall(namespace, name, _callback); } @@ -242,8 +244,8 @@ public okhttp3.Call getRegisteredTaskGraphCall(String namespace, String name, fi // create path and map variables String localVarPath = "/taskgraphs/{namespace}/registered/{name}" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -260,33 +262,29 @@ public okhttp3.Call getRegisteredTaskGraphCall(String namespace, String name, fi } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return getRegisteredTaskGraphCall(namespace, name, _callback); } @@ -388,8 +386,8 @@ public okhttp3.Call getRegisteredTaskGraphSharingPoliciesCall(String namespace, // create path and map variables String localVarPath = "/taskgraphs/{namespace}/registered/{name}/share" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -406,33 +404,29 @@ public okhttp3.Call getRegisteredTaskGraphSharingPoliciesCall(String namespace, } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return getRegisteredTaskGraphSharingPoliciesCall(namespace, name, _callback); } @@ -537,8 +531,8 @@ public okhttp3.Call registerRegisteredTaskGraphCall(String namespace, String nam // create path and map variables String localVarPath = "/taskgraphs/{namespace}/registered/{name}" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -562,26 +556,23 @@ public okhttp3.Call registerRegisteredTaskGraphCall(String namespace, String nam localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return registerRegisteredTaskGraphCall(namespace, name, graph, _callback); } @@ -683,8 +674,8 @@ public okhttp3.Call shareRegisteredTaskGraphCall(String namespace, String name, // create path and map variables String localVarPath = "/taskgraphs/{namespace}/registered/{name}/share" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -708,31 +699,28 @@ public okhttp3.Call shareRegisteredTaskGraphCall(String namespace, String name, localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return shareRegisteredTaskGraphCall(namespace, name, taskGraphSharing, _callback); } @@ -836,8 +824,8 @@ public okhttp3.Call updateRegisteredTaskGraphCall(String namespace, String name, // create path and map variables String localVarPath = "/taskgraphs/{namespace}/registered/{name}" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -861,26 +849,23 @@ public okhttp3.Call updateRegisteredTaskGraphCall(String namespace, String name, localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return updateRegisteredTaskGraphCall(namespace, name, graph, _callback); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/api/SqlApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/SqlApi.java index ca9273d..bcdd50a 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/api/SqlApi.java +++ b/src/main/java/io/tiledb/cloud/rest_api/api/SqlApi.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,16 +13,22 @@ package io.tiledb.cloud.rest_api.api; -import io.tiledb.cloud.rest_api.model.SQLParameters; -import io.tiledb.cloud.rest_api.Configuration; import io.tiledb.cloud.rest_api.ApiCallback; import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.ApiResponse; +import io.tiledb.cloud.rest_api.Configuration; import io.tiledb.cloud.rest_api.Pair; +import io.tiledb.cloud.rest_api.ProgressRequestBody; +import io.tiledb.cloud.rest_api.ProgressResponseBody; import com.google.gson.reflect.TypeToken; +import java.io.IOException; + + +import io.tiledb.cloud.rest_api.model.Error; +import io.tiledb.cloud.rest_api.model.SQLParameters; import java.lang.reflect.Type; import java.util.ArrayList; @@ -102,7 +108,7 @@ public okhttp3.Call runSQLCall(String namespace, SQLParameters sql, String accep // create path and map variables String localVarPath = "/sql/{namespace}" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -130,70 +136,24 @@ public okhttp3.Call runSQLCall(String namespace, SQLParameters sql, String accep localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; - } + return runSQLCall(namespace, sql, acceptEncoding, _callback); - /** - * - * 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 with byte[] - * @throws ApiException 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
0 error response -
- */ - public ApiResponse runSQLWithHttpInfoBytes(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); - } - - /** - * - * 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 byte[] - * @throws ApiException 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
0 error response -
- */ - public byte[] runSQLBytes(String namespace, SQLParameters sql, String acceptEncoding) throws ApiException { - ApiResponse localVarResp = runSQLWithHttpInfoBytes(namespace, sql, acceptEncoding); - return localVarResp.getData(); } /** @@ -202,7 +162,7 @@ public byte[] runSQLBytes(String namespace, SQLParameters sql, String acceptEnco * @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> + * @return List<Map<String, Object>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -213,8 +173,8 @@ public byte[] runSQLBytes(String namespace, SQLParameters sql, String acceptEnco
0 error response -
*/ - public List runSQL(String namespace, SQLParameters sql, String acceptEncoding) throws ApiException { - ApiResponse> localVarResp = runSQLWithHttpInfo(namespace, sql, acceptEncoding); + public List> runSQL(String namespace, SQLParameters sql, String acceptEncoding) throws ApiException { + ApiResponse>> localVarResp = runSQLWithHttpInfo(namespace, sql, acceptEncoding); return localVarResp.getData(); } @@ -224,7 +184,7 @@ public List runSQL(String namespace, SQLParameters sql, String acceptEnc * @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>> + * @return ApiResponse<List<Map<String, Object>>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -235,9 +195,9 @@ public List runSQL(String namespace, SQLParameters sql, String acceptEnc
0 error response -
*/ - public ApiResponse> runSQLWithHttpInfo(String namespace, SQLParameters sql, String acceptEncoding) throws ApiException { + public ApiResponse>> runSQLWithHttpInfo(String namespace, SQLParameters sql, String acceptEncoding) throws ApiException { okhttp3.Call localVarCall = runSQLValidateBeforeCall(namespace, sql, acceptEncoding, null); - Type localVarReturnType = new TypeToken>(){}.getType(); + Type localVarReturnType = new TypeToken>>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -259,11 +219,54 @@ public ApiResponse> runSQLWithHttpInfo(String namespace, SQLParamet 0 error response - */ - public okhttp3.Call runSQLAsync(String namespace, SQLParameters sql, String acceptEncoding, final ApiCallback> _callback) throws ApiException { + 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(); + Type localVarReturnType = new TypeToken>>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _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 ApiResponse with byte[] + * @throws ApiException 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
0 error response -
+ */ + public ApiResponse runSQLWithHttpInfoBytes(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); + } + + /** + * + * 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 byte[] + * @throws ApiException 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
0 error response -
+ */ + public byte[] runSQLBytes(String namespace, SQLParameters sql, String acceptEncoding) throws ApiException { + ApiResponse localVarResp = runSQLWithHttpInfoBytes(namespace, sql, acceptEncoding); + return localVarResp.getData(); + } } diff --git a/src/main/java/io/tiledb/cloud/rest_api/api/StatsApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/StatsApi.java index c36a896..acc0f9e 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/api/StatsApi.java +++ b/src/main/java/io/tiledb/cloud/rest_api/api/StatsApi.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,15 +14,21 @@ package io.tiledb.cloud.rest_api.api; import io.tiledb.cloud.rest_api.ApiCallback; -import io.tiledb.cloud.rest_api.model.GetTiledbStats200Response; import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.ApiResponse; import io.tiledb.cloud.rest_api.Configuration; import io.tiledb.cloud.rest_api.Pair; +import io.tiledb.cloud.rest_api.ProgressRequestBody; +import io.tiledb.cloud.rest_api.ProgressResponseBody; import com.google.gson.reflect.TypeToken; +import java.io.IOException; + + +import io.tiledb.cloud.rest_api.model.Error; +import io.tiledb.cloud.rest_api.model.GetTiledbStats200Response; import java.lang.reflect.Type; import java.util.ArrayList; @@ -114,23 +120,19 @@ public okhttp3.Call getTiledbStatsCall(final ApiCallback _callback) throws ApiEx } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return getTiledbStatsCall(_callback); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/api/TaskGraphLogsApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/TaskGraphLogsApi.java index 5585602..f9fb203 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/api/TaskGraphLogsApi.java +++ b/src/main/java/io/tiledb/cloud/rest_api/api/TaskGraphLogsApi.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,19 +14,24 @@ package io.tiledb.cloud.rest_api.api; import io.tiledb.cloud.rest_api.ApiCallback; -import io.tiledb.cloud.rest_api.model.TaskGraphLog; -import io.tiledb.cloud.rest_api.model.TaskGraphClientNodeStatus; -import io.tiledb.cloud.rest_api.model.TaskGraphLogsData; import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.ApiResponse; import io.tiledb.cloud.rest_api.Configuration; import io.tiledb.cloud.rest_api.Pair; +import io.tiledb.cloud.rest_api.ProgressRequestBody; +import io.tiledb.cloud.rest_api.ProgressResponseBody; import com.google.gson.reflect.TypeToken; +import java.io.IOException; + +import io.tiledb.cloud.rest_api.model.Error; 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; @@ -104,7 +109,7 @@ public okhttp3.Call createTaskGraphLogCall(String namespace, TaskGraphLog log, f // create path and map variables String localVarPath = "/taskgraphs/{namespace}/log" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -128,26 +133,23 @@ public okhttp3.Call createTaskGraphLogCall(String namespace, TaskGraphLog log, f localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return createTaskGraphLogCall(namespace, log, _callback); } @@ -248,8 +250,8 @@ public okhttp3.Call getTaskGraphLogCall(String namespace, String id, final ApiCa // create path and map variables String localVarPath = "/taskgraphs/{namespace}/logs/{id}" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -266,33 +268,29 @@ public okhttp3.Call getTaskGraphLogCall(String namespace, String id, final ApiCa } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return getTaskGraphLogCall(namespace, id, _callback); } @@ -364,6 +362,7 @@ public okhttp3.Call getTaskGraphLogAsync(String namespace, String id, final ApiC * 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) @@ -380,7 +379,7 @@ public okhttp3.Call getTaskGraphLogAsync(String namespace, String id, final ApiC 0 error response - */ - public okhttp3.Call listTaskGraphLogsCall(String namespace, String createdBy, String search, OffsetDateTime startTime, OffsetDateTime endTime, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { + 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[] { }; @@ -413,6 +412,10 @@ public okhttp3.Call listTaskGraphLogsCall(String namespace, String createdBy, St 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)); } @@ -442,23 +445,19 @@ public okhttp3.Call listTaskGraphLogsCall(String namespace, String createdBy, St } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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 search, OffsetDateTime startTime, OffsetDateTime endTime, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = listTaskGraphLogsCall(namespace, createdBy, search, startTime, endTime, page, perPage, _callback); - return localVarCall; + 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 { + return listTaskGraphLogsCall(namespace, createdBy, status, search, startTime, endTime, page, perPage, _callback); } @@ -467,6 +466,7 @@ private okhttp3.Call listTaskGraphLogsValidateBeforeCall(String namespace, Strin * 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) @@ -482,8 +482,8 @@ private okhttp3.Call listTaskGraphLogsValidateBeforeCall(String namespace, Strin 0 error response - */ - public TaskGraphLogsData listTaskGraphLogs(String namespace, String createdBy, String search, OffsetDateTime startTime, OffsetDateTime endTime, Integer page, Integer perPage) throws ApiException { - ApiResponse localVarResp = listTaskGraphLogsWithHttpInfo(namespace, createdBy, search, startTime, endTime, page, perPage); + 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(); } @@ -492,6 +492,7 @@ public TaskGraphLogsData listTaskGraphLogs(String namespace, String createdBy, S * 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) @@ -507,8 +508,8 @@ public TaskGraphLogsData listTaskGraphLogs(String namespace, String createdBy, S 0 error response - */ - public ApiResponse listTaskGraphLogsWithHttpInfo(String namespace, String createdBy, String search, OffsetDateTime startTime, OffsetDateTime endTime, Integer page, Integer perPage) throws ApiException { - okhttp3.Call localVarCall = listTaskGraphLogsValidateBeforeCall(namespace, createdBy, search, startTime, endTime, page, perPage, null); + 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); } @@ -518,6 +519,7 @@ public ApiResponse listTaskGraphLogsWithHttpInfo(String names * 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) @@ -534,9 +536,9 @@ public ApiResponse listTaskGraphLogsWithHttpInfo(String names 0 error response - */ - public okhttp3.Call listTaskGraphLogsAsync(String namespace, String createdBy, String search, OffsetDateTime startTime, OffsetDateTime endTime, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { + 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, search, startTime, endTime, page, perPage, _callback); + 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; @@ -575,8 +577,8 @@ public okhttp3.Call reportClientNodeCall(String namespace, String id, TaskGraphC // 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())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -600,31 +602,28 @@ public okhttp3.Call reportClientNodeCall(String namespace, String id, TaskGraphC localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return reportClientNodeCall(namespace, id, report, _callback); } @@ -724,8 +723,8 @@ public okhttp3.Call resubmitTaskGraphExecutionCall(String namespace, String id, // create path and map variables String localVarPath = "/taskgraphs/{namespace}/executions/{id}/resubmit" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -742,33 +741,29 @@ public okhttp3.Call resubmitTaskGraphExecutionCall(String namespace, String id, } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return resubmitTaskGraphExecutionCall(namespace, id, _callback); } @@ -869,8 +864,8 @@ public okhttp3.Call retryTaskGraphExecutionCall(String namespace, String id, fin // create path and map variables String localVarPath = "/taskgraphs/{namespace}/executions/{id}/retry" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -887,33 +882,29 @@ public okhttp3.Call retryTaskGraphExecutionCall(String namespace, String id, fin } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return retryTaskGraphExecutionCall(namespace, id, _callback); } @@ -991,7 +982,7 @@ public okhttp3.Call retryTaskGraphExecutionAsync(String namespace, String id, fi * @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 -
@@ -1014,8 +1005,8 @@ public okhttp3.Call stopTaskGraphExecutionCall(String namespace, String id, fina // create path and map variables String localVarPath = "/taskgraphs/{namespace}/executions/{id}/stop" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1032,33 +1023,29 @@ public okhttp3.Call stopTaskGraphExecutionCall(String namespace, String id, fina } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return stopTaskGraphExecutionCall(namespace, id, _callback); } @@ -1067,19 +1054,17 @@ private okhttp3.Call stopTaskGraphExecutionValidateBeforeCall(String namespace, * 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 TaskGraphLog * @throws ApiException 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. -
204 Graph stopped successfully -
502 Bad Gateway -
0 error response -
*/ - public TaskGraphLog stopTaskGraphExecution(String namespace, String id) throws ApiException { - ApiResponse localVarResp = stopTaskGraphExecutionWithHttpInfo(namespace, id); - return localVarResp.getData(); + public void stopTaskGraphExecution(String namespace, String id) throws ApiException { + stopTaskGraphExecutionWithHttpInfo(namespace, id); } /** @@ -1087,20 +1072,19 @@ public TaskGraphLog stopTaskGraphExecution(String namespace, String id) throws A * 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<TaskGraphLog> + * @return ApiResponse<Void> * @throws ApiException 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. -
204 Graph stopped successfully -
502 Bad Gateway -
0 error response -
*/ - public ApiResponse stopTaskGraphExecutionWithHttpInfo(String namespace, String id) throws ApiException { + public ApiResponse stopTaskGraphExecutionWithHttpInfo(String namespace, String id) throws ApiException { okhttp3.Call localVarCall = stopTaskGraphExecutionValidateBeforeCall(namespace, id, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + return localVarApiClient.execute(localVarCall); } /** @@ -1114,16 +1098,15 @@ public ApiResponse stopTaskGraphExecutionWithHttpInfo(String names * @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 -
*/ - public okhttp3.Call stopTaskGraphExecutionAsync(String namespace, String id, final ApiCallback _callback) throws ApiException { + public okhttp3.Call stopTaskGraphExecutionAsync(String namespace, String id, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = stopTaskGraphExecutionValidateBeforeCall(namespace, id, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** @@ -1159,8 +1142,8 @@ public okhttp3.Call submitTaskGraphCall(String namespace, String id, final ApiCa // create path and map variables String localVarPath = "/taskgraphs/{namespace}/graphs/{id}/submit" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1177,33 +1160,29 @@ public okhttp3.Call submitTaskGraphCall(String namespace, String id, final ApiCa } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call submitTaskGraphValidateBeforeCall(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 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, _callback); - return localVarCall; + return submitTaskGraphCall(namespace, id, _callback); } @@ -1305,8 +1284,8 @@ public okhttp3.Call updateTaskGraphLogCall(String namespace, String id, TaskGrap // create path and map variables String localVarPath = "/taskgraphs/{namespace}/logs/{id}" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1330,31 +1309,28 @@ public okhttp3.Call updateTaskGraphLogCall(String namespace, String id, TaskGrap localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return updateTaskGraphLogCall(namespace, id, log, _callback); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/api/TaskGraphsApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/TaskGraphsApi.java index a5d838b..4025376 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/api/TaskGraphsApi.java +++ b/src/main/java/io/tiledb/cloud/rest_api/api/TaskGraphsApi.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,18 +13,24 @@ package io.tiledb.cloud.rest_api.api; -import io.tiledb.cloud.rest_api.model.TaskGraphLog; -import io.tiledb.cloud.rest_api.model.TaskGraphs; -import io.tiledb.cloud.rest_api.model.TaskGraph; import io.tiledb.cloud.rest_api.ApiCallback; import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.ApiResponse; import io.tiledb.cloud.rest_api.Configuration; import io.tiledb.cloud.rest_api.Pair; +import io.tiledb.cloud.rest_api.ProgressRequestBody; +import io.tiledb.cloud.rest_api.ProgressResponseBody; import com.google.gson.reflect.TypeToken; +import java.io.IOException; + + +import io.tiledb.cloud.rest_api.model.Error; +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; @@ -102,7 +108,7 @@ public okhttp3.Call createTaskGraphCall(String namespace, TaskGraph graph, final // create path and map variables String localVarPath = "/taskgraphs/{namespace}/graphs" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -126,26 +132,23 @@ public okhttp3.Call createTaskGraphCall(String namespace, TaskGraph graph, final localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return createTaskGraphCall(namespace, graph, _callback); } @@ -246,8 +249,8 @@ public okhttp3.Call getTaskGraphCall(String namespace, String id, final ApiCallb // create path and map variables String localVarPath = "/taskgraphs/{namespace}/graphs/{id}" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -264,33 +267,29 @@ public okhttp3.Call getTaskGraphCall(String namespace, String id, final ApiCallb } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return getTaskGraphCall(namespace, id, _callback); } @@ -390,7 +389,7 @@ public okhttp3.Call listTaskGraphsCall(String namespace, final ApiCallback _call // create path and map variables String localVarPath = "/taskgraphs/{namespace}/graphs" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -407,28 +406,24 @@ public okhttp3.Call listTaskGraphsCall(String namespace, final ApiCallback _call } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return listTaskGraphsCall(namespace, _callback); } @@ -526,8 +521,8 @@ public okhttp3.Call submitTaskGraphCall(String namespace, String id, final ApiCa // create path and map variables String localVarPath = "/taskgraphs/{namespace}/graphs/{id}/submit" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -544,33 +539,29 @@ public okhttp3.Call submitTaskGraphCall(String namespace, String id, final ApiCa } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call submitTaskGraphValidateBeforeCall(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 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, _callback); - return localVarCall; + return submitTaskGraphCall(namespace, id, _callback); } @@ -672,8 +663,8 @@ public okhttp3.Call updateTaskGraphCall(String namespace, String id, TaskGraph g // create path and map variables String localVarPath = "/taskgraphs/{namespace}/graphs/{id}" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -697,31 +688,28 @@ public okhttp3.Call updateTaskGraphCall(String namespace, String id, TaskGraph g localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return updateTaskGraphCall(namespace, id, graph, _callback); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/api/TasksApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/TasksApi.java index c61ffd6..078670c 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/api/TasksApi.java +++ b/src/main/java/io/tiledb/cloud/rest_api/api/TasksApi.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,17 +14,23 @@ package io.tiledb.cloud.rest_api.api; import io.tiledb.cloud.rest_api.ApiCallback; -import io.tiledb.cloud.rest_api.model.SQLParameters; -import io.tiledb.cloud.rest_api.model.ArrayTask; -import io.tiledb.cloud.rest_api.model.ArrayTaskData; import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.ApiResponse; import io.tiledb.cloud.rest_api.Configuration; import io.tiledb.cloud.rest_api.Pair; +import io.tiledb.cloud.rest_api.ProgressRequestBody; +import io.tiledb.cloud.rest_api.ProgressResponseBody; import com.google.gson.reflect.TypeToken; +import java.io.IOException; + + +import io.tiledb.cloud.rest_api.model.ArrayTask; +import io.tiledb.cloud.rest_api.model.ArrayTaskData; +import io.tiledb.cloud.rest_api.model.Error; +import io.tiledb.cloud.rest_api.model.SQLParameters; import java.lang.reflect.Type; import java.util.ArrayList; @@ -104,7 +110,7 @@ public okhttp3.Call runSQLCall(String namespace, SQLParameters sql, String accep // create path and map variables String localVarPath = "/sql/{namespace}" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -132,26 +138,23 @@ public okhttp3.Call runSQLCall(String namespace, SQLParameters sql, String accep localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return runSQLCall(namespace, sql, acceptEncoding, _callback); } @@ -161,7 +164,7 @@ private okhttp3.Call runSQLValidateBeforeCall(String namespace, SQLParameters sq * @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> + * @return List<Map<String, Object>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -172,8 +175,8 @@ private okhttp3.Call runSQLValidateBeforeCall(String namespace, SQLParameters sq
0 error response -
*/ - public List runSQL(String namespace, SQLParameters sql, String acceptEncoding) throws ApiException { - ApiResponse> localVarResp = runSQLWithHttpInfo(namespace, sql, acceptEncoding); + public List> runSQL(String namespace, SQLParameters sql, String acceptEncoding) throws ApiException { + ApiResponse>> localVarResp = runSQLWithHttpInfo(namespace, sql, acceptEncoding); return localVarResp.getData(); } @@ -183,7 +186,7 @@ public List runSQL(String namespace, SQLParameters sql, String acceptEnc * @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>> + * @return ApiResponse<List<Map<String, Object>>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -194,9 +197,9 @@ public List runSQL(String namespace, SQLParameters sql, String acceptEnc
0 error response -
*/ - public ApiResponse> runSQLWithHttpInfo(String namespace, SQLParameters sql, String acceptEncoding) throws ApiException { + public ApiResponse>> runSQLWithHttpInfo(String namespace, SQLParameters sql, String acceptEncoding) throws ApiException { okhttp3.Call localVarCall = runSQLValidateBeforeCall(namespace, sql, acceptEncoding, null); - Type localVarReturnType = new TypeToken>(){}.getType(); + Type localVarReturnType = new TypeToken>>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -218,10 +221,10 @@ public ApiResponse> runSQLWithHttpInfo(String namespace, SQLParamet 0 error response - */ - public okhttp3.Call runSQLAsync(String namespace, SQLParameters sql, String acceptEncoding, final ApiCallback> _callback) throws ApiException { + 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(); + Type localVarReturnType = new TypeToken>>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -257,7 +260,7 @@ public okhttp3.Call taskIdGetCall(String id, final ApiCallback _callback) throws // create path and map variables String localVarPath = "/task/{id}" - .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -274,28 +277,24 @@ public okhttp3.Call taskIdGetCall(String id, final ApiCallback _callback) throws } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return taskIdGetCall(id, _callback); } @@ -395,7 +394,7 @@ public okhttp3.Call taskIdResultGetCall(String id, String acceptEncoding, final // create path and map variables String localVarPath = "/task/{id}/result" - .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -416,28 +415,24 @@ public okhttp3.Call taskIdResultGetCall(String id, String acceptEncoding, final } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return taskIdResultGetCall(id, acceptEncoding, _callback); } @@ -628,23 +623,19 @@ public okhttp3.Call tasksGetCall(String namespace, String createdBy, String arra } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return tasksGetCall(namespace, createdBy, array, start, end, page, perPage, type, excludeType, fileType, excludeFileType, status, search, orderby, _callback); } diff --git a/src/main/java/io/tiledb/cloud/rest_api/api/UdfApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/UdfApi.java index f027490..4eb656b 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/api/UdfApi.java +++ b/src/main/java/io/tiledb/cloud/rest_api/api/UdfApi.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,22 +13,27 @@ package io.tiledb.cloud.rest_api.api; -import io.tiledb.cloud.rest_api.model.ArrayEndTimestampData; -import io.tiledb.cloud.rest_api.model.UDFCopy; import io.tiledb.cloud.rest_api.ApiCallback; import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.ApiResponse; import io.tiledb.cloud.rest_api.Configuration; import io.tiledb.cloud.rest_api.Pair; +import io.tiledb.cloud.rest_api.ProgressRequestBody; +import io.tiledb.cloud.rest_api.ProgressResponseBody; import com.google.gson.reflect.TypeToken; +import java.io.IOException; + +import io.tiledb.cloud.rest_api.model.ArrayEndTimestampData; +import io.tiledb.cloud.rest_api.model.Error; 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; @@ -109,8 +114,8 @@ public okhttp3.Call deleteUDFInfoCall(String namespace, String name, final ApiCa // create path and map variables String localVarPath = "/udf/{namespace}/{name}" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -127,376 +132,216 @@ public okhttp3.Call deleteUDFInfoCall(String namespace, String name, final ApiCa } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return deleteUDFInfoCall(namespace, name, _callback); } /** - * - * submit a generic UDF in the given namespace + * + * 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 udf UDF to run (required) - * @param acceptEncoding Encoding to use (optional) - * @return byte[] + * @param name name to register UDF under (required) * @throws ApiException 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
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
+ + + + + +
Status Code Description Response Headers
204 UDF deleted successfully -
502 Bad Gateway -
0 error response -
*/ - public byte[] submitGenericUDFBytes(String namespace, GenericUDF udf, String acceptEncoding) throws ApiException { - ApiResponse localVarResp = submitGenericUDFWithHttpInfoBytes(namespace, udf, acceptEncoding); - return localVarResp.getData(); + public void deleteUDFInfo(String namespace, String name) throws ApiException { + deleteUDFInfoWithHttpInfo(namespace, name); } /** - * - * submit a generic UDF in the given namespace + * + * 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 udf UDF to run (required) - * @param acceptEncoding Encoding to use (optional) - * @return ApiResponse<byte[]> + * @param name name to register UDF under (required) + * @return ApiResponse<Void> * @throws ApiException 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
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
+ + + + + +
Status Code Description Response Headers
204 UDF deleted successfully -
502 Bad Gateway -
0 error response -
*/ - public ApiResponse submitGenericUDFWithHttpInfoBytes(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); + public ApiResponse deleteUDFInfoWithHttpInfo(String namespace, String name) throws ApiException { + okhttp3.Call localVarCall = deleteUDFInfoValidateBeforeCall(namespace, name, null); + return localVarApiClient.execute(localVarCall); } /** - * - * submit a generic UDF in the given namespace + * (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 udf UDF to run (required) - * @param acceptEncoding Encoding to use (optional) - * @return Object - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @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 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
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
+ + + + + +
Status Code Description Response Headers
204 UDF deleted successfully -
502 Bad Gateway -
0 error response -
*/ - public Object submitGenericUDFObj(String namespace, GenericUDF udf, String acceptEncoding) throws ApiException { - ApiResponse localVarResp = submitGenericUDFWithHttpInfoObj(namespace, udf, acceptEncoding); - return localVarResp.getData(); - } + 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; + } /** - * - * submit a multi-array UDF in the given namespace + * Build call for getUDFInfo * @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 String - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @param name name to register UDF under (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object * @http.response.details - - - - -
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
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
+ + + + + + +
Status Code Description Response Headers
200 UDFInfo was retrieved successfully -
404 UDF not found -
502 Bad Gateway -
0 error response -
*/ - public String submitMultiArrayUDFString(String namespace, MultiArrayUDF udf, String acceptEncoding) throws ApiException { - ApiResponse localVarResp = submitMultiArrayUDFWithHttpInfoString(namespace, udf, acceptEncoding); - return localVarResp.getData(); + 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}" + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "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[] { "BasicAuth", "ApiKeyAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - /** - * - * 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<String> - * @throws ApiException 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
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
- */ - public ApiResponse submitMultiArrayUDFWithHttpInfoString(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); + @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)"); + } + + return getUDFInfoCall(namespace, name, _callback); + } /** - * - * submit a multi-array UDF in the given namespace + * + * get a specific 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 byte[] + * @param name name to register UDF under (required) + * @return UDFInfo * @throws ApiException 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
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
+ + + + + + +
Status Code Description Response Headers
200 UDFInfo was retrieved successfully -
404 UDF not found -
502 Bad Gateway -
0 error response -
*/ - public byte[] submitMultiArrayUDFBytes(String namespace, MultiArrayUDF udf, String acceptEncoding) throws ApiException { - ApiResponse localVarResp = submitMultiArrayUDFWithHttpInfoBytes(namespace, udf, acceptEncoding); + public UDFInfo getUDFInfo(String namespace, String name) throws ApiException { + ApiResponse localVarResp = getUDFInfoWithHttpInfo(namespace, name); return localVarResp.getData(); } /** - * - * send a UDF to run against a specified array/URI registered to a group/project + * + * get a specific UDF in 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 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 String + * @param name name to register UDF under (required) + * @return ApiResponse<UDFInfo> * @throws ApiException 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
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
+ + + + + + +
Status Code Description Response Headers
200 UDFInfo was retrieved successfully -
404 UDF not found -
502 Bad Gateway -
0 error response -
*/ - public String submitUDFString(String namespace, String array, MultiArrayUDF udf, String xPayer, String acceptEncoding, String v2) throws ApiException { - ApiResponse localVarResp = submitUDFWithHttpInfoString(namespace, array, udf, xPayer, acceptEncoding, v2); - return localVarResp.getData(); + 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); } /** - * - * 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<String> - * @throws ApiException 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
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
- */ - public ApiResponse submitUDFWithHttpInfoString(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); - } - - /** - * - * 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 byte[] - * @throws ApiException 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
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
- */ - public byte[] submitUDFBytes(String namespace, String array, MultiArrayUDF udf, String xPayer, String acceptEncoding, String v2) throws ApiException { - ApiResponse localVarResp = submitUDFWithHttpInfoBytes(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<byte[]> - * @throws ApiException 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
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
- */ - public ApiResponse submitUDFWithHttpInfoBytes(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); - } - - /** - * - * 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<byte[]> - * @throws ApiException 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
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
- */ - public ApiResponse submitMultiArrayUDFWithHttpInfoBytes(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); - } - - /** - * - * 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<Object> - * @throws ApiException 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
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
- */ - public ApiResponse submitGenericUDFWithHttpInfoObj(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); - } - - /** - * - * 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 ApiException 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); - } - - /** - * - * 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<String> - * @throws ApiException 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
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
- */ - public ApiResponse submitGenericUDFWithHttpInfoString(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); - } - - /** - * - * 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 String - * @throws ApiException 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
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
- */ - public String submitGenericUDFString(String namespace, GenericUDF udf, String acceptEncoding) throws ApiException { - ApiResponse localVarResp = submitGenericUDFWithHttpInfoString(namespace, udf, acceptEncoding); - return localVarResp.getData(); - } - - /** - * - * 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 ApiException 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 + * (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 @@ -505,34 +350,36 @@ public ApiResponse deleteUDFInfoWithHttpInfo(String namespace, String name * @http.response.details - + +
Status Code Description Response Headers
204 UDF deleted successfully -
200 UDFInfo was retrieved successfully -
404 UDF not found -
502 Bad Gateway -
0 error response -
*/ - public okhttp3.Call deleteUDFInfoAsync(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getUDFInfoAsync(String namespace, String name, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteUDFInfoValidateBeforeCall(namespace, name, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); + okhttp3.Call localVarCall = getUDFInfoValidateBeforeCall(namespace, name, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for getUDFInfo + * Build call for getUDFInfoSharingPolicies * @param namespace namespace array is in (an organization name or user's username) (required) - * @param name name to register UDF under (required) + * @param name name of UDFInfo (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - + +
Status Code Description Response Headers
200 UDFInfo was retrieved successfully -
404 UDF not found -
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 getUDFInfoCall(String namespace, String name, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getUDFInfoSharingPoliciesCall(String namespace, String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -549,9 +396,9 @@ public okhttp3.Call getUDFInfoCall(String namespace, String name, final ApiCallb 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())); + String localVarPath = "/udf/{namespace}/{name}/share" + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -568,246 +415,93 @@ public okhttp3.Call getUDFInfoCall(String namespace, String name, final ApiCallb } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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 { - + 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 getUDFInfo(Async)"); + 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 getUDFInfo(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling getUDFInfoSharingPolicies(Async)"); } - - okhttp3.Call localVarCall = getUDFInfoCall(namespace, name, _callback); - return localVarCall; + return getUDFInfoSharingPoliciesCall(namespace, name, _callback); } /** * - * get a specific UDF in the given namespace + * Get all sharing details of the UDF * @param namespace namespace array is in (an organization name or user's username) (required) - * @param name name to register UDF under (required) - * @return UDFInfo + * @param name name of UDFInfo (required) + * @return List<UDFSharing> * @throws ApiException 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 -
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 UDFInfo getUDFInfo(String namespace, String name) throws ApiException { - ApiResponse localVarResp = getUDFInfoWithHttpInfo(namespace, name); + public List getUDFInfoSharingPolicies(String namespace, String name) throws ApiException { + ApiResponse> localVarResp = getUDFInfoSharingPoliciesWithHttpInfo(namespace, name); return localVarResp.getData(); } /** * - * get a specific UDF in the given namespace + * Get all sharing details of the UDF * @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> + * @param name name of UDFInfo (required) + * @return ApiResponse<List<UDFSharing>> * @throws ApiException 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 -
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 getUDFInfoWithHttpInfo(String namespace, String name) throws ApiException { - okhttp3.Call localVarCall = getUDFInfoValidateBeforeCall(namespace, name, null); - Type localVarReturnType = new TypeToken(){}.getType(); + 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 a specific UDF in the given namespace + * Get all sharing details of the UDF * @param namespace namespace array is in (an organization name or user's username) (required) - * @param name name to register UDF under (required) + * @param name name of UDFInfo (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - - + +
Status Code Description Response Headers
200 UDFInfo was retrieved successfully -
404 UDF not found -
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 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 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 ApiException 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 ApiException 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 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 { + 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(); @@ -850,8 +544,8 @@ public okhttp3.Call handleCopyUDFCall(String namespace, String name, UDFCopy udF // create path and map variables String localVarPath = "/udf/{namespace}/{name}/copy" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -883,31 +577,28 @@ public okhttp3.Call handleCopyUDFCall(String namespace, String name, UDFCopy udF localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return handleCopyUDFCall(namespace, name, udFCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp, _callback); } @@ -1018,8 +709,8 @@ public okhttp3.Call registerUDFInfoCall(String namespace, String name, UDFInfoUp // create path and map variables String localVarPath = "/udf/{namespace}/{name}" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1043,31 +734,28 @@ public okhttp3.Call registerUDFInfoCall(String namespace, String name, UDFInfoUp localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return registerUDFInfoCall(namespace, name, udf, _callback); } @@ -1169,8 +857,8 @@ public okhttp3.Call shareUDFInfoCall(String namespace, String name, UDFSharing u // create path and map variables String localVarPath = "/udf/{namespace}/{name}/share" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1194,31 +882,28 @@ public okhttp3.Call shareUDFInfoCall(String namespace, String name, UDFSharing u localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return shareUDFInfoCall(namespace, name, udfSharing, _callback); } @@ -1322,7 +1007,7 @@ public okhttp3.Call submitGenericUDFCall(String namespace, GenericUDF udf, Strin // create path and map variables String localVarPath = "/udfs/generic/{namespace}" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1350,26 +1035,23 @@ public okhttp3.Call submitGenericUDFCall(String namespace, GenericUDF udf, Strin localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return submitGenericUDFCall(namespace, udf, acceptEncoding, _callback); } @@ -1474,7 +1156,7 @@ public okhttp3.Call submitMultiArrayUDFCall(String namespace, MultiArrayUDF udf, // create path and map variables String localVarPath = "/udfs/arrays/{namespace}" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1502,26 +1184,23 @@ public okhttp3.Call submitMultiArrayUDFCall(String namespace, MultiArrayUDF udf, localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return submitMultiArrayUDFCall(namespace, udf, acceptEncoding, _callback); } @@ -1629,8 +1308,8 @@ public okhttp3.Call submitUDFCall(String namespace, String array, MultiArrayUDF // create path and map variables String localVarPath = "/arrays/{namespace}/{array}/udf/submit" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1666,31 +1345,28 @@ public okhttp3.Call submitUDFCall(String namespace, String array, MultiArrayUDF localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return submitUDFCall(namespace, array, udf, xPayer, acceptEncoding, v2, _callback); } @@ -1805,8 +1481,8 @@ public okhttp3.Call udfNamespaceArrayEndTimestampsGetCall(String namespace, Stri // create path and map variables String localVarPath = "/udf/{namespace}/{array}/end_timestamps" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "array" + "}", localVarApiClient.escapeString(array.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1831,33 +1507,29 @@ public okhttp3.Call udfNamespaceArrayEndTimestampsGetCall(String namespace, Stri } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return udfNamespaceArrayEndTimestampsGetCall(namespace, array, page, perPage, _callback); } @@ -1965,8 +1637,8 @@ public okhttp3.Call updateUDFInfoCall(String namespace, String name, UDFInfoUpda // create path and map variables String localVarPath = "/udf/{namespace}/{name}" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1990,31 +1662,28 @@ public okhttp3.Call updateUDFInfoCall(String namespace, String name, UDFInfoUpda localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return updateUDFInfoCall(namespace, name, udf, _callback); } @@ -2081,4 +1750,303 @@ public okhttp3.Call updateUDFInfoAsync(String namespace, String name, UDFInfoUpd localVarApiClient.executeAsync(localVarCall, _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 ApiResponse<String> + * @throws ApiException 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
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
+ */ + public ApiResponse submitGenericUDFWithHttpInfoString(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); + } + + /** + * + * 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 String + * @throws ApiException 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
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
+ */ + public String submitGenericUDFString(String namespace, GenericUDF udf, String acceptEncoding) throws ApiException { + ApiResponse localVarResp = submitGenericUDFWithHttpInfoString(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 byte[] + * @throws ApiException 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
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
+ */ + public byte[] submitGenericUDFBytes(String namespace, GenericUDF udf, String acceptEncoding) throws ApiException { + ApiResponse localVarResp = submitGenericUDFWithHttpInfoBytes(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<byte[]> + * @throws ApiException 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
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
+ */ + public ApiResponse submitGenericUDFWithHttpInfoBytes(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); + } + + /** + * + * 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 Object + * @throws ApiException 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
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
+ */ + public Object submitGenericUDFObj(String namespace, GenericUDF udf, String acceptEncoding) throws ApiException { + ApiResponse localVarResp = submitGenericUDFWithHttpInfoObj(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<Object> + * @throws ApiException 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
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
+ */ + public ApiResponse submitGenericUDFWithHttpInfoObj(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); + } + + /** + * + * 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 String + * @throws ApiException 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
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
+ */ + public String submitMultiArrayUDFString(String namespace, MultiArrayUDF udf, String acceptEncoding) throws ApiException { + ApiResponse localVarResp = submitMultiArrayUDFWithHttpInfoString(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<String> + * @throws ApiException 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
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
+ */ + public ApiResponse submitMultiArrayUDFWithHttpInfoString(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); + } + + /** + * + * 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 byte[] + * @throws ApiException 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
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
+ */ + public byte[] submitMultiArrayUDFBytes(String namespace, MultiArrayUDF udf, String acceptEncoding) throws ApiException { + ApiResponse localVarResp = submitMultiArrayUDFWithHttpInfoBytes(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<byte[]> + * @throws ApiException 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
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
+ */ + public ApiResponse submitMultiArrayUDFWithHttpInfoBytes(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); + } + + /** + * + * 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 String + * @throws ApiException 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
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
+ */ + public String submitUDFString(String namespace, String array, MultiArrayUDF udf, String xPayer, String acceptEncoding, String v2) throws ApiException { + ApiResponse localVarResp = submitUDFWithHttpInfoString(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<String> + * @throws ApiException 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
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
+ */ + public ApiResponse submitUDFWithHttpInfoString(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); + } + + /** + * + * 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 byte[] + * @throws ApiException 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
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
+ */ + public byte[] submitUDFBytes(String namespace, String array, MultiArrayUDF udf, String xPayer, String acceptEncoding, String v2) throws ApiException { + ApiResponse localVarResp = submitUDFWithHttpInfoBytes(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<byte[]> + * @throws ApiException 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
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
+ */ + public ApiResponse submitUDFWithHttpInfoBytes(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); + } } diff --git a/src/main/java/io/tiledb/cloud/rest_api/api/UserApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/UserApi.java index e6abdcf..829c985 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/api/UserApi.java +++ b/src/main/java/io/tiledb/cloud/rest_api/api/UserApi.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,21 +14,26 @@ package io.tiledb.cloud.rest_api.api; import io.tiledb.cloud.rest_api.ApiCallback; -import io.tiledb.cloud.rest_api.model.ResetUserPasswordRequest; -import io.tiledb.cloud.rest_api.model.TokenScope; import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.ApiResponse; import io.tiledb.cloud.rest_api.Configuration; import io.tiledb.cloud.rest_api.Pair; +import io.tiledb.cloud.rest_api.ProgressRequestBody; +import io.tiledb.cloud.rest_api.ProgressResponseBody; import com.google.gson.reflect.TypeToken; +import java.io.IOException; + import io.tiledb.cloud.rest_api.model.AWSAccessCredentials; +import io.tiledb.cloud.rest_api.model.Error; 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; @@ -107,7 +112,7 @@ public okhttp3.Call addAWSAccessCredentialsCall(String namespace, AWSAccessCrede // create path and map variables String localVarPath = "/credentials/{namespace}/aws" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -131,26 +136,23 @@ public okhttp3.Call addAWSAccessCredentialsCall(String namespace, AWSAccessCrede localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return addAWSAccessCredentialsCall(namespace, awsAccessCredentials, _callback); } @@ -247,7 +249,7 @@ public okhttp3.Call addUserToOrganizationCall(String organization, OrganizationU // create path and map variables String localVarPath = "/organizations/{organization}/user" - .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())); + .replace("{" + "organization" + "}", localVarApiClient.escapeString(organization.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -271,26 +273,23 @@ public okhttp3.Call addUserToOrganizationCall(String organization, OrganizationU localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return addUserToOrganizationCall(organization, user, _callback); } @@ -386,7 +385,7 @@ public okhttp3.Call checkAWSAccessCredentialsCall(String namespace, final ApiCal // create path and map variables String localVarPath = "/credentials/{namespace}/aws" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -403,28 +402,24 @@ public okhttp3.Call checkAWSAccessCredentialsCall(String namespace, final ApiCal } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return checkAWSAccessCredentialsCall(namespace, _callback); } @@ -522,8 +517,8 @@ public okhttp3.Call checkAWSAccessCredentialsByNameCall(String namespace, String // create path and map variables String localVarPath = "/credentials/{namespace}/aws/{name}" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -540,33 +535,29 @@ public okhttp3.Call checkAWSAccessCredentialsByNameCall(String namespace, String } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return checkAWSAccessCredentialsByNameCall(namespace, name, _callback); } @@ -681,23 +672,19 @@ public okhttp3.Call confirmEmailCall(final ApiCallback _callback) throws ApiExce } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return confirmEmailCall(_callback); } @@ -810,21 +797,18 @@ public okhttp3.Call createUserCall(User user, final ApiCallback _callback) throw localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { }; 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; + return createUserCall(user, _callback); } @@ -918,8 +902,8 @@ public okhttp3.Call deleteAWSAccessCredentialsCall(String namespace, String name // create path and map variables String localVarPath = "/credentials/{namespace}/aws/{name}" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -936,33 +920,29 @@ public okhttp3.Call deleteAWSAccessCredentialsCall(String namespace, String name } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return deleteAWSAccessCredentialsCall(namespace, name, _callback); } @@ -1058,7 +1038,7 @@ public okhttp3.Call deleteUserCall(String username, final ApiCallback _callback) // create path and map variables String localVarPath = "/users/{username}" - .replaceAll("\\{" + "username" + "\\}", localVarApiClient.escapeString(username.toString())); + .replace("{" + "username" + "}", localVarApiClient.escapeString(username.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1075,28 +1055,24 @@ public okhttp3.Call deleteUserCall(String username, final ApiCallback _callback) } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return deleteUserCall(username, _callback); } @@ -1190,8 +1166,8 @@ public okhttp3.Call deleteUserFromOrganizationCall(String organization, String u // create path and map variables String localVarPath = "/organizations/{organization}/{username}" - .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())) - .replaceAll("\\{" + "username" + "\\}", localVarApiClient.escapeString(username.toString())); + .replace("{" + "organization" + "}", localVarApiClient.escapeString(organization.toString())) + .replace("{" + "username" + "}", localVarApiClient.escapeString(username.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1208,33 +1184,29 @@ public okhttp3.Call deleteUserFromOrganizationCall(String organization, String u } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return deleteUserFromOrganizationCall(organization, username, _callback); } @@ -1332,8 +1304,8 @@ public okhttp3.Call getOrganizationUserCall(String organization, String username // create path and map variables String localVarPath = "/organizations/{organization}/{username}" - .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())) - .replaceAll("\\{" + "username" + "\\}", localVarApiClient.escapeString(username.toString())); + .replace("{" + "organization" + "}", localVarApiClient.escapeString(organization.toString())) + .replace("{" + "username" + "}", localVarApiClient.escapeString(username.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1350,33 +1322,29 @@ public okhttp3.Call getOrganizationUserCall(String organization, String username } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return getOrganizationUserCall(organization, username, _callback); } @@ -1499,23 +1467,19 @@ public okhttp3.Call getSessionCall(String rememberMe, final ApiCallback _callbac } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getSessionValidateBeforeCall(String rememberMe, final ApiCallback _callback) throws ApiException { - - - okhttp3.Call localVarCall = getSessionCall(rememberMe, _callback); - return localVarCall; + return getSessionCall(rememberMe, _callback); } @@ -1627,23 +1591,19 @@ public okhttp3.Call getTokenScopesCall(final ApiCallback _callback) throws ApiEx } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return getTokenScopesCall(_callback); } @@ -1752,23 +1712,19 @@ public okhttp3.Call getUserCall(final ApiCallback _callback) throws ApiException } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return getUserCall(_callback); } @@ -1863,7 +1819,7 @@ public okhttp3.Call getUserWithUsernameCall(String username, final ApiCallback _ // create path and map variables String localVarPath = "/users/{username}" - .replaceAll("\\{" + "username" + "\\}", localVarApiClient.escapeString(username.toString())); + .replace("{" + "username" + "}", localVarApiClient.escapeString(username.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1880,28 +1836,24 @@ public okhttp3.Call getUserWithUsernameCall(String username, final ApiCallback _ } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return getUserWithUsernameCall(username, _callback); } @@ -2024,16 +1976,13 @@ public okhttp3.Call requestTokenCall(TokenRequest tokenRequest, final ApiCallbac localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return requestTokenCall(tokenRequest, _callback); } @@ -2154,21 +2103,18 @@ public okhttp3.Call resetUserPasswordCall(ResetUserPasswordRequest user, final A localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return resetUserPasswordCall(user, _callback); } @@ -2264,7 +2210,7 @@ public okhttp3.Call revokeTokenCall(String token, final ApiCallback _callback) t // create path and map variables String localVarPath = "/tokens/{token}" - .replaceAll("\\{" + "token" + "\\}", localVarApiClient.escapeString(token.toString())); + .replace("{" + "token" + "}", localVarApiClient.escapeString(token.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2281,28 +2227,24 @@ public okhttp3.Call revokeTokenCall(String token, final ApiCallback _callback) t } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return revokeTokenCall(token, _callback); } @@ -2410,23 +2352,19 @@ public okhttp3.Call tokensGetCall(final ApiCallback _callback) throws ApiExcepti } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return tokensGetCall(_callback); } @@ -2535,23 +2473,19 @@ public okhttp3.Call tokensSessionGetCall(final ApiCallback _callback) throws Api } final String[] localVarContentTypes = { - }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return tokensSessionGetCall(_callback); } @@ -2647,8 +2581,8 @@ public okhttp3.Call updateAWSAccessCredentialsCall(String namespace, String name // create path and map variables String localVarPath = "/credentials/{namespace}/aws/{name}" - .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())) + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2672,31 +2606,28 @@ public okhttp3.Call updateAWSAccessCredentialsCall(String namespace, String name localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return updateAWSAccessCredentialsCall(namespace, name, awsAccessCredentials, _callback); } @@ -2796,7 +2727,7 @@ public okhttp3.Call updateUserCall(String username, User user, final ApiCallback // create path and map variables String localVarPath = "/users/{username}" - .replaceAll("\\{" + "username" + "\\}", localVarApiClient.escapeString(username.toString())); + .replace("{" + "username" + "}", localVarApiClient.escapeString(username.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2820,26 +2751,23 @@ public okhttp3.Call updateUserCall(String username, User user, final ApiCallback localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return updateUserCall(username, user, _callback); } @@ -2937,8 +2865,8 @@ public okhttp3.Call updateUserInOrganizationCall(String organization, String use // create path and map variables String localVarPath = "/organizations/{organization}/{username}" - .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())) - .replaceAll("\\{" + "username" + "\\}", localVarApiClient.escapeString(username.toString())); + .replace("{" + "organization" + "}", localVarApiClient.escapeString(organization.toString())) + .replace("{" + "username" + "}", localVarApiClient.escapeString(username.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2962,31 +2890,28 @@ public okhttp3.Call updateUserInOrganizationCall(String organization, String use localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + String[] localVarAuthNames = new String[] { "BasicAuth", "ApiKeyAuth" }; 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; + return updateUserInOrganizationCall(organization, username, user, _callback); } 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..e32026b 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") 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..1ff06ac 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). 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..7ee8914 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). @@ -17,13 +17,15 @@ import io.tiledb.cloud.rest_api.Pair; import java.net.URI; -import java.util.Map; import java.util.List; +import java.util.Map; +import java.util.Optional; +import java.util.function.Supplier; -@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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class HttpBearerAuth implements Authentication { private final String scheme; - private String bearerToken; + private Supplier tokenSupplier; public HttpBearerAuth(String scheme) { this.scheme = scheme; @@ -35,7 +37,7 @@ public HttpBearerAuth(String scheme) { * @return The bearer token */ public String getBearerToken() { - return bearerToken; + return tokenSupplier.get(); } /** @@ -44,12 +46,22 @@ public String getBearerToken() { * @param bearerToken The bearer token to send in the Authorization header */ public void setBearerToken(String bearerToken) { - this.bearerToken = bearerToken; + this.tokenSupplier = () -> bearerToken; + } + + /** + * Sets the supplier of tokens, which together with the scheme, will be sent as the value of the Authorization header. + * + * @param tokenSupplier The supplier of bearer tokens to send in the Authorization header + */ + public void setBearerToken(Supplier tokenSupplier) { + this.tokenSupplier = tokenSupplier; } @Override public void applyToParams(List queryParams, Map headerParams, Map cookieParams, String payload, String method, URI uri) throws ApiException { + String bearerToken = Optional.ofNullable(tokenSupplier).map(Supplier::get).orElse(null); if (bearerToken == null) { return; } 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..be06af4 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") 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..b826d7d 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public enum OAuthFlow { ACCESS_CODE, //called authorizationCode in OpenAPI 3.0 IMPLICIT, diff --git a/src/main/java/io/tiledb/cloud/rest_api/auth/RetryingOAuth.java b/src/main/java/io/tiledb/cloud/rest_api/auth/RetryingOAuth.java index acfd332..f945585 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/auth/RetryingOAuth.java +++ b/src/main/java/io/tiledb/cloud/rest_api/auth/RetryingOAuth.java @@ -65,8 +65,8 @@ public RetryingOAuth( .setClientSecret(clientSecret)); setFlow(flow); if (parameters != null) { - for (String paramName : parameters.keySet()) { - tokenRequestBuilder.setParameter(paramName, parameters.get(paramName)); + for (Map.Entry entry : parameters.entrySet()) { + tokenRequestBuilder.setParameter(entry.getKey(), entry.getValue()); } } } @@ -129,8 +129,8 @@ private Response retryingIntercept(Chain chain, boolean updateTokenAndRetryOnAut } Map headers = oAuthRequest.getHeaders(); - for (String headerName : headers.keySet()) { - requestBuilder.addHeader(headerName, headers.get(headerName)); + for (Map.Entry entry : headers.entrySet()) { + requestBuilder.addHeader(entry.getKey(), entry.getValue()); } requestBuilder.url(oAuthRequest.getLocationUri()); 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..42621e9 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,36 +14,45 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class AWSAccessCredentials { public static final String SERIALIZED_NAME_SECRET_ACCESS_KEY = "secret_access_key"; @SerializedName(SERIALIZED_NAME_SECRET_ACCESS_KEY) @@ -67,7 +76,7 @@ public class AWSAccessCredentials { public static final String SERIALIZED_NAME_BUCKETS = "buckets"; @SerializedName(SERIALIZED_NAME_BUCKETS) - private List buckets = null; + private List buckets = new ArrayList<>(); public static final String SERIALIZED_NAME_CREATED_AT = "created_at"; @SerializedName(SERIALIZED_NAME_CREATED_AT) @@ -80,7 +89,6 @@ public class AWSAccessCredentials { public AWSAccessCredentials() { } - public AWSAccessCredentials( OffsetDateTime createdAt, OffsetDateTime updatedAt @@ -91,122 +99,101 @@ public AWSAccessCredentials( } public AWSAccessCredentials secretAccessKey(String secretAccessKey) { - this.secretAccessKey = secretAccessKey; return this; } - /** + /** * aws secret access key, never returned in get requests * @return secretAccessKey - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "aws secret access key, never returned in get requests") - public String getSecretAccessKey() { return secretAccessKey; } - public void setSecretAccessKey(String secretAccessKey) { this.secretAccessKey = secretAccessKey; } public AWSAccessCredentials accessKeyId(String accessKeyId) { - this.accessKeyId = accessKeyId; return this; } - /** + /** * aws access key * @return accessKeyId - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "aws access key") - public String getAccessKeyId() { return accessKeyId; } - public void setAccessKeyId(String accessKeyId) { this.accessKeyId = accessKeyId; } public AWSAccessCredentials serviceRoleArn(String serviceRoleArn) { - this.serviceRoleArn = serviceRoleArn; return this; } - /** + /** * aws service role to use for access * @return serviceRoleArn - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "aws service role to use for access") - public String getServiceRoleArn() { return serviceRoleArn; } - public void setServiceRoleArn(String serviceRoleArn) { this.serviceRoleArn = serviceRoleArn; } public AWSAccessCredentials name(String name) { - this.name = name; return this; } - /** + /** * human readable name * @return name - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "human readable name") - public String getName() { return name; } - public void setName(String name) { this.name = name; } public AWSAccessCredentials _default(Boolean _default) { - this._default = _default; return this; } - /** + /** * true if this is the default credential to be used within this namespace * @return _default - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "true if this is the default credential to be used within this namespace") - public Boolean getDefault() { return _default; } - public void setDefault(Boolean _default) { this._default = _default; } public AWSAccessCredentials buckets(List buckets) { - this.buckets = buckets; return this; } @@ -219,50 +206,41 @@ public AWSAccessCredentials addBucketsItem(String bucketsItem) { return this; } - /** + /** * a whitelist of one or more buckets this key should access * @return buckets - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "a whitelist of one or more buckets this key should access") - public List getBuckets() { return buckets; } - public void setBuckets(List buckets) { this.buckets = buckets; } - /** + /** * Time when UDF dependencies were created (rfc3339) * @return createdAt - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Time when UDF dependencies were created (rfc3339)") - public OffsetDateTime getCreatedAt() { return createdAt; } - - /** + /** * Time when UDF dependencies was last updated (rfc3339) * @return updatedAt - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Time when UDF dependencies was last updated (rfc3339)") - public OffsetDateTime getUpdatedAt() { return updatedAt; } - /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -273,6 +251,10 @@ public OffsetDateTime getUpdatedAt() { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the AWSAccessCredentials instance itself */ public AWSAccessCredentials putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -284,6 +266,8 @@ public AWSAccessCredentials putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -291,6 +275,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -373,20 +360,19 @@ private String toIndentedString(Object o) { 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 AWSAccessCredentials - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (AWSAccessCredentials.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to AWSAccessCredentials + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!AWSAccessCredentials.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in AWSAccessCredentials is not found in the empty JSON string", AWSAccessCredentials.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("secret_access_key") != null && !jsonObj.get("secret_access_key").isJsonNull()) && !jsonObj.get("secret_access_key").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `secret_access_key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("secret_access_key").toString())); } @@ -399,8 +385,8 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { 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())); } - // ensure the json data is an array - if ((jsonObj.get("buckets") != null && !jsonObj.get("buckets").isJsonNull()) && !jsonObj.get("buckets").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("buckets") != null && !jsonObj.get("buckets").isJsonNull() && !jsonObj.get("buckets").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `buckets` to be an array in the JSON string but got `%s`", jsonObj.get("buckets").toString())); } } @@ -421,7 +407,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, AWSAccessCredentials value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -433,7 +419,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -442,8 +433,9 @@ else if (entry.getValue() instanceof Character) @Override public AWSAccessCredentials read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance AWSAccessCredentials instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -457,8 +449,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -469,22 +463,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of AWSAccessCredentials given an JSON string - * - * @param jsonString JSON string - * @return An instance of AWSAccessCredentials - * @throws IOException if the JSON string is invalid with respect to AWSAccessCredentials - */ + /** + * Create an instance of AWSAccessCredentials given an JSON string + * + * @param jsonString JSON string + * @return An instance of AWSAccessCredentials + * @throws IOException if the JSON string is invalid with respect to AWSAccessCredentials + */ public static AWSAccessCredentials fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, AWSAccessCredentials.class); } - /** - * Convert an instance of AWSAccessCredentials to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of AWSAccessCredentials 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/AbstractOpenApiSchema.java b/src/main/java/io/tiledb/cloud/rest_api/model/AbstractOpenApiSchema.java index 8b19a5f..49769f1 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). @@ -13,16 +13,15 @@ package io.tiledb.cloud.rest_api.model; +import io.tiledb.cloud.rest_api.ApiException; import java.util.Objects; +import java.lang.reflect.Type; import java.util.Map; -import javax.ws.rs.core.GenericType; - -//import com.fasterxml.jackson.annotation.JsonValue; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object @@ -44,7 +43,7 @@ public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { * * @return an instance of the actual schema/object */ - public abstract Map getSchemas(); + public abstract Map> getSchemas(); /** * Get the actual instance 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..8573205 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,8 +13,12 @@ package io.tiledb.cloud.rest_api.model; +import java.util.Objects; +import com.google.gson.annotations.SerializedName; + import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -53,7 +57,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; @@ -91,5 +97,10 @@ public ActivityEventType read(final JsonReader jsonReader) throws IOException { return ActivityEventType.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + ActivityEventType.fromValue(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..a9af199 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,33 +14,44 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.Querytype; import java.io.IOException; import java.math.BigDecimal; +import java.util.Arrays; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class Array { public static final String SERIALIZED_NAME_TIMESTAMP = "timestamp"; @SerializedName(SERIALIZED_NAME_TIMESTAMP) @@ -58,69 +69,57 @@ public Array() { } public Array timestamp(BigDecimal timestamp) { - this.timestamp = timestamp; return this; } - /** + /** * timestamp (epoch milliseconds) array is opened at * @return timestamp - **/ + */ @javax.annotation.Nonnull - @ApiModelProperty(example = "1540471791873", required = true, value = "timestamp (epoch milliseconds) array is opened at") - public BigDecimal getTimestamp() { return timestamp; } - public void setTimestamp(BigDecimal timestamp) { this.timestamp = timestamp; } public Array queryType(Querytype queryType) { - this.queryType = queryType; return this; } - /** + /** * Get queryType * @return queryType - **/ + */ @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") - public Querytype getQueryType() { return queryType; } - public void setQueryType(Querytype queryType) { this.queryType = queryType; } public Array uri(String uri) { - this.uri = uri; return this; } - /** + /** * Array uri * @return uri - **/ + */ @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "Array uri") - public String getUri() { return uri; } - public void setUri(String uri) { this.uri = uri; } @@ -135,6 +134,10 @@ public void setUri(String uri) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the Array instance itself */ public Array putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -146,6 +149,8 @@ public Array putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -153,6 +158,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -223,28 +231,29 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("uri"); } - /** - * 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 Array - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (Array.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to Array + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!Array.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in Array is not found in the empty JSON string", Array.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : Array.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 (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } - if ((jsonObj.get("uri") != null && !jsonObj.get("uri").isJsonNull()) && !jsonObj.get("uri").isJsonPrimitive()) { + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `queryType` + Querytype.validateJsonElement(jsonObj.get("queryType")); + if (!jsonObj.get("uri").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uri").toString())); } } @@ -265,7 +274,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, Array value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -277,7 +286,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -286,8 +300,9 @@ else if (entry.getValue() instanceof Character) @Override public Array read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance Array instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -301,8 +316,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -313,22 +330,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of Array given an JSON string - * - * @param jsonString JSON string - * @return An instance of Array - * @throws IOException if the JSON string is invalid with respect to Array - */ + /** + * Create an instance of Array given an JSON string + * + * @param jsonString JSON string + * @return An instance of Array + * @throws IOException if the JSON string is invalid with respect to Array + */ public static Array fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, Array.class); } - /** - * Convert an instance of Array to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of Array 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/ArrayActions.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayActions.java index e940b20..a45a6cf 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,8 +13,12 @@ package io.tiledb.cloud.rest_api.model; +import java.util.Objects; +import com.google.gson.annotations.SerializedName; + import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -73,5 +77,10 @@ public ArrayActions read(final JsonReader jsonReader) throws IOException { return ArrayActions.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + ArrayActions.fromValue(value); + } } 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..098a6ee 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,33 +14,44 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.ActivityEventType; import java.io.IOException; import java.time.OffsetDateTime; +import java.util.Arrays; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class ArrayActivityLog { public static final String SERIALIZED_NAME_EVENT_AT = "event_at"; @SerializedName(SERIALIZED_NAME_EVENT_AT) @@ -82,207 +93,171 @@ public ArrayActivityLog() { } public ArrayActivityLog eventAt(OffsetDateTime eventAt) { - this.eventAt = eventAt; return this; } - /** + /** * time event took place (RFC3339) * @return eventAt - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "time event took place (RFC3339)") - public OffsetDateTime getEventAt() { return eventAt; } - public void setEventAt(OffsetDateTime eventAt) { this.eventAt = eventAt; } public ArrayActivityLog action(ActivityEventType action) { - this.action = action; return this; } - /** + /** * Get action * @return action - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public ActivityEventType getAction() { return action; } - public void setAction(ActivityEventType action) { this.action = action; } public ArrayActivityLog username(String username) { - this.username = username; return this; } - /** + /** * User who performed action * @return username - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "user1", value = "User who performed action") - public String getUsername() { return username; } - public void setUsername(String username) { this.username = username; } public ArrayActivityLog bytesSent(Integer bytesSent) { - this.bytesSent = bytesSent; return this; } - /** + /** * Bytes sent to client * @return bytesSent - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "1073741824", value = "Bytes sent to client") - public Integer getBytesSent() { return bytesSent; } - public void setBytesSent(Integer bytesSent) { this.bytesSent = bytesSent; } public ArrayActivityLog bytesReceived(Integer bytesReceived) { - this.bytesReceived = bytesReceived; return this; } - /** + /** * Bytes recieved from client * @return bytesReceived - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "1073741824", value = "Bytes recieved from client") - public Integer getBytesReceived() { return bytesReceived; } - public void setBytesReceived(Integer bytesReceived) { this.bytesReceived = bytesReceived; } public ArrayActivityLog arrayTaskId(String arrayTaskId) { - this.arrayTaskId = arrayTaskId; return this; } - /** + /** * UUID of associated array task * @return arrayTaskId - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", value = "UUID of associated array task") - public String getArrayTaskId() { return arrayTaskId; } - public void setArrayTaskId(String arrayTaskId) { this.arrayTaskId = arrayTaskId; } public ArrayActivityLog id(String id) { - this.id = id; return this; } - /** + /** * ID of the activity * @return id - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", value = "ID of the activity") - public String getId() { return id; } - public void setId(String id) { this.id = id; } public ArrayActivityLog queryRanges(String queryRanges) { - this.queryRanges = queryRanges; return this; } - /** + /** * ranges for query * @return queryRanges - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "{\"rows\":[{\"start\": 1, \"end\": 1},{\"start\": 3, \"end\": 4}],\"cols\":[{\"start\": 1, \"end\": 4}]}", value = "ranges for query") - public String getQueryRanges() { return queryRanges; } - public void setQueryRanges(String queryRanges) { this.queryRanges = queryRanges; } public ArrayActivityLog queryStats(String queryStats) { - this.queryStats = queryStats; return this; } - /** + /** * stats for query * @return queryStats - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "{\"timers\": {\"Context.StorageManager.read_load_array_schema_from_uri.sum\": 0.0255293, \"...\": \"...\"}, \"counters\": {\"Context.StorageManager.read_unfiltered_byte_num\": 191, \"...\": \"...\"}}", value = "stats for query") - public String getQueryStats() { return queryStats; } - public void setQueryStats(String queryStats) { this.queryStats = queryStats; } @@ -297,6 +272,10 @@ public void setQueryStats(String queryStats) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the ArrayActivityLog instance itself */ public ArrayActivityLog putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -308,6 +287,8 @@ public ArrayActivityLog putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -315,6 +296,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -400,19 +384,53 @@ private String toIndentedString(Object o) { 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 ArrayActivityLog - */ + /** + * 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 ArrayActivityLog + */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (ArrayActivityLog.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + if (jsonObj == null) { + if (ArrayActivityLog.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayActivityLog is not found in the empty JSON string", ArrayActivityLog.openapiRequiredFields.toString())); + } + } + if (jsonObj.get("username") != null && !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("array_task_id") != null && !jsonObj.get("array_task_id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `array_task_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("array_task_id").toString())); + } + if (jsonObj.get("id") != null && !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("query_ranges") != null && !jsonObj.get("query_ranges").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `query_ranges` to be a primitive type in the JSON string but got `%s`", jsonObj.get("query_ranges").toString())); + } + if (jsonObj.get("query_stats") != null && !jsonObj.get("query_stats").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `query_stats` to be a primitive type in the JSON string but got `%s`", jsonObj.get("query_stats").toString())); + } + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ArrayActivityLog + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!ArrayActivityLog.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayActivityLog is not found in the empty JSON string", ArrayActivityLog.openapiRequiredFields.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `action` + if (jsonObj.get("action") != null && !jsonObj.get("action").isJsonNull()) { + ActivityEventType.validateJsonElement(jsonObj.get("action")); } 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())); @@ -447,7 +465,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, ArrayActivityLog value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -459,7 +477,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -468,8 +491,9 @@ else if (entry.getValue() instanceof Character) @Override public ArrayActivityLog read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance ArrayActivityLog instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -483,8 +507,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -495,22 +521,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ArrayActivityLog given an JSON string - * - * @param jsonString JSON string - * @return An instance of ArrayActivityLog - * @throws IOException if the JSON string is invalid with respect to ArrayActivityLog - */ + /** + * Create an instance of ArrayActivityLog given an JSON string + * + * @param jsonString JSON string + * @return An instance of ArrayActivityLog + * @throws IOException if the JSON string is invalid with respect to ArrayActivityLog + */ public static ArrayActivityLog fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ArrayActivityLog.class); } - /** - * Convert an instance of ArrayActivityLog to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ArrayActivityLog 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/ArrayBrowserData.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayBrowserData.java index ce34a3b..6733bbc 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,40 +14,50 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.ArrayInfo; +import io.tiledb.cloud.rest_api.model.PaginationMetadata; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class ArrayBrowserData { public static final String SERIALIZED_NAME_ARRAYS = "arrays"; @SerializedName(SERIALIZED_NAME_ARRAYS) - private List arrays = null; + private List arrays = new ArrayList<>(); public static final String SERIALIZED_NAME_PAGINATION_METADATA = "pagination_metadata"; @SerializedName(SERIALIZED_NAME_PAGINATION_METADATA) @@ -57,7 +67,6 @@ public ArrayBrowserData() { } public ArrayBrowserData arrays(List arrays) { - this.arrays = arrays; return this; } @@ -70,41 +79,34 @@ public ArrayBrowserData addArraysItem(ArrayInfo arraysItem) { return this; } - /** + /** * Array Info * @return arrays - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Array Info") - public List getArrays() { return arrays; } - public void setArrays(List arrays) { this.arrays = arrays; } public ArrayBrowserData 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; } @@ -119,6 +121,10 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the ArrayBrowserData instance itself */ public ArrayBrowserData putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -130,6 +136,8 @@ public ArrayBrowserData putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -137,6 +145,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -201,35 +212,36 @@ private String toIndentedString(Object o) { 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 ArrayBrowserData - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (ArrayBrowserData.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ArrayBrowserData + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!ArrayBrowserData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayBrowserData is not found in the empty JSON string", ArrayBrowserData.openapiRequiredFields.toString())); } } - JsonArray jsonArrayarrays = jsonObj.getAsJsonArray("arrays"); - if (jsonArrayarrays != null) { - // ensure the json data is an array - if (!jsonObj.get("arrays").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `arrays` to be an array in the JSON string but got `%s`", jsonObj.get("arrays").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("arrays") != null && !jsonObj.get("arrays").isJsonNull()) { + JsonArray jsonArrayarrays = jsonObj.getAsJsonArray("arrays"); + if (jsonArrayarrays != null) { + // ensure the json data is an array + if (!jsonObj.get("arrays").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `arrays` to be an array in the JSON string but got `%s`", jsonObj.get("arrays").toString())); + } + + // validate the optional field `arrays` (array) + for (int i = 0; i < jsonArrayarrays.size(); i++) { + ArrayInfo.validateJsonElement(jsonArrayarrays.get(i)); + }; } - - // validate the optional field `arrays` (array) - for (int i = 0; i < jsonArrayarrays.size(); i++) { - ArrayInfo.validateJsonObject(jsonArrayarrays.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")); + PaginationMetadata.validateJsonElement(jsonObj.get("pagination_metadata")); } } @@ -249,7 +261,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, ArrayBrowserData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -261,7 +273,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -270,8 +287,9 @@ else if (entry.getValue() instanceof Character) @Override public ArrayBrowserData read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance ArrayBrowserData instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -285,8 +303,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -297,22 +317,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ArrayBrowserData given an JSON string - * - * @param jsonString JSON string - * @return An instance of ArrayBrowserData - * @throws IOException if the JSON string is invalid with respect to ArrayBrowserData - */ + /** + * Create an instance of ArrayBrowserData given an JSON string + * + * @param jsonString JSON string + * @return An instance of ArrayBrowserData + * @throws IOException if the JSON string is invalid with respect to ArrayBrowserData + */ public static ArrayBrowserData fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ArrayBrowserData.class); } - /** - * Convert an instance of ArrayBrowserData to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ArrayBrowserData 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/ArrayBrowserSidebar.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayBrowserSidebar.java index 79e83f4..2fe35b3 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,38 +14,48 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class ArrayBrowserSidebar { public static final String SERIALIZED_NAME_NAMESPACES = "namespaces"; @SerializedName(SERIALIZED_NAME_NAMESPACES) - private List namespaces = null; + private List namespaces = new ArrayList<>(); public static final String SERIALIZED_NAME_RESULT_COUNT_FOR_ALL = "result_count_for_all"; @SerializedName(SERIALIZED_NAME_RESULT_COUNT_FOR_ALL) @@ -59,7 +69,6 @@ public ArrayBrowserSidebar() { } public ArrayBrowserSidebar namespaces(List namespaces) { - this.namespaces = namespaces; return this; } @@ -72,64 +81,53 @@ public ArrayBrowserSidebar addNamespacesItem(String namespacesItem) { return this; } - /** + /** * list of all unique namespaces to display * @return namespaces - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "list of all unique namespaces to display") - public List getNamespaces() { return namespaces; } - public void setNamespaces(List namespaces) { this.namespaces = namespaces; } public ArrayBrowserSidebar resultCountForAll(Integer resultCountForAll) { - this.resultCountForAll = resultCountForAll; return this; } - /** + /** * A count of \"all\" of category * @return resultCountForAll - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "A count of \"all\" of category") - public Integer getResultCountForAll() { return resultCountForAll; } - public void setResultCountForAll(Integer resultCountForAll) { this.resultCountForAll = resultCountForAll; } public ArrayBrowserSidebar resultCountByNamespace(Object resultCountByNamespace) { - this.resultCountByNamespace = resultCountByNamespace; return this; } - /** + /** * A map that includes the result count by namespace * @return resultCountByNamespace - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "A map that includes the result count by namespace") - public Object getResultCountByNamespace() { return resultCountByNamespace; } - public void setResultCountByNamespace(Object resultCountByNamespace) { this.resultCountByNamespace = resultCountByNamespace; } @@ -144,6 +142,10 @@ public void setResultCountByNamespace(Object resultCountByNamespace) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the ArrayBrowserSidebar instance itself */ public ArrayBrowserSidebar putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -155,6 +157,8 @@ public ArrayBrowserSidebar putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -162,6 +166,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -229,22 +236,21 @@ private String toIndentedString(Object o) { 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 ArrayBrowserSidebar - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (ArrayBrowserSidebar.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ArrayBrowserSidebar + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!ArrayBrowserSidebar.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayBrowserSidebar is not found in the empty JSON string", ArrayBrowserSidebar.openapiRequiredFields.toString())); } } - // ensure the json data is an array - if ((jsonObj.get("namespaces") != null && !jsonObj.get("namespaces").isJsonNull()) && !jsonObj.get("namespaces").isJsonArray()) { + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + 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())); } } @@ -265,7 +271,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, ArrayBrowserSidebar value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -277,7 +283,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -286,8 +297,9 @@ else if (entry.getValue() instanceof Character) @Override public ArrayBrowserSidebar read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance ArrayBrowserSidebar instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -301,8 +313,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -313,22 +327,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ArrayBrowserSidebar given an JSON string - * - * @param jsonString JSON string - * @return An instance of ArrayBrowserSidebar - * @throws IOException if the JSON string is invalid with respect to ArrayBrowserSidebar - */ + /** + * Create an instance of ArrayBrowserSidebar given an JSON string + * + * @param jsonString JSON string + * @return An instance of ArrayBrowserSidebar + * @throws IOException if the JSON string is invalid with respect to ArrayBrowserSidebar + */ public static ArrayBrowserSidebar fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ArrayBrowserSidebar.class); } - /** - * Convert an instance of ArrayBrowserSidebar to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ArrayBrowserSidebar 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/ArrayConsolidationRequest.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayConsolidationRequest.java index e02cf61..f492694 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,62 +14,102 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.TileDBConfig; import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") 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 = new ArrayList<>(); + public ArrayConsolidationRequest() { } public ArrayConsolidationRequest 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 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 + 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 @@ -80,6 +120,10 @@ public void setConfig(TileDBConfig config) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the ArrayConsolidationRequest instance itself */ public ArrayConsolidationRequest putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -91,6 +135,8 @@ public ArrayConsolidationRequest putAdditionalProperty(String key, Object value) /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -98,6 +144,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -116,13 +165,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 +180,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,28 +205,32 @@ 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(); } - /** - * 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 ArrayConsolidationRequest - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (ArrayConsolidationRequest.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ArrayConsolidationRequest + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!ArrayConsolidationRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayConsolidationRequest is not found in the empty JSON string", ArrayConsolidationRequest.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `config` if (jsonObj.get("config") != null && !jsonObj.get("config").isJsonNull()) { - TileDBConfig.validateJsonObject(jsonObj.getAsJsonObject("config")); + TileDBConfig.validateJsonElement(jsonObj.get("config")); + } + // ensure the optional json data is an array if present + 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())); } } @@ -195,7 +250,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, ArrayConsolidationRequest value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -207,7 +262,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -216,8 +276,9 @@ else if (entry.getValue() instanceof Character) @Override public ArrayConsolidationRequest read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance ArrayConsolidationRequest instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -231,8 +292,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -243,22 +306,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ArrayConsolidationRequest given an JSON string - * - * @param jsonString JSON string - * @return An instance of ArrayConsolidationRequest - * @throws IOException if the JSON string is invalid with respect to ArrayConsolidationRequest - */ + /** + * Create an instance of ArrayConsolidationRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of ArrayConsolidationRequest + * @throws IOException if the JSON string is invalid with respect to ArrayConsolidationRequest + */ public static ArrayConsolidationRequest fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ArrayConsolidationRequest.class); } - /** - * Convert an instance of ArrayConsolidationRequest to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ArrayConsolidationRequest 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/ArrayEndTimestampData.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayEndTimestampData.java index 1eacdbc..de322f0 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,38 +14,49 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.PaginationMetadata; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class ArrayEndTimestampData { public static final String SERIALIZED_NAME_END_TIMESTAMPS = "end_timestamps"; @SerializedName(SERIALIZED_NAME_END_TIMESTAMPS) - private List endTimestamps = null; + private List endTimestamps = new ArrayList<>(); public static final String SERIALIZED_NAME_PAGINATION_METADATA = "pagination_metadata"; @SerializedName(SERIALIZED_NAME_PAGINATION_METADATA) @@ -55,7 +66,6 @@ public ArrayEndTimestampData() { } public ArrayEndTimestampData endTimestamps(List endTimestamps) { - this.endTimestamps = endTimestamps; return this; } @@ -68,41 +78,34 @@ public ArrayEndTimestampData addEndTimestampsItem(Integer endTimestampsItem) { return this; } - /** + /** * List of timestamps expressed in milliseconds since Unix epoch * @return endTimestamps - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "List of timestamps expressed in milliseconds since Unix epoch") - public List getEndTimestamps() { return endTimestamps; } - public void setEndTimestamps(List endTimestamps) { this.endTimestamps = endTimestamps; } public ArrayEndTimestampData 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; } @@ -117,6 +120,10 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the ArrayEndTimestampData instance itself */ public ArrayEndTimestampData putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -128,6 +135,8 @@ public ArrayEndTimestampData putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -135,6 +144,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -199,27 +211,26 @@ private String toIndentedString(Object o) { 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 ArrayEndTimestampData - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (ArrayEndTimestampData.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ArrayEndTimestampData + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!ArrayEndTimestampData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayEndTimestampData is not found in the empty JSON string", ArrayEndTimestampData.openapiRequiredFields.toString())); } } - // ensure the json data is an array - if ((jsonObj.get("end_timestamps") != null && !jsonObj.get("end_timestamps").isJsonNull()) && !jsonObj.get("end_timestamps").isJsonArray()) { + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("end_timestamps") != null && !jsonObj.get("end_timestamps").isJsonNull() && !jsonObj.get("end_timestamps").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `end_timestamps` to be an array in the JSON string but got `%s`", jsonObj.get("end_timestamps").toString())); } // validate the optional field `pagination_metadata` if (jsonObj.get("pagination_metadata") != null && !jsonObj.get("pagination_metadata").isJsonNull()) { - PaginationMetadata.validateJsonObject(jsonObj.getAsJsonObject("pagination_metadata")); + PaginationMetadata.validateJsonElement(jsonObj.get("pagination_metadata")); } } @@ -239,7 +250,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, ArrayEndTimestampData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -251,7 +262,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -260,8 +276,9 @@ else if (entry.getValue() instanceof Character) @Override public ArrayEndTimestampData read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance ArrayEndTimestampData instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -275,8 +292,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -287,22 +306,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ArrayEndTimestampData given an JSON string - * - * @param jsonString JSON string - * @return An instance of ArrayEndTimestampData - * @throws IOException if the JSON string is invalid with respect to ArrayEndTimestampData - */ + /** + * Create an instance of ArrayEndTimestampData given an JSON string + * + * @param jsonString JSON string + * @return An instance of ArrayEndTimestampData + * @throws IOException if the JSON string is invalid with respect to ArrayEndTimestampData + */ public static ArrayEndTimestampData fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ArrayEndTimestampData.class); } - /** - * Convert an instance of ArrayEndTimestampData to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ArrayEndTimestampData 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/ArrayFavorite.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayFavorite.java index 2ad4d03..6074007 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,33 +14,42 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.Arrays; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class ArrayFavorite { public static final String SERIALIZED_NAME_ARRAY_UUID = "array_uuid"; @SerializedName(SERIALIZED_NAME_ARRAY_UUID) @@ -58,69 +67,57 @@ public ArrayFavorite() { } public ArrayFavorite arrayUuid(String arrayUuid) { - this.arrayUuid = arrayUuid; return this; } - /** + /** * unique UUID of the array * @return arrayUuid - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "unique UUID of the array") - public String getArrayUuid() { return arrayUuid; } - public void setArrayUuid(String arrayUuid) { this.arrayUuid = arrayUuid; } public ArrayFavorite namespace(String namespace) { - this.namespace = namespace; return this; } - /** + /** * the namespace of the array * @return namespace - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "the namespace of the array") - public String getNamespace() { return namespace; } - public void setNamespace(String namespace) { this.namespace = namespace; } public ArrayFavorite name(String name) { - this.name = name; return this; } - /** + /** * the name of the array * @return name - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "the name of the array") - public String getName() { return name; } - public void setName(String name) { this.name = name; } @@ -135,6 +132,10 @@ public void setName(String name) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the ArrayFavorite instance itself */ public ArrayFavorite putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -146,6 +147,8 @@ public ArrayFavorite putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -153,6 +156,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -220,20 +226,19 @@ private String toIndentedString(Object o) { 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 ArrayFavorite - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (ArrayFavorite.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ArrayFavorite + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!ArrayFavorite.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayFavorite is not found in the empty JSON string", ArrayFavorite.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("array_uuid") != null && !jsonObj.get("array_uuid").isJsonNull()) && !jsonObj.get("array_uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `array_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("array_uuid").toString())); } @@ -261,7 +266,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, ArrayFavorite value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -273,7 +278,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -282,8 +292,9 @@ else if (entry.getValue() instanceof Character) @Override public ArrayFavorite read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance ArrayFavorite instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -297,8 +308,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -309,22 +322,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ArrayFavorite given an JSON string - * - * @param jsonString JSON string - * @return An instance of ArrayFavorite - * @throws IOException if the JSON string is invalid with respect to ArrayFavorite - */ + /** + * Create an instance of ArrayFavorite given an JSON string + * + * @param jsonString JSON string + * @return An instance of ArrayFavorite + * @throws IOException if the JSON string is invalid with respect to ArrayFavorite + */ public static ArrayFavorite fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ArrayFavorite.class); } - /** - * Convert an instance of ArrayFavorite to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ArrayFavorite 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/ArrayFavoritesData.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayFavoritesData.java index 62976de..d44a0d3 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,39 +14,50 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.ArrayInfo; +import io.tiledb.cloud.rest_api.model.PaginationMetadata; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class ArrayFavoritesData { public static final String SERIALIZED_NAME_ARRAYS = "arrays"; @SerializedName(SERIALIZED_NAME_ARRAYS) - private List arrays = null; + private List arrays = new ArrayList<>(); public static final String SERIALIZED_NAME_PAGINATION_METADATA = "pagination_metadata"; @SerializedName(SERIALIZED_NAME_PAGINATION_METADATA) @@ -56,7 +67,6 @@ public ArrayFavoritesData() { } public ArrayFavoritesData arrays(List arrays) { - this.arrays = arrays; return this; } @@ -69,41 +79,34 @@ public ArrayFavoritesData addArraysItem(ArrayInfo arraysItem) { return this; } - /** + /** * List of array infos * @return arrays - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "List of array infos") - public List getArrays() { return arrays; } - public void setArrays(List arrays) { this.arrays = arrays; } public ArrayFavoritesData 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; } @@ -118,6 +121,10 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the ArrayFavoritesData instance itself */ public ArrayFavoritesData putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -129,6 +136,8 @@ public ArrayFavoritesData putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -136,6 +145,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -200,35 +212,36 @@ private String toIndentedString(Object o) { 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 ArrayFavoritesData - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (ArrayFavoritesData.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ArrayFavoritesData + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!ArrayFavoritesData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayFavoritesData is not found in the empty JSON string", ArrayFavoritesData.openapiRequiredFields.toString())); } } - JsonArray jsonArrayarrays = jsonObj.getAsJsonArray("arrays"); - if (jsonArrayarrays != null) { - // ensure the json data is an array - if (!jsonObj.get("arrays").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `arrays` to be an array in the JSON string but got `%s`", jsonObj.get("arrays").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("arrays") != null && !jsonObj.get("arrays").isJsonNull()) { + JsonArray jsonArrayarrays = jsonObj.getAsJsonArray("arrays"); + if (jsonArrayarrays != null) { + // ensure the json data is an array + if (!jsonObj.get("arrays").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `arrays` to be an array in the JSON string but got `%s`", jsonObj.get("arrays").toString())); + } + + // validate the optional field `arrays` (array) + for (int i = 0; i < jsonArrayarrays.size(); i++) { + ArrayInfo.validateJsonElement(jsonArrayarrays.get(i)); + }; } - - // validate the optional field `arrays` (array) - for (int i = 0; i < jsonArrayarrays.size(); i++) { - ArrayInfo.validateJsonObject(jsonArrayarrays.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")); + PaginationMetadata.validateJsonElement(jsonObj.get("pagination_metadata")); } } @@ -248,7 +261,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, ArrayFavoritesData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -260,7 +273,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -269,8 +287,9 @@ else if (entry.getValue() instanceof Character) @Override public ArrayFavoritesData read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance ArrayFavoritesData instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -284,8 +303,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -296,22 +317,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ArrayFavoritesData given an JSON string - * - * @param jsonString JSON string - * @return An instance of ArrayFavoritesData - * @throws IOException if the JSON string is invalid with respect to ArrayFavoritesData - */ + /** + * Create an instance of ArrayFavoritesData given an JSON string + * + * @param jsonString JSON string + * @return An instance of ArrayFavoritesData + * @throws IOException if the JSON string is invalid with respect to ArrayFavoritesData + */ public static ArrayFavoritesData fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ArrayFavoritesData.class); } - /** - * Convert an instance of ArrayFavoritesData to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ArrayFavoritesData 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/ArrayInfo.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayInfo.java index 4e1ff3d..c5b0c45 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). @@ -14,38 +14,55 @@ 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.JsonAdapter; 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 io.tiledb.cloud.rest_api.model.ArrayActions; +import io.tiledb.cloud.rest_api.model.ArrayType; +import io.tiledb.cloud.rest_api.model.FileType; +import io.tiledb.cloud.rest_api.model.MetadataStringifiedEntry; +import io.tiledb.cloud.rest_api.model.Pricing; +import io.tiledb.cloud.rest_api.model.Subscription; import java.io.IOException; import java.math.BigDecimal; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.Arrays; 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; +import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; +import java.util.HashMap; import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class ArrayInfo { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -57,7 +74,7 @@ public class ArrayInfo { public static final String SERIALIZED_NAME_FILE_PROPERTIES = "file_properties"; @SerializedName(SERIALIZED_NAME_FILE_PROPERTIES) - private Map fileProperties = null; + private Map fileProperties = new HashMap<>(); public static final String SERIALIZED_NAME_URI = "uri"; @SerializedName(SERIALIZED_NAME_URI) @@ -85,15 +102,15 @@ public class ArrayInfo { public static final String SERIALIZED_NAME_ALLOWED_ACTIONS = "allowed_actions"; @SerializedName(SERIALIZED_NAME_ALLOWED_ACTIONS) - private List allowedActions = null; + private List allowedActions = new ArrayList<>(); public static final String SERIALIZED_NAME_PRICING = "pricing"; @SerializedName(SERIALIZED_NAME_PRICING) - private List pricing = null; + private List pricing = new ArrayList<>(); public static final String SERIALIZED_NAME_SUBSCRIPTIONS = "subscriptions"; @SerializedName(SERIALIZED_NAME_SUBSCRIPTIONS) - private List subscriptions = null; + private List subscriptions = new ArrayList<>(); public static final String SERIALIZED_NAME_LOGO = "logo"; @SerializedName(SERIALIZED_NAME_LOGO) @@ -125,7 +142,7 @@ public class ArrayInfo { public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) - private List tags = null; + private List tags = new ArrayList<>(); public static final String SERIALIZED_NAME_LICENSE_ID = "license_id"; @SerializedName(SERIALIZED_NAME_LICENSE_ID) @@ -143,10 +160,21 @@ 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 = new ArrayList<>(); + public ArrayInfo() { } - public ArrayInfo( Boolean namespaceSubscribed ) { @@ -155,53 +183,44 @@ public ArrayInfo( } public ArrayInfo id(String id) { - this.id = id; return this; } - /** + /** * unique ID of registered array * @return id - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", value = "unique ID of registered array") - public String getId() { return id; } - public void setId(String id) { this.id = id; } public ArrayInfo fileType(FileType fileType) { - this.fileType = fileType; return this; } - /** + /** * Get fileType * @return fileType - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public FileType getFileType() { return fileType; } - public void setFileType(FileType fileType) { this.fileType = fileType; } public ArrayInfo fileProperties(Map fileProperties) { - this.fileProperties = fileProperties; return this; } @@ -214,163 +233,135 @@ public ArrayInfo putFilePropertiesItem(String key, String filePropertiesItem) { return this; } - /** + /** * map of file properties created for this array * @return fileProperties - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "map of file properties created for this array") - public Map getFileProperties() { return fileProperties; } - public void setFileProperties(Map fileProperties) { this.fileProperties = fileProperties; } public ArrayInfo uri(String uri) { - this.uri = uri; return this; } - /** + /** * uri of array * @return uri - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "s3://bucket/array", value = "uri of array") - public String getUri() { return uri; } - public void setUri(String uri) { this.uri = uri; } public ArrayInfo namespace(String namespace) { - this.namespace = namespace; return this; } - /** + /** * namespace array is in * @return namespace - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "user1", value = "namespace array is in") - public String getNamespace() { return namespace; } - public void setNamespace(String namespace) { this.namespace = namespace; } public ArrayInfo size(BigDecimal size) { - this.size = size; return this; } - /** + /** * size in bytes of array * @return size - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "1024.0", value = "size in bytes of array") - public BigDecimal getSize() { return size; } - public void setSize(BigDecimal size) { this.size = size; } public ArrayInfo lastAccessed(OffsetDateTime lastAccessed) { - this.lastAccessed = lastAccessed; return this; } - /** + /** * Datetime array was last accessed in UTC * @return lastAccessed - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Datetime array was last accessed in UTC") - public OffsetDateTime getLastAccessed() { return lastAccessed; } - public void setLastAccessed(OffsetDateTime lastAccessed) { this.lastAccessed = lastAccessed; } public ArrayInfo description(String description) { - this.description = description; return this; } - /** + /** * description of array * @return description - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "description of array") - public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } public ArrayInfo name(String name) { - this.name = name; return this; } - /** + /** * name of array * @return name - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "myarray1", value = "name of array") - public String getName() { return name; } - public void setName(String name) { this.name = name; } public ArrayInfo allowedActions(List allowedActions) { - this.allowedActions = allowedActions; return this; } @@ -383,25 +374,21 @@ public ArrayInfo addAllowedActionsItem(ArrayActions allowedActionsItem) { return this; } - /** + /** * list of actions user is allowed to do on this array * @return allowedActions - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "list of actions user is allowed to do on this array") - public List getAllowedActions() { return allowedActions; } - public void setAllowedActions(List allowedActions) { this.allowedActions = allowedActions; } public ArrayInfo pricing(List pricing) { - this.pricing = pricing; return this; } @@ -414,25 +401,21 @@ public ArrayInfo addPricingItem(Pricing pricingItem) { return this; } - /** + /** * list of pricing created for this array * @return pricing - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "list of pricing created for this array") - public List getPricing() { return pricing; } - public void setPricing(List pricing) { this.pricing = pricing; } public ArrayInfo subscriptions(List subscriptions) { - this.subscriptions = subscriptions; return this; } @@ -445,177 +428,146 @@ public ArrayInfo addSubscriptionsItem(Subscription subscriptionsItem) { return this; } - /** + /** * list of subscriptions created for this array * @return subscriptions - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "list of subscriptions created for this array") - public List getSubscriptions() { return subscriptions; } - public void setSubscriptions(List subscriptions) { this.subscriptions = subscriptions; } public ArrayInfo logo(String logo) { - this.logo = logo; return this; } - /** + /** * logo (base64 encoded) for the array. Optional * @return logo - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "logo (base64 encoded) for the array. Optional") - public String getLogo() { return logo; } - public void setLogo(String logo) { this.logo = logo; } public ArrayInfo accessCredentialsName(String accessCredentialsName) { - this.accessCredentialsName = accessCredentialsName; return this; } - /** + /** * the name of the access credentials to use. if unset, the default credentials will be used * @return accessCredentialsName - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "the name of the access credentials to use. if unset, the default credentials will be used") - public String getAccessCredentialsName() { return accessCredentialsName; } - public void setAccessCredentialsName(String accessCredentialsName) { this.accessCredentialsName = accessCredentialsName; } public ArrayInfo type(ArrayType type) { - this.type = type; return this; } - /** + /** * Get type * @return type - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public ArrayType getType() { return type; } - public void setType(ArrayType type) { this.type = type; } public ArrayInfo shareCount(BigDecimal shareCount) { - this.shareCount = shareCount; return this; } - /** + /** * number of unique namespaces this array is shared with * @return shareCount - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "number of unique namespaces this array is shared with") - public BigDecimal getShareCount() { return shareCount; } - public void setShareCount(BigDecimal shareCount) { this.shareCount = shareCount; } public ArrayInfo publicShare(Boolean publicShare) { - this.publicShare = publicShare; return this; } - /** + /** * Suggests if the array was shared to public by owner * @return publicShare - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "true", value = "Suggests if the array was shared to public by owner") - public Boolean getPublicShare() { return publicShare; } - public void setPublicShare(Boolean publicShare) { this.publicShare = publicShare; } - /** + /** * Depends on the namespace asking, denotes the existence of subscription of namespace to this array * @return namespaceSubscribed - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "false", value = "Depends on the namespace asking, denotes the existence of subscription of namespace to this array") - public Boolean getNamespaceSubscribed() { return namespaceSubscribed; } - public ArrayInfo tiledbUri(String tiledbUri) { - this.tiledbUri = tiledbUri; return this; } - /** + /** * uri for access through TileDB cloud * @return tiledbUri - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "uri for access through TileDB cloud") - public String getTiledbUri() { return tiledbUri; } - public void setTiledbUri(String tiledbUri) { this.tiledbUri = tiledbUri; } public ArrayInfo tags(List tags) { - this.tags = tags; return this; } @@ -628,114 +580,160 @@ public ArrayInfo addTagsItem(String tagsItem) { return this; } - /** + /** * optional tags for array * @return tags - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "optional tags for array") - public List getTags() { return tags; } - public void setTags(List tags) { this.tags = tags; } public ArrayInfo licenseId(String licenseId) { - this.licenseId = licenseId; return this; } - /** + /** * License identifier from SPDX License List or Custom * @return licenseId - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "License identifier from SPDX License List or Custom") - public String getLicenseId() { return licenseId; } - public void setLicenseId(String licenseId) { this.licenseId = licenseId; } public ArrayInfo licenseText(String licenseText) { - this.licenseText = licenseText; return this; } - /** + /** * License text * @return licenseText - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "License text") - public String getLicenseText() { return licenseText; } - public void setLicenseText(String licenseText) { this.licenseText = licenseText; } public ArrayInfo readOnly(Boolean readOnly) { - this.readOnly = readOnly; return this; } - /** + /** * Suggests if the array is in read_only mode * @return readOnly - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "false", value = "Suggests if the array is in read_only mode") - public Boolean getReadOnly() { return readOnly; } - public void setReadOnly(Boolean readOnly) { this.readOnly = readOnly; } public ArrayInfo isFavorite(Boolean isFavorite) { - this.isFavorite = isFavorite; return this; } - /** + /** * Indicates whether the array is in user favorites * @return isFavorite - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "true", value = "Indicates whether the array is in user favorites") - public Boolean getIsFavorite() { return isFavorite; } - 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 + 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 + 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 + 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 @@ -746,6 +744,10 @@ public void setIsFavorite(Boolean isFavorite) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the ArrayInfo instance itself */ public ArrayInfo putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -757,6 +759,8 @@ public ArrayInfo putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -764,6 +768,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -805,7 +812,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 +825,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 +863,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,28 +913,34 @@ 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(); } - /** - * 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 ArrayInfo - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (ArrayInfo.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ArrayInfo + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!ArrayInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayInfo is not found in the empty JSON string", ArrayInfo.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); } + // validate the optional field `file_type` + if (jsonObj.get("file_type") != null && !jsonObj.get("file_type").isJsonNull()) { + FileType.validateJsonElement(jsonObj.get("file_type")); + } if ((jsonObj.get("uri") != null && !jsonObj.get("uri").isJsonNull()) && !jsonObj.get("uri").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uri").toString())); } @@ -934,33 +953,37 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { 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())); } - // ensure the json data is an array - if ((jsonObj.get("allowed_actions") != null && !jsonObj.get("allowed_actions").isJsonNull()) && !jsonObj.get("allowed_actions").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("allowed_actions") != null && !jsonObj.get("allowed_actions").isJsonNull() && !jsonObj.get("allowed_actions").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `allowed_actions` to be an array in the JSON string but got `%s`", jsonObj.get("allowed_actions").toString())); } - JsonArray jsonArraypricing = jsonObj.getAsJsonArray("pricing"); - if (jsonArraypricing != null) { - // ensure the json data is an array - if (!jsonObj.get("pricing").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `pricing` to be an array in the JSON string but got `%s`", jsonObj.get("pricing").toString())); + if (jsonObj.get("pricing") != null && !jsonObj.get("pricing").isJsonNull()) { + JsonArray jsonArraypricing = jsonObj.getAsJsonArray("pricing"); + if (jsonArraypricing != null) { + // ensure the json data is an array + if (!jsonObj.get("pricing").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `pricing` to be an array in the JSON string but got `%s`", jsonObj.get("pricing").toString())); + } + + // validate the optional field `pricing` (array) + for (int i = 0; i < jsonArraypricing.size(); i++) { + Pricing.validateJsonElement(jsonArraypricing.get(i)); + }; } - - // validate the optional field `pricing` (array) - for (int i = 0; i < jsonArraypricing.size(); i++) { - Pricing.validateJsonObject(jsonArraypricing.get(i).getAsJsonObject()); - }; } - JsonArray jsonArraysubscriptions = jsonObj.getAsJsonArray("subscriptions"); - if (jsonArraysubscriptions != null) { - // ensure the json data is an array - if (!jsonObj.get("subscriptions").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `subscriptions` to be an array in the JSON string but got `%s`", jsonObj.get("subscriptions").toString())); + if (jsonObj.get("subscriptions") != null && !jsonObj.get("subscriptions").isJsonNull()) { + JsonArray jsonArraysubscriptions = jsonObj.getAsJsonArray("subscriptions"); + if (jsonArraysubscriptions != null) { + // ensure the json data is an array + if (!jsonObj.get("subscriptions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `subscriptions` to be an array in the JSON string but got `%s`", jsonObj.get("subscriptions").toString())); + } + + // validate the optional field `subscriptions` (array) + for (int i = 0; i < jsonArraysubscriptions.size(); i++) { + Subscription.validateJsonElement(jsonArraysubscriptions.get(i)); + }; } - - // validate the optional field `subscriptions` (array) - for (int i = 0; i < jsonArraysubscriptions.size(); i++) { - Subscription.validateJsonObject(jsonArraysubscriptions.get(i).getAsJsonObject()); - }; } 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())); @@ -968,11 +991,15 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if ((jsonObj.get("access_credentials_name") != null && !jsonObj.get("access_credentials_name").isJsonNull()) && !jsonObj.get("access_credentials_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `access_credentials_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("access_credentials_name").toString())); } + // validate the optional field `type` + if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { + ArrayType.validateJsonElement(jsonObj.get("type")); + } if ((jsonObj.get("tiledb_uri") != null && !jsonObj.get("tiledb_uri").isJsonNull()) && !jsonObj.get("tiledb_uri").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `tiledb_uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tiledb_uri").toString())); } - // ensure the json data is an array - if ((jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) && !jsonObj.get("tags").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull() && !jsonObj.get("tags").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); } if ((jsonObj.get("license_id") != null && !jsonObj.get("license_id").isJsonNull()) && !jsonObj.get("license_id").isJsonPrimitive()) { @@ -981,6 +1008,23 @@ 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())); + } + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + 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.validateJsonElement(jsonArraymetadata.get(i)); + }; + } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -999,7 +1043,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, ArrayInfo value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -1011,7 +1055,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -1020,8 +1069,9 @@ else if (entry.getValue() instanceof Character) @Override public ArrayInfo read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance ArrayInfo instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -1035,8 +1085,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -1047,22 +1099,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ArrayInfo given an JSON string - * - * @param jsonString JSON string - * @return An instance of ArrayInfo - * @throws IOException if the JSON string is invalid with respect to ArrayInfo - */ + /** + * Create an instance of ArrayInfo given an JSON string + * + * @param jsonString JSON string + * @return An instance of ArrayInfo + * @throws IOException if the JSON string is invalid with respect to ArrayInfo + */ public static ArrayInfo fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ArrayInfo.class); } - /** - * Convert an instance of ArrayInfo to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ArrayInfo 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/ArrayInfoUpdate.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayInfoUpdate.java index 7a70912..e730e88 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). @@ -14,35 +14,48 @@ 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.JsonAdapter; 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 io.tiledb.cloud.rest_api.model.FileType; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; - -import io.tiledb.cloud.rest_api.JSON; import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; +import java.util.HashMap; import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class ArrayInfoUpdate { public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) @@ -62,7 +75,7 @@ public class ArrayInfoUpdate { public static final String SERIALIZED_NAME_FILE_PROPERTIES = "file_properties"; @SerializedName(SERIALIZED_NAME_FILE_PROPERTIES) - private Map fileProperties = null; + private Map fileProperties = new HashMap<>(); public static final String SERIALIZED_NAME_ACCESS_CREDENTIALS_NAME = "access_credentials_name"; @SerializedName(SERIALIZED_NAME_ACCESS_CREDENTIALS_NAME) @@ -74,7 +87,7 @@ public class ArrayInfoUpdate { public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) - private List tags = null; + private List tags = new ArrayList<>(); public static final String SERIALIZED_NAME_LICENSE_ID = "license_id"; @SerializedName(SERIALIZED_NAME_LICENSE_ID) @@ -92,99 +105,82 @@ public ArrayInfoUpdate() { } public ArrayInfoUpdate description(String description) { - this.description = description; return this; } - /** + /** * description of array * @return description - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "description of array") - public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } public ArrayInfoUpdate name(String name) { - this.name = name; return this; } - /** + /** * description of array * @return name - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "myarray1", value = "description of array") - public String getName() { return name; } - public void setName(String name) { this.name = name; } public ArrayInfoUpdate uri(String uri) { - this.uri = uri; return this; } - /** + /** * uri of array * @return uri - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "s3://bucket/array", value = "uri of array") - public String getUri() { return uri; } - public void setUri(String uri) { this.uri = uri; } public ArrayInfoUpdate fileType(FileType fileType) { - this.fileType = fileType; return this; } - /** + /** * Get fileType * @return fileType - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public FileType getFileType() { return fileType; } - public void setFileType(FileType fileType) { this.fileType = fileType; } public ArrayInfoUpdate fileProperties(Map fileProperties) { - this.fileProperties = fileProperties; return this; } @@ -197,71 +193,59 @@ public ArrayInfoUpdate putFilePropertiesItem(String key, String filePropertiesIt return this; } - /** + /** * map of file properties created for this array * @return fileProperties - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "map of file properties created for this array") - public Map getFileProperties() { return fileProperties; } - public void setFileProperties(Map fileProperties) { this.fileProperties = fileProperties; } public ArrayInfoUpdate accessCredentialsName(String accessCredentialsName) { - this.accessCredentialsName = accessCredentialsName; return this; } - /** + /** * the name of the access credentials to use. if unset, the default credentials will be used * @return accessCredentialsName - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "the name of the access credentials to use. if unset, the default credentials will be used") - public String getAccessCredentialsName() { return accessCredentialsName; } - public void setAccessCredentialsName(String accessCredentialsName) { this.accessCredentialsName = accessCredentialsName; } public ArrayInfoUpdate logo(String logo) { - this.logo = logo; return this; } - /** + /** * logo (base64 encoded) for the array. Optional * @return logo - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "logo (base64 encoded) for the array. Optional") - public String getLogo() { return logo; } - public void setLogo(String logo) { this.logo = logo; } public ArrayInfoUpdate tags(List tags) { - this.tags = tags; return this; } @@ -274,87 +258,72 @@ public ArrayInfoUpdate addTagsItem(String tagsItem) { return this; } - /** + /** * optional tags for array * @return tags - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "optional tags for array") - public List getTags() { return tags; } - public void setTags(List tags) { this.tags = tags; } public ArrayInfoUpdate licenseId(String licenseId) { - this.licenseId = licenseId; return this; } - /** + /** * License identifier from SPDX License List or Custom * @return licenseId - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "License identifier from SPDX License List or Custom") - public String getLicenseId() { return licenseId; } - public void setLicenseId(String licenseId) { this.licenseId = licenseId; } public ArrayInfoUpdate licenseText(String licenseText) { - this.licenseText = licenseText; return this; } - /** + /** * License text * @return licenseText - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "License text") - public String getLicenseText() { return licenseText; } - public void setLicenseText(String licenseText) { this.licenseText = licenseText; } public ArrayInfoUpdate readOnly(Boolean readOnly) { - this.readOnly = readOnly; return this; } - /** + /** * Suggests if the array is in read_only mode * @return readOnly - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "true", value = "Suggests if the array is in read_only mode") - public Boolean getReadOnly() { return readOnly; } - public void setReadOnly(Boolean readOnly) { this.readOnly = readOnly; } @@ -369,6 +338,10 @@ public void setReadOnly(Boolean readOnly) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the ArrayInfoUpdate instance itself */ public ArrayInfoUpdate putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -380,6 +353,8 @@ public ArrayInfoUpdate putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -387,6 +362,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -489,20 +467,19 @@ private String toIndentedString(Object o) { 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 ArrayInfoUpdate - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (ArrayInfoUpdate.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ArrayInfoUpdate + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!ArrayInfoUpdate.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayInfoUpdate is not found in the empty JSON string", ArrayInfoUpdate.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); } @@ -512,14 +489,18 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if ((jsonObj.get("uri") != null && !jsonObj.get("uri").isJsonNull()) && !jsonObj.get("uri").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uri").toString())); } + // validate the optional field `file_type` + if (jsonObj.get("file_type") != null && !jsonObj.get("file_type").isJsonNull()) { + FileType.validateJsonElement(jsonObj.get("file_type")); + } if ((jsonObj.get("access_credentials_name") != null && !jsonObj.get("access_credentials_name").isJsonNull()) && !jsonObj.get("access_credentials_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `access_credentials_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("access_credentials_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())); } - // ensure the json data is an array - if ((jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) && !jsonObj.get("tags").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull() && !jsonObj.get("tags").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); } if ((jsonObj.get("license_id") != null && !jsonObj.get("license_id").isJsonNull()) && !jsonObj.get("license_id").isJsonPrimitive()) { @@ -546,7 +527,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, ArrayInfoUpdate value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -558,7 +539,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -567,8 +553,9 @@ else if (entry.getValue() instanceof Character) @Override public ArrayInfoUpdate read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance ArrayInfoUpdate instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -582,8 +569,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -594,22 +583,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ArrayInfoUpdate given an JSON string - * - * @param jsonString JSON string - * @return An instance of ArrayInfoUpdate - * @throws IOException if the JSON string is invalid with respect to ArrayInfoUpdate - */ + /** + * Create an instance of ArrayInfoUpdate given an JSON string + * + * @param jsonString JSON string + * @return An instance of ArrayInfoUpdate + * @throws IOException if the JSON string is invalid with respect to ArrayInfoUpdate + */ public static ArrayInfoUpdate fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ArrayInfoUpdate.class); } - /** - * Convert an instance of ArrayInfoUpdate to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ArrayInfoUpdate 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/ArrayMetadata.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayMetadata.java index defbdda..b3c286a 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,45 +14,54 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.ArrayMetadataEntry; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class ArrayMetadata { public static final String SERIALIZED_NAME_ENTRIES = "entries"; @SerializedName(SERIALIZED_NAME_ENTRIES) - private List entries = null; + private List entries = new ArrayList<>(); public ArrayMetadata() { } public ArrayMetadata entries(List entries) { - this.entries = entries; return this; } @@ -65,18 +74,15 @@ public ArrayMetadata addEntriesItem(ArrayMetadataEntry 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; } @@ -91,6 +97,10 @@ public void setEntries(List entries) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the ArrayMetadata instance itself */ public ArrayMetadata putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -102,6 +112,8 @@ public ArrayMetadata putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -109,6 +121,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -170,31 +185,32 @@ private String toIndentedString(Object o) { 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 ArrayMetadata - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (ArrayMetadata.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ArrayMetadata + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!ArrayMetadata.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayMetadata is not found in the empty JSON string", ArrayMetadata.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())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("entries") != null && !jsonObj.get("entries").isJsonNull()) { + 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++) { + ArrayMetadataEntry.validateJsonElement(jsonArrayentries.get(i)); + }; } - - // validate the optional field `entries` (array) - for (int i = 0; i < jsonArrayentries.size(); i++) { - ArrayMetadataEntry.validateJsonObject(jsonArrayentries.get(i).getAsJsonObject()); - }; } } @@ -214,7 +230,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, ArrayMetadata value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -226,7 +242,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -235,8 +256,9 @@ else if (entry.getValue() instanceof Character) @Override public ArrayMetadata read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance ArrayMetadata instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -250,8 +272,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -262,22 +286,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ArrayMetadata given an JSON string - * - * @param jsonString JSON string - * @return An instance of ArrayMetadata - * @throws IOException if the JSON string is invalid with respect to ArrayMetadata - */ + /** + * Create an instance of ArrayMetadata given an JSON string + * + * @param jsonString JSON string + * @return An instance of ArrayMetadata + * @throws IOException if the JSON string is invalid with respect to ArrayMetadata + */ public static ArrayMetadata fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ArrayMetadata.class); } - /** - * Convert an instance of ArrayMetadata to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ArrayMetadata 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/ArrayMetadataEntry.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayMetadataEntry.java index fff00f8..cc29788 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,35 +14,44 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class ArrayMetadataEntry { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -58,7 +67,7 @@ public class ArrayMetadataEntry { public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) - private List value = null; + private List value = new ArrayList<>(); public static final String SERIALIZED_NAME_DEL = "del"; @SerializedName(SERIALIZED_NAME_DEL) @@ -68,76 +77,63 @@ public ArrayMetadataEntry() { } public ArrayMetadataEntry key(String key) { - this.key = key; return this; } - /** + /** * Get key * @return key - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public String getKey() { return key; } - public void setKey(String key) { this.key = key; } public ArrayMetadataEntry 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 ArrayMetadataEntry valueNum(Integer valueNum) { - this.valueNum = valueNum; return this; } - /** + /** * Get valueNum * @return valueNum - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public Integer getValueNum() { return valueNum; } - public void setValueNum(Integer valueNum) { this.valueNum = valueNum; } public ArrayMetadataEntry value(List value) { - this.value = value; return this; } @@ -150,41 +146,34 @@ public ArrayMetadataEntry addValueItem(Integer valueItem) { return this; } - /** + /** * Get value * @return value - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public List getValue() { return value; } - public void setValue(List value) { this.value = value; } public ArrayMetadataEntry del(Boolean del) { - this.del = del; return this; } - /** + /** * Get del * @return del - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public Boolean getDel() { return del; } - public void setDel(Boolean del) { this.del = del; } @@ -199,6 +188,10 @@ public void setDel(Boolean del) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the ArrayMetadataEntry instance itself */ public ArrayMetadataEntry putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -210,6 +203,8 @@ public ArrayMetadataEntry putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -217,6 +212,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -290,28 +288,27 @@ private String toIndentedString(Object o) { 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 ArrayMetadataEntry - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (ArrayMetadataEntry.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ArrayMetadataEntry + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!ArrayMetadataEntry.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayMetadataEntry is not found in the empty JSON string", ArrayMetadataEntry.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); 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("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("value") != null && !jsonObj.get("value").isJsonNull()) && !jsonObj.get("value").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull() && !jsonObj.get("value").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `value` to be an array in the JSON string but got `%s`", jsonObj.get("value").toString())); } } @@ -332,7 +329,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, ArrayMetadataEntry value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -344,7 +341,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -353,8 +355,9 @@ else if (entry.getValue() instanceof Character) @Override public ArrayMetadataEntry read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance ArrayMetadataEntry instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -368,8 +371,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -380,22 +385,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ArrayMetadataEntry given an JSON string - * - * @param jsonString JSON string - * @return An instance of ArrayMetadataEntry - * @throws IOException if the JSON string is invalid with respect to ArrayMetadataEntry - */ + /** + * Create an instance of ArrayMetadataEntry given an JSON string + * + * @param jsonString JSON string + * @return An instance of ArrayMetadataEntry + * @throws IOException if the JSON string is invalid with respect to ArrayMetadataEntry + */ public static ArrayMetadataEntry fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ArrayMetadataEntry.class); } - /** - * Convert an instance of ArrayMetadataEntry to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ArrayMetadataEntry 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/ArraySample.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArraySample.java index 4410f69..800642c 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,33 +14,42 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.Arrays; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class ArraySample { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @@ -50,23 +59,19 @@ public ArraySample() { } public ArraySample data(Object data) { - this.data = data; return this; } - /** + /** * Get data * @return data - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public Object getData() { return data; } - public void setData(Object data) { this.data = data; } @@ -81,6 +86,10 @@ public void setData(Object data) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the ArraySample instance itself */ public ArraySample putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -92,6 +101,8 @@ public ArraySample putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -99,6 +110,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -160,20 +174,19 @@ private String toIndentedString(Object o) { 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 ArraySample - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (ArraySample.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ArraySample + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!ArraySample.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in ArraySample is not found in the empty JSON string", ArraySample.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -192,7 +205,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, ArraySample value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -204,7 +217,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -213,8 +231,9 @@ else if (entry.getValue() instanceof Character) @Override public ArraySample read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance ArraySample instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -228,8 +247,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -240,22 +261,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ArraySample given an JSON string - * - * @param jsonString JSON string - * @return An instance of ArraySample - * @throws IOException if the JSON string is invalid with respect to ArraySample - */ + /** + * Create an instance of ArraySample given an JSON string + * + * @param jsonString JSON string + * @return An instance of ArraySample + * @throws IOException if the JSON string is invalid with respect to ArraySample + */ public static ArraySample fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ArraySample.class); } - /** - * Convert an instance of ArraySample to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ArraySample 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/ArraySchema.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArraySchema.java index ba710cb..ce36e90 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,36 +14,49 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.ArrayType; +import io.tiledb.cloud.rest_api.model.Attribute; +import io.tiledb.cloud.rest_api.model.Domain; +import io.tiledb.cloud.rest_api.model.FilterPipeline; +import io.tiledb.cloud.rest_api.model.Layout; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class ArraySchema { public static final String SERIALIZED_NAME_URI = "uri"; @SerializedName(SERIALIZED_NAME_URI) @@ -93,263 +106,225 @@ public ArraySchema() { } public ArraySchema uri(String uri) { - this.uri = uri; return this; } - /** + /** * URI of schema * @return uri - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "s3:///test_array", value = "URI of schema") - public String getUri() { return uri; } - public void setUri(String uri) { this.uri = uri; } public ArraySchema version(List version) { - this.version = version; return this; } public ArraySchema addVersionItem(Integer versionItem) { + if (this.version == null) { + this.version = new ArrayList<>(); + } this.version.add(versionItem); return this; } - /** + /** * file format version * @return version - **/ + */ @javax.annotation.Nonnull - @ApiModelProperty(example = "[1, 3, 0]", required = true, value = "file format version") - public List getVersion() { return version; } - public void setVersion(List version) { this.version = version; } public ArraySchema arrayType(ArrayType arrayType) { - this.arrayType = arrayType; return this; } - /** + /** * Get arrayType * @return arrayType - **/ + */ @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") - public ArrayType getArrayType() { return arrayType; } - public void setArrayType(ArrayType arrayType) { this.arrayType = arrayType; } public ArraySchema tileOrder(Layout tileOrder) { - this.tileOrder = tileOrder; return this; } - /** + /** * Get tileOrder * @return tileOrder - **/ + */ @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") - public Layout getTileOrder() { return tileOrder; } - public void setTileOrder(Layout tileOrder) { this.tileOrder = tileOrder; } public ArraySchema cellOrder(Layout cellOrder) { - this.cellOrder = cellOrder; return this; } - /** + /** * Get cellOrder * @return cellOrder - **/ + */ @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") - public Layout getCellOrder() { return cellOrder; } - public void setCellOrder(Layout cellOrder) { this.cellOrder = cellOrder; } public ArraySchema capacity(Integer capacity) { - this.capacity = capacity; return this; } - /** + /** * Capacity of array * @return capacity - **/ + */ @javax.annotation.Nonnull - @ApiModelProperty(example = "100000", required = true, value = "Capacity of array") - public Integer getCapacity() { return capacity; } - public void setCapacity(Integer capacity) { this.capacity = capacity; } public ArraySchema coordsFilterPipeline(FilterPipeline coordsFilterPipeline) { - this.coordsFilterPipeline = coordsFilterPipeline; return this; } - /** + /** * Get coordsFilterPipeline * @return coordsFilterPipeline - **/ + */ @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") - public FilterPipeline getCoordsFilterPipeline() { return coordsFilterPipeline; } - public void setCoordsFilterPipeline(FilterPipeline coordsFilterPipeline) { this.coordsFilterPipeline = coordsFilterPipeline; } public ArraySchema offsetFilterPipeline(FilterPipeline offsetFilterPipeline) { - this.offsetFilterPipeline = offsetFilterPipeline; return this; } - /** + /** * Get offsetFilterPipeline * @return offsetFilterPipeline - **/ + */ @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") - public FilterPipeline getOffsetFilterPipeline() { return offsetFilterPipeline; } - public void setOffsetFilterPipeline(FilterPipeline offsetFilterPipeline) { this.offsetFilterPipeline = offsetFilterPipeline; } public ArraySchema domain(Domain domain) { - this.domain = domain; return this; } - /** + /** * Get domain * @return domain - **/ + */ @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") - public Domain getDomain() { return domain; } - public void setDomain(Domain domain) { this.domain = domain; } public ArraySchema attributes(List attributes) { - this.attributes = attributes; return this; } public ArraySchema addAttributesItem(Attribute attributesItem) { + if (this.attributes == null) { + this.attributes = new ArrayList<>(); + } this.attributes.add(attributesItem); return this; } - /** + /** * Attributes of array * @return attributes - **/ + */ @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "Attributes of array") - public List getAttributes() { return attributes; } - public void setAttributes(List attributes) { this.attributes = attributes; } public ArraySchema allowsDuplicates(Boolean allowsDuplicates) { - this.allowsDuplicates = allowsDuplicates; return this; } - /** + /** * True if the array allows coordinate duplicates. Applicable only to sparse arrays. * @return allowsDuplicates - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "True if the array allows coordinate duplicates. Applicable only to sparse arrays.") - public Boolean getAllowsDuplicates() { return allowsDuplicates; } - public void setAllowsDuplicates(Boolean allowsDuplicates) { this.allowsDuplicates = allowsDuplicates; } @@ -364,6 +339,10 @@ public void setAllowsDuplicates(Boolean allowsDuplicates) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the ArraySchema instance itself */ public ArraySchema putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -375,6 +354,8 @@ public ArraySchema putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -382,6 +363,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -482,105 +466,147 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("attributes"); } - /** - * 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 ArraySchema - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (ArraySchema.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ArraySchema + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!ArraySchema.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in ArraySchema is not found in the empty JSON string", ArraySchema.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : ArraySchema.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 (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("uri") != null && !jsonObj.get("uri").isJsonNull()) && !jsonObj.get("uri").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uri").toString())); } - // ensure the json data is an array - if ((jsonObj.get("version") != null && !jsonObj.get("version").isJsonNull()) && !jsonObj.get("version").isJsonArray()) { + // ensure the required json array is present + if (jsonObj.get("version") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("version").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `version` to be an array in the JSON string but got `%s`", jsonObj.get("version").toString())); } - // validate the optional field `coordsFilterPipeline` - if (jsonObj.get("coordsFilterPipeline") != null && !jsonObj.get("coordsFilterPipeline").isJsonNull()) { - FilterPipeline.validateJsonObject(jsonObj.getAsJsonObject("coordsFilterPipeline")); - } - // validate the optional field `offsetFilterPipeline` - if (jsonObj.get("offsetFilterPipeline") != null && !jsonObj.get("offsetFilterPipeline").isJsonNull()) { - FilterPipeline.validateJsonObject(jsonObj.getAsJsonObject("offsetFilterPipeline")); - } - // validate the optional field `domain` - if (jsonObj.get("domain") != null && !jsonObj.get("domain").isJsonNull()) { - Domain.validateJsonObject(jsonObj.getAsJsonObject("domain")); + // validate the required field `arrayType` + ArrayType.validateJsonElement(jsonObj.get("arrayType")); + // validate the required field `tileOrder` + Layout.validateJsonElement(jsonObj.get("tileOrder")); + // validate the required field `cellOrder` + Layout.validateJsonElement(jsonObj.get("cellOrder")); + // validate the required field `coordsFilterPipeline` + FilterPipeline.validateJsonElement(jsonObj.get("coordsFilterPipeline")); + // validate the required field `offsetFilterPipeline` + FilterPipeline.validateJsonElement(jsonObj.get("offsetFilterPipeline")); + // validate the required field `domain` + Domain.validateJsonElement(jsonObj.get("domain")); + // ensure the json data is an array + if (!jsonObj.get("attributes").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `attributes` to be an array in the JSON string but got `%s`", jsonObj.get("attributes").toString())); } - JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); - if (jsonArrayattributes != null) { - // ensure the json data is an array - if (!jsonObj.get("attributes").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `attributes` to be an array in the JSON string but got `%s`", jsonObj.get("attributes").toString())); - } - // validate the optional field `attributes` (array) - for (int i = 0; i < jsonArrayattributes.size(); i++) { - Attribute.validateJsonObject(jsonArrayattributes.get(i).getAsJsonObject()); - }; - } + JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); + // validate the required field `attributes` (array) + for (int i = 0; i < jsonArrayattributes.size(); i++) { + Attribute.validateJsonElement(jsonArrayattributes.get(i)); + }; } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!ArraySchema.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'ArraySchema' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(ArraySchema.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, ArraySchema value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public ArraySchema read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); - } - - }.nullSafe(); + if (!ArraySchema.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ArraySchema' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ArraySchema.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ArraySchema value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional 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 { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public ArraySchema read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + ArraySchema 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 if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); } } - /** - * Create an instance of ArraySchema given an JSON string - * - * @param jsonString JSON string - * @return An instance of ArraySchema - * @throws IOException if the JSON string is invalid with respect to ArraySchema - */ + /** + * Create an instance of ArraySchema given an JSON string + * + * @param jsonString JSON string + * @return An instance of ArraySchema + * @throws IOException if the JSON string is invalid with respect to ArraySchema + */ public static ArraySchema fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ArraySchema.class); } - /** - * Convert an instance of ArraySchema to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ArraySchema 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/ArraySharing.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArraySharing.java index 699939a..e6aad94 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,38 +14,49 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.ArrayActions; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class ArraySharing { public static final String SERIALIZED_NAME_ACTIONS = "actions"; @SerializedName(SERIALIZED_NAME_ACTIONS) - private List actions = null; + private List actions = new ArrayList<>(); public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; @SerializedName(SERIALIZED_NAME_NAMESPACE) @@ -59,7 +70,6 @@ public ArraySharing() { } public ArraySharing actions(List actions) { - this.actions = actions; return this; } @@ -72,64 +82,53 @@ public ArraySharing addActionsItem(ArrayActions actionsItem) { return this; } - /** + /** * List of permitted actions * @return actions - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "[read, write]", value = "List of permitted actions") - public List getActions() { return actions; } - public void setActions(List actions) { this.actions = actions; } public ArraySharing namespace(String namespace) { - this.namespace = namespace; return this; } - /** + /** * namespace being granted array access can be a user or organization * @return namespace - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "MyOrganization", value = "namespace being granted array access can be a user or organization") - public String getNamespace() { return namespace; } - public void setNamespace(String namespace) { this.namespace = namespace; } public ArraySharing namespaceType(String namespaceType) { - this.namespaceType = namespaceType; return this; } - /** + /** * details on if the namespace is a organization or user * @return namespaceType - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "organization", value = "details on if the namespace is a organization or user") - public String getNamespaceType() { return namespaceType; } - public void setNamespaceType(String namespaceType) { this.namespaceType = namespaceType; } @@ -144,6 +143,10 @@ public void setNamespaceType(String namespaceType) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the ArraySharing instance itself */ public ArraySharing putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -155,6 +158,8 @@ public ArraySharing putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -162,6 +167,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -229,22 +237,21 @@ private String toIndentedString(Object o) { 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 ArraySharing - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (ArraySharing.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ArraySharing + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!ArraySharing.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in ArraySharing is not found in the empty JSON string", ArraySharing.openapiRequiredFields.toString())); } } - // ensure the json data is an array - if ((jsonObj.get("actions") != null && !jsonObj.get("actions").isJsonNull()) && !jsonObj.get("actions").isJsonArray()) { + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("actions") != null && !jsonObj.get("actions").isJsonNull() && !jsonObj.get("actions").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `actions` to be an array in the JSON string but got `%s`", jsonObj.get("actions").toString())); } if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { @@ -271,7 +278,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, ArraySharing value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -283,7 +290,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -292,8 +304,9 @@ else if (entry.getValue() instanceof Character) @Override public ArraySharing read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance ArraySharing instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -307,8 +320,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -319,22 +334,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ArraySharing given an JSON string - * - * @param jsonString JSON string - * @return An instance of ArraySharing - * @throws IOException if the JSON string is invalid with respect to ArraySharing - */ + /** + * Create an instance of ArraySharing given an JSON string + * + * @param jsonString JSON string + * @return An instance of ArraySharing + * @throws IOException if the JSON string is invalid with respect to ArraySharing + */ public static ArraySharing fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ArraySharing.class); } - /** - * Convert an instance of ArraySharing to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ArraySharing 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/ArrayTask.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTask.java index 5bd1e78..a351330 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). @@ -14,38 +14,54 @@ 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.JsonAdapter; 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 io.tiledb.cloud.rest_api.model.ArrayActivityLog; +import io.tiledb.cloud.rest_api.model.ArrayInfo; +import io.tiledb.cloud.rest_api.model.ArrayTaskStatus; +import io.tiledb.cloud.rest_api.model.ArrayTaskType; +import io.tiledb.cloud.rest_api.model.DomainArray; +import io.tiledb.cloud.rest_api.model.Querytype; +import io.tiledb.cloud.rest_api.model.ResultFormat; import java.io.IOException; import java.math.BigDecimal; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.Arrays; 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.GsonBuilder; import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; + +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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class ArrayTask { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -133,7 +149,7 @@ public class ArrayTask { public static final String SERIALIZED_NAME_ACTIVITY = "activity"; @SerializedName(SERIALIZED_NAME_ACTIVITY) - private List activity = null; + private List activity = new ArrayList<>(); public static final String SERIALIZED_NAME_LOGS = "logs"; @SerializedName(SERIALIZED_NAME_LOGS) @@ -145,11 +161,11 @@ public class ArrayTask { public static final String SERIALIZED_NAME_SQL_INIT_COMMANDS = "sql_init_commands"; @SerializedName(SERIALIZED_NAME_SQL_INIT_COMMANDS) - private List sqlInitCommands = null; + private List sqlInitCommands = new ArrayList<>(); public static final String SERIALIZED_NAME_SQL_PARAMETERS = "sql_parameters"; @SerializedName(SERIALIZED_NAME_SQL_PARAMETERS) - private List sqlParameters = null; + private List sqlParameters = new ArrayList<>(); public static final String SERIALIZED_NAME_RESULT_FORMAT = "result_format"; @SerializedName(SERIALIZED_NAME_RESULT_FORMAT) @@ -163,494 +179,417 @@ 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() { } public ArrayTask id(String id) { - this.id = id; return this; } - /** + /** * task ID * @return id - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "task ID") - public String getId() { return id; } - public void setId(String id) { this.id = id; } public ArrayTask name(String name) { - this.name = name; return this; } - /** + /** * Optional task name * @return name - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "subarray-multiplier", value = "Optional task name") - public String getName() { return name; } - public void setName(String name) { this.name = name; } public ArrayTask username(String username) { - this.username = username; return this; } - /** + /** * username that executed this task * @return username - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "demo", value = "username that executed this task") - public String getUsername() { return username; } - public void setUsername(String username) { this.username = username; } public ArrayTask description(String description) { - this.description = description; return this; } - /** + /** * Optional task description (Tasks purpose) * @return description - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "Return attr a1 in the subarray bounded by coordinates and multiply attr1 by 2", value = "Optional task description (Tasks purpose)") - public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } public ArrayTask arrayMetadata(ArrayInfo arrayMetadata) { - this.arrayMetadata = arrayMetadata; return this; } - /** + /** * Get arrayMetadata * @return arrayMetadata - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public ArrayInfo getArrayMetadata() { return arrayMetadata; } - public void setArrayMetadata(ArrayInfo arrayMetadata) { this.arrayMetadata = arrayMetadata; } public ArrayTask subarray(DomainArray subarray) { - this.subarray = subarray; return this; } - /** + /** * Get subarray * @return subarray - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public DomainArray getSubarray() { return subarray; } - public void setSubarray(DomainArray subarray) { this.subarray = subarray; } public ArrayTask memory(Integer memory) { - this.memory = memory; return this; } - /** + /** * memory allocated to task in bytes * @return memory - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "1073741824", value = "memory allocated to task in bytes") - public Integer getMemory() { return memory; } - public void setMemory(Integer memory) { this.memory = memory; } public ArrayTask cpu(Integer cpu) { - this.cpu = cpu; return this; } - /** + /** * millicpu allocated to task * @return cpu - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "4000", value = "millicpu allocated to task") - public Integer getCpu() { return cpu; } - public void setCpu(Integer cpu) { this.cpu = cpu; } public ArrayTask namespace(String namespace) { - this.namespace = namespace; return this; } - /** + /** * namespace task is tied to * @return namespace - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "organization1", value = "namespace task is tied to") - public String getNamespace() { return namespace; } - public void setNamespace(String namespace) { this.namespace = namespace; } public ArrayTask status(ArrayTaskStatus status) { - this.status = status; return this; } - /** + /** * Get status * @return status - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public ArrayTaskStatus getStatus() { return status; } - public void setStatus(ArrayTaskStatus status) { this.status = status; } public ArrayTask statusMessage(String statusMessage) { - this.statusMessage = statusMessage; return this; } - /** + /** * The reason the array task status is in the state * @return statusMessage - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The reason the array task status is in the state") - public String getStatusMessage() { return statusMessage; } - public void setStatusMessage(String statusMessage) { this.statusMessage = statusMessage; } public ArrayTask startTime(OffsetDateTime startTime) { - this.startTime = startTime; return this; } - /** + /** * Start time RFC3339 for job * @return startTime - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Start time RFC3339 for job") - public OffsetDateTime getStartTime() { return startTime; } - public void setStartTime(OffsetDateTime startTime) { this.startTime = startTime; } public ArrayTask finishTime(OffsetDateTime finishTime) { - this.finishTime = finishTime; return this; } - /** + /** * Finish time RFC3339 for job * @return finishTime - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Finish time RFC3339 for job") - public OffsetDateTime getFinishTime() { return finishTime; } - public void setFinishTime(OffsetDateTime finishTime) { this.finishTime = finishTime; } public ArrayTask cost(Double cost) { - this.cost = cost; return this; } - /** + /** * Total accumulated for task in USD, example is $0.12 * @return cost - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "0.12", value = "Total accumulated for task in USD, example is $0.12") - public Double getCost() { return cost; } - public void setCost(Double cost) { this.cost = cost; } public ArrayTask egressCost(Double egressCost) { - this.egressCost = egressCost; return this; } - /** + /** * Total accumulated for egress task in USD, example is $0.12 * @return egressCost - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "0.12", value = "Total accumulated for egress task in USD, example is $0.12") - public Double getEgressCost() { return egressCost; } - public void setEgressCost(Double egressCost) { this.egressCost = egressCost; } public ArrayTask accessCost(Double accessCost) { - this.accessCost = accessCost; return this; } - /** + /** * Cost accumulated for access task in USD, example is $0.12 * @return accessCost - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "0.12", value = "Cost accumulated for access task in USD, example is $0.12") - public Double getAccessCost() { return accessCost; } - public void setAccessCost(Double accessCost) { this.accessCost = accessCost; } public ArrayTask queryType(Querytype queryType) { - this.queryType = queryType; return this; } - /** + /** * Get queryType * @return queryType - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public Querytype getQueryType() { return queryType; } - public void setQueryType(Querytype queryType) { this.queryType = queryType; } public ArrayTask udfCode(String udfCode) { - this.udfCode = udfCode; return this; } - /** + /** * Optional actual code that is going to be executed * @return udfCode - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Optional actual code that is going to be executed") - public String getUdfCode() { return udfCode; } - public void setUdfCode(String udfCode) { this.udfCode = udfCode; } public ArrayTask udfLanguage(String udfLanguage) { - this.udfLanguage = udfLanguage; return this; } - /** + /** * Optional actual language used to express udf_code * @return udfLanguage - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Optional actual language used to express udf_code") - public String getUdfLanguage() { return udfLanguage; } - public void setUdfLanguage(String udfLanguage) { this.udfLanguage = udfLanguage; } public ArrayTask sqlQuery(String sqlQuery) { - this.sqlQuery = sqlQuery; return this; } - /** + /** * Optional actual sql query that is going to be executed * @return sqlQuery - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Optional actual sql query that is going to be executed") - public String getSqlQuery() { return sqlQuery; } - public void setSqlQuery(String sqlQuery) { this.sqlQuery = sqlQuery; } public ArrayTask type(ArrayTaskType type) { - this.type = type; return this; } - /** + /** * Get type * @return type - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public ArrayTaskType getType() { return type; } - public void setType(ArrayTaskType type) { this.type = type; } public ArrayTask activity(List activity) { - this.activity = activity; return this; } @@ -663,71 +602,59 @@ public ArrayTask addActivityItem(ArrayActivityLog activityItem) { return this; } - /** + /** * Array activity logs for task * @return activity - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Array activity logs for task") - public List getActivity() { return activity; } - public void setActivity(List activity) { this.activity = activity; } public ArrayTask logs(String logs) { - this.logs = logs; return this; } - /** + /** * logs from array task * @return logs - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "logs from array task") - public String getLogs() { return logs; } - public void setLogs(String logs) { this.logs = logs; } public ArrayTask duration(BigDecimal duration) { - this.duration = duration; return this; } - /** + /** * duration in nanoseconds of an array task * @return duration - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "3.41E+11", value = "duration in nanoseconds of an array task") - public BigDecimal getDuration() { return duration; } - public void setDuration(BigDecimal duration) { this.duration = duration; } public ArrayTask sqlInitCommands(List sqlInitCommands) { - this.sqlInitCommands = sqlInitCommands; return this; } @@ -740,25 +667,21 @@ public ArrayTask addSqlInitCommandsItem(String sqlInitCommandsItem) { return this; } - /** + /** * SQL queries or commands to run before main sql query * @return sqlInitCommands - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "SQL queries or commands to run before main sql query") - public List getSqlInitCommands() { return sqlInitCommands; } - public void setSqlInitCommands(List sqlInitCommands) { this.sqlInitCommands = sqlInitCommands; } public ArrayTask sqlParameters(List sqlParameters) { - this.sqlParameters = sqlParameters; return this; } @@ -771,91 +694,114 @@ public ArrayTask addSqlParametersItem(Object sqlParametersItem) { return this; } - /** + /** * SQL query parameters * @return sqlParameters - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "SQL query parameters") - public List getSqlParameters() { return sqlParameters; } - public void setSqlParameters(List sqlParameters) { this.sqlParameters = sqlParameters; } public ArrayTask resultFormat(ResultFormat resultFormat) { - this.resultFormat = resultFormat; return this; } - /** + /** * Get resultFormat * @return resultFormat - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public ResultFormat getResultFormat() { return resultFormat; } - public void setResultFormat(ResultFormat resultFormat) { this.resultFormat = resultFormat; } public ArrayTask taskGraphUuid(String taskGraphUuid) { - this.taskGraphUuid = taskGraphUuid; return this; } - /** + /** * If set, the ID of the log for the task graph that this was part of. * @return taskGraphUuid - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "If set, the ID of the log for the task graph that this was part of. ") - public String getTaskGraphUuid() { return taskGraphUuid; } - public void setTaskGraphUuid(String taskGraphUuid) { this.taskGraphUuid = taskGraphUuid; } public ArrayTask clientNodeUuid(String clientNodeUuid) { - this.clientNodeUuid = clientNodeUuid; return this; } - /** + /** * If set, the client-defined ID of the node within this task's graph. * @return clientNodeUuid - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "If set, the client-defined ID of the node within this task's graph. ") - public String getClientNodeUuid() { return clientNodeUuid; } - 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 + 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 + 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 @@ -866,6 +812,10 @@ public void setClientNodeUuid(String clientNodeUuid) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the ArrayTask instance itself */ public ArrayTask putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -877,6 +827,8 @@ public ArrayTask putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -884,6 +836,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -930,7 +885,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 +897,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 +940,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,25 +994,26 @@ 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(); } - /** - * 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 ArrayTask - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (ArrayTask.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ArrayTask + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!ArrayTask.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayTask is not found in the empty JSON string", ArrayTask.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); } @@ -1068,18 +1028,26 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { } // validate the optional field `array_metadata` if (jsonObj.get("array_metadata") != null && !jsonObj.get("array_metadata").isJsonNull()) { - ArrayInfo.validateJsonObject(jsonObj.getAsJsonObject("array_metadata")); + ArrayInfo.validateJsonElement(jsonObj.get("array_metadata")); } // validate the optional field `subarray` if (jsonObj.get("subarray") != null && !jsonObj.get("subarray").isJsonNull()) { - DomainArray.validateJsonObject(jsonObj.getAsJsonObject("subarray")); + DomainArray.validateJsonElement(jsonObj.get("subarray")); } 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())); } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + ArrayTaskStatus.validateJsonElement(jsonObj.get("status")); + } if ((jsonObj.get("status_message") != null && !jsonObj.get("status_message").isJsonNull()) && !jsonObj.get("status_message").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `status_message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status_message").toString())); } + // validate the optional field `query_type` + if (jsonObj.get("query_type") != null && !jsonObj.get("query_type").isJsonNull()) { + Querytype.validateJsonElement(jsonObj.get("query_type")); + } if ((jsonObj.get("udf_code") != null && !jsonObj.get("udf_code").isJsonNull()) && !jsonObj.get("udf_code").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `udf_code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("udf_code").toString())); } @@ -1089,35 +1057,51 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if ((jsonObj.get("sql_query") != null && !jsonObj.get("sql_query").isJsonNull()) && !jsonObj.get("sql_query").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `sql_query` to be a primitive type in the JSON string but got `%s`", jsonObj.get("sql_query").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 `type` + if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { + ArrayTaskType.validateJsonElement(jsonObj.get("type")); + } + if (jsonObj.get("activity") != null && !jsonObj.get("activity").isJsonNull()) { + 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++) { + ArrayActivityLog.validateJsonElement(jsonArrayactivity.get(i)); + }; } - - // validate the optional field `activity` (array) - for (int i = 0; i < jsonArrayactivity.size(); i++) { - ArrayActivityLog.validateJsonObject(jsonArrayactivity.get(i).getAsJsonObject()); - }; } if ((jsonObj.get("logs") != null && !jsonObj.get("logs").isJsonNull()) && !jsonObj.get("logs").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `logs` to be a primitive type in the JSON string but got `%s`", jsonObj.get("logs").toString())); } - // ensure the json data is an array - if ((jsonObj.get("sql_init_commands") != null && !jsonObj.get("sql_init_commands").isJsonNull()) && !jsonObj.get("sql_init_commands").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("sql_init_commands") != null && !jsonObj.get("sql_init_commands").isJsonNull() && !jsonObj.get("sql_init_commands").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `sql_init_commands` to be an array in the JSON string but got `%s`", jsonObj.get("sql_init_commands").toString())); } - // ensure the json data is an array - if ((jsonObj.get("sql_parameters") != null && !jsonObj.get("sql_parameters").isJsonNull()) && !jsonObj.get("sql_parameters").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("sql_parameters") != null && !jsonObj.get("sql_parameters").isJsonNull() && !jsonObj.get("sql_parameters").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `sql_parameters` to be an array in the JSON string but got `%s`", jsonObj.get("sql_parameters").toString())); } + // validate the optional field `result_format` + if (jsonObj.get("result_format") != null && !jsonObj.get("result_format").isJsonNull()) { + ResultFormat.validateJsonElement(jsonObj.get("result_format")); + } if ((jsonObj.get("task_graph_uuid") != null && !jsonObj.get("task_graph_uuid").isJsonNull()) && !jsonObj.get("task_graph_uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `task_graph_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("task_graph_uuid").toString())); } 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 { @@ -1136,7 +1120,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, ArrayTask value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -1148,7 +1132,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -1157,8 +1146,9 @@ else if (entry.getValue() instanceof Character) @Override public ArrayTask read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance ArrayTask instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -1172,8 +1162,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -1184,22 +1176,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ArrayTask given an JSON string - * - * @param jsonString JSON string - * @return An instance of ArrayTask - * @throws IOException if the JSON string is invalid with respect to ArrayTask - */ + /** + * Create an instance of ArrayTask given an JSON string + * + * @param jsonString JSON string + * @return An instance of ArrayTask + * @throws IOException if the JSON string is invalid with respect to ArrayTask + */ public static ArrayTask fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ArrayTask.class); } - /** - * Convert an instance of ArrayTask to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ArrayTask 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/ArrayTaskBrowserSidebar.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskBrowserSidebar.java index f4d5e3a..a05893f 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,38 +14,48 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class ArrayTaskBrowserSidebar { public static final String SERIALIZED_NAME_ORGANIZATIONS = "organizations"; @SerializedName(SERIALIZED_NAME_ORGANIZATIONS) - private List organizations = null; + private List organizations = new ArrayList<>(); public static final String SERIALIZED_NAME_RESULT_COUNT_FOR_ALL = "result_count_for_all"; @SerializedName(SERIALIZED_NAME_RESULT_COUNT_FOR_ALL) @@ -59,7 +69,6 @@ public ArrayTaskBrowserSidebar() { } public ArrayTaskBrowserSidebar organizations(List organizations) { - this.organizations = organizations; return this; } @@ -72,64 +81,53 @@ public ArrayTaskBrowserSidebar addOrganizationsItem(String organizationsItem) { return this; } - /** + /** * list of all unique organizations the user is part of that have array tasks * @return organizations - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "list of all unique organizations the user is part of that have array tasks") - public List getOrganizations() { return organizations; } - public void setOrganizations(List organizations) { this.organizations = organizations; } public ArrayTaskBrowserSidebar resultCountForAll(Integer resultCountForAll) { - this.resultCountForAll = resultCountForAll; return this; } - /** + /** * A count of \"all\" * @return resultCountForAll - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "A count of \"all\"") - public Integer getResultCountForAll() { return resultCountForAll; } - public void setResultCountForAll(Integer resultCountForAll) { this.resultCountForAll = resultCountForAll; } public ArrayTaskBrowserSidebar resultCountByNamespace(Object resultCountByNamespace) { - this.resultCountByNamespace = resultCountByNamespace; return this; } - /** + /** * A map that includes the result count by namespace * @return resultCountByNamespace - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "A map that includes the result count by namespace") - public Object getResultCountByNamespace() { return resultCountByNamespace; } - public void setResultCountByNamespace(Object resultCountByNamespace) { this.resultCountByNamespace = resultCountByNamespace; } @@ -144,6 +142,10 @@ public void setResultCountByNamespace(Object resultCountByNamespace) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the ArrayTaskBrowserSidebar instance itself */ public ArrayTaskBrowserSidebar putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -155,6 +157,8 @@ public ArrayTaskBrowserSidebar putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -162,6 +166,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -229,22 +236,21 @@ private String toIndentedString(Object o) { 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 ArrayTaskBrowserSidebar - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (ArrayTaskBrowserSidebar.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ArrayTaskBrowserSidebar + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!ArrayTaskBrowserSidebar.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayTaskBrowserSidebar is not found in the empty JSON string", ArrayTaskBrowserSidebar.openapiRequiredFields.toString())); } } - // ensure the json data is an array - if ((jsonObj.get("organizations") != null && !jsonObj.get("organizations").isJsonNull()) && !jsonObj.get("organizations").isJsonArray()) { + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("organizations") != null && !jsonObj.get("organizations").isJsonNull() && !jsonObj.get("organizations").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `organizations` to be an array in the JSON string but got `%s`", jsonObj.get("organizations").toString())); } } @@ -265,7 +271,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, ArrayTaskBrowserSidebar value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -277,7 +283,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -286,8 +297,9 @@ else if (entry.getValue() instanceof Character) @Override public ArrayTaskBrowserSidebar read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance ArrayTaskBrowserSidebar instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -301,8 +313,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -313,22 +327,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ArrayTaskBrowserSidebar given an JSON string - * - * @param jsonString JSON string - * @return An instance of ArrayTaskBrowserSidebar - * @throws IOException if the JSON string is invalid with respect to ArrayTaskBrowserSidebar - */ + /** + * Create an instance of ArrayTaskBrowserSidebar given an JSON string + * + * @param jsonString JSON string + * @return An instance of ArrayTaskBrowserSidebar + * @throws IOException if the JSON string is invalid with respect to ArrayTaskBrowserSidebar + */ public static ArrayTaskBrowserSidebar fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ArrayTaskBrowserSidebar.class); } - /** - * Convert an instance of ArrayTaskBrowserSidebar to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ArrayTaskBrowserSidebar 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/ArrayTaskData.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskData.java index da3a4b9..08c3c17 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,39 +14,50 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.ArrayTask; +import io.tiledb.cloud.rest_api.model.PaginationMetadata; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class ArrayTaskData { public static final String SERIALIZED_NAME_ARRAY_TASKS = "array_tasks"; @SerializedName(SERIALIZED_NAME_ARRAY_TASKS) - private List arrayTasks = null; + private List arrayTasks = new ArrayList<>(); public static final String SERIALIZED_NAME_PAGINATION_METADATA = "pagination_metadata"; @SerializedName(SERIALIZED_NAME_PAGINATION_METADATA) @@ -56,7 +67,6 @@ public ArrayTaskData() { } public ArrayTaskData arrayTasks(List arrayTasks) { - this.arrayTasks = arrayTasks; return this; } @@ -69,41 +79,34 @@ public ArrayTaskData addArrayTasksItem(ArrayTask arrayTasksItem) { return this; } - /** + /** * Array Tasks * @return arrayTasks - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Array Tasks") - public List getArrayTasks() { return arrayTasks; } - public void setArrayTasks(List arrayTasks) { this.arrayTasks = arrayTasks; } public ArrayTaskData 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; } @@ -118,6 +121,10 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the ArrayTaskData instance itself */ public ArrayTaskData putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -129,6 +136,8 @@ public ArrayTaskData putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -136,6 +145,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -200,35 +212,36 @@ private String toIndentedString(Object o) { 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 ArrayTaskData - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (ArrayTaskData.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ArrayTaskData + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!ArrayTaskData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayTaskData is not found in the empty JSON string", ArrayTaskData.openapiRequiredFields.toString())); } } - JsonArray jsonArrayarrayTasks = jsonObj.getAsJsonArray("array_tasks"); - if (jsonArrayarrayTasks != null) { - // ensure the json data is an array - if (!jsonObj.get("array_tasks").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `array_tasks` to be an array in the JSON string but got `%s`", jsonObj.get("array_tasks").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("array_tasks") != null && !jsonObj.get("array_tasks").isJsonNull()) { + JsonArray jsonArrayarrayTasks = jsonObj.getAsJsonArray("array_tasks"); + if (jsonArrayarrayTasks != null) { + // ensure the json data is an array + if (!jsonObj.get("array_tasks").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `array_tasks` to be an array in the JSON string but got `%s`", jsonObj.get("array_tasks").toString())); + } + + // validate the optional field `array_tasks` (array) + for (int i = 0; i < jsonArrayarrayTasks.size(); i++) { + ArrayTask.validateJsonElement(jsonArrayarrayTasks.get(i)); + }; } - - // validate the optional field `array_tasks` (array) - for (int i = 0; i < jsonArrayarrayTasks.size(); i++) { - ArrayTask.validateJsonObject(jsonArrayarrayTasks.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")); + PaginationMetadata.validateJsonElement(jsonObj.get("pagination_metadata")); } } @@ -248,7 +261,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, ArrayTaskData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -260,7 +273,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -269,8 +287,9 @@ else if (entry.getValue() instanceof Character) @Override public ArrayTaskData read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance ArrayTaskData instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -284,8 +303,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -296,22 +317,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ArrayTaskData given an JSON string - * - * @param jsonString JSON string - * @return An instance of ArrayTaskData - * @throws IOException if the JSON string is invalid with respect to ArrayTaskData - */ + /** + * Create an instance of ArrayTaskData given an JSON string + * + * @param jsonString JSON string + * @return An instance of ArrayTaskData + * @throws IOException if the JSON string is invalid with respect to ArrayTaskData + */ public static ArrayTaskData fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ArrayTaskData.class); } - /** - * Convert an instance of ArrayTaskData to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ArrayTaskData 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/ArrayTaskLog.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskLog.java index 7e26d23..5df8b37 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,32 +14,42 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.Arrays; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class ArrayTaskLog { public static final String SERIALIZED_NAME_ARRAY_TASK_ID = "array_task_id"; @SerializedName(SERIALIZED_NAME_ARRAY_TASK_ID) @@ -53,46 +63,38 @@ public ArrayTaskLog() { } public ArrayTaskLog arrayTaskId(String arrayTaskId) { - this.arrayTaskId = arrayTaskId; return this; } - /** + /** * ID of associated task * @return arrayTaskId - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "ID of associated task") - public String getArrayTaskId() { return arrayTaskId; } - public void setArrayTaskId(String arrayTaskId) { this.arrayTaskId = arrayTaskId; } public ArrayTaskLog logs(String logs) { - this.logs = logs; return this; } - /** + /** * logs from array task * @return logs - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "logs from array task") - public String getLogs() { return logs; } - public void setLogs(String logs) { this.logs = logs; } @@ -107,6 +109,10 @@ public void setLogs(String logs) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the ArrayTaskLog instance itself */ public ArrayTaskLog putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -118,6 +124,8 @@ public ArrayTaskLog putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -125,6 +133,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -189,20 +200,19 @@ private String toIndentedString(Object o) { 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 ArrayTaskLog - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (ArrayTaskLog.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ArrayTaskLog + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!ArrayTaskLog.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayTaskLog is not found in the empty JSON string", ArrayTaskLog.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("array_task_id") != null && !jsonObj.get("array_task_id").isJsonNull()) && !jsonObj.get("array_task_id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `array_task_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("array_task_id").toString())); } @@ -227,7 +237,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, ArrayTaskLog value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -239,7 +249,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -248,8 +263,9 @@ else if (entry.getValue() instanceof Character) @Override public ArrayTaskLog read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance ArrayTaskLog instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -263,8 +279,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -275,22 +293,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ArrayTaskLog given an JSON string - * - * @param jsonString JSON string - * @return An instance of ArrayTaskLog - * @throws IOException if the JSON string is invalid with respect to ArrayTaskLog - */ + /** + * Create an instance of ArrayTaskLog given an JSON string + * + * @param jsonString JSON string + * @return An instance of ArrayTaskLog + * @throws IOException if the JSON string is invalid with respect to ArrayTaskLog + */ public static ArrayTaskLog fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ArrayTaskLog.class); } - /** - * Convert an instance of ArrayTaskLog to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ArrayTaskLog 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/ArrayTaskStatus.java b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayTaskStatus.java index 4c9622b..e9d6c30 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,8 +13,12 @@ package io.tiledb.cloud.rest_api.model; +import java.util.Objects; +import com.google.gson.annotations.SerializedName; + import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -77,5 +81,10 @@ public ArrayTaskStatus read(final JsonReader jsonReader) throws IOException { return ArrayTaskStatus.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + ArrayTaskStatus.fromValue(value); + } } 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..7d9b9ff 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,8 +13,12 @@ package io.tiledb.cloud.rest_api.model; +import java.util.Objects; +import com.google.gson.annotations.SerializedName; + import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -73,5 +77,10 @@ public ArrayTaskType read(final JsonReader jsonReader) throws IOException { return ArrayTaskType.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + ArrayTaskType.fromValue(value); + } } 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..04a1a8f 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,8 +13,12 @@ package io.tiledb.cloud.rest_api.model; +import java.util.Objects; +import com.google.gson.annotations.SerializedName; + import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -65,5 +69,10 @@ public ArrayType read(final JsonReader jsonReader) throws IOException { return ArrayType.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + ArrayType.fromValue(value); + } } 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..7edd44a 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,32 +14,43 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.TileDBConfig; import java.io.IOException; +import java.util.Arrays; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class ArrayVacuumRequest { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) @@ -49,23 +60,19 @@ public ArrayVacuumRequest() { } public ArrayVacuumRequest 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; } @@ -80,6 +87,10 @@ public void setConfig(TileDBConfig config) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the ArrayVacuumRequest instance itself */ public ArrayVacuumRequest putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -91,6 +102,8 @@ public ArrayVacuumRequest putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -98,6 +111,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -159,23 +175,22 @@ private String toIndentedString(Object o) { 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 ArrayVacuumRequest - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (ArrayVacuumRequest.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ArrayVacuumRequest + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!ArrayVacuumRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayVacuumRequest is not found in the empty JSON string", ArrayVacuumRequest.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `config` if (jsonObj.get("config") != null && !jsonObj.get("config").isJsonNull()) { - TileDBConfig.validateJsonObject(jsonObj.getAsJsonObject("config")); + TileDBConfig.validateJsonElement(jsonObj.get("config")); } } @@ -195,7 +210,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, ArrayVacuumRequest value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -207,7 +222,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -216,8 +236,9 @@ else if (entry.getValue() instanceof Character) @Override public ArrayVacuumRequest read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance ArrayVacuumRequest instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -231,8 +252,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -243,22 +266,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ArrayVacuumRequest given an JSON string - * - * @param jsonString JSON string - * @return An instance of ArrayVacuumRequest - * @throws IOException if the JSON string is invalid with respect to ArrayVacuumRequest - */ + /** + * Create an instance of ArrayVacuumRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of ArrayVacuumRequest + * @throws IOException if the JSON string is invalid with respect to ArrayVacuumRequest + */ public static ArrayVacuumRequest fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ArrayVacuumRequest.class); } - /** - * Convert an instance of ArrayVacuumRequest to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ArrayVacuumRequest 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/AssetBackingType.java b/src/main/java/io/tiledb/cloud/rest_api/model/AssetBackingType.java new file mode 100644 index 0000000..245433c --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/AssetBackingType.java @@ -0,0 +1,78 @@ +/* + * 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.annotations.SerializedName; + +import java.io.IOException; +import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; +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); + } + } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + 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..51c7a7b --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/AssetInfo.java @@ -0,0 +1,553 @@ +/* + * 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.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.AssetBackingType; +import io.tiledb.cloud.rest_api.model.AssetOwnershipLevel; +import io.tiledb.cloud.rest_api.model.AssetType; +import io.tiledb.cloud.rest_api.model.MetadataStringified; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.tiledb.cloud.rest_api.JSON; + +/** + * metadata of an asset + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +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 + 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 + 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 + 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 + 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 + 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 + 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 + 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 + 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 + public OffsetDateTime getCreatedAt() { + return createdAt; + } + + + + public AssetInfo metadata(MetadataStringified metadata) { + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + */ + @javax.annotation.Nullable + 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. + * + * @param key name of the property + * @param value value of the property + * @return the AssetInfo instance itself + */ + 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. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + 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 Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to AssetInfo + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!AssetInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in AssetInfo is not found in the empty JSON string", AssetInfo.openapiRequiredFields.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + 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())); + } + // validate the optional field `asset_type` + if (jsonObj.get("asset_type") != null && !jsonObj.get("asset_type").isJsonNull()) { + AssetType.validateJsonElement(jsonObj.get("asset_type")); + } + // validate the optional field `asset_backing_type` + if (jsonObj.get("asset_backing_type") != null && !jsonObj.get("asset_backing_type").isJsonNull()) { + AssetBackingType.validateJsonElement(jsonObj.get("asset_backing_type")); + } + // validate the optional field `asset_ownership_level` + if (jsonObj.get("asset_ownership_level") != null && !jsonObj.get("asset_ownership_level").isJsonNull()) { + AssetOwnershipLevel.validateJsonElement(jsonObj.get("asset_ownership_level")); + } + 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.validateJsonElement(jsonObj.get("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 additional 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 { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public AssetInfo read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // 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 if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + 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..c5716ce --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/AssetListResponse.java @@ -0,0 +1,340 @@ +/* + * 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.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.AssetInfo; +import io.tiledb.cloud.rest_api.model.PaginationMetadata; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.tiledb.cloud.rest_api.JSON; + +/** + * Asset associated with a TileDB Cloud account + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +public class AssetListResponse { + public static final String SERIALIZED_NAME_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) + private List data = new ArrayList<>(); + + 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 + 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 + 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. + * + * @param key name of the property + * @param value value of the property + * @return the AssetListResponse instance itself + */ + 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. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + 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 Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to AssetListResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!AssetListResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in AssetListResponse is not found in the empty JSON string", AssetListResponse.openapiRequiredFields.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { + 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.validateJsonElement(jsonArraydata.get(i)); + }; + } + } + // validate the optional field `pagination_metadata` + if (jsonObj.get("pagination_metadata") != null && !jsonObj.get("pagination_metadata").isJsonNull()) { + PaginationMetadata.validateJsonElement(jsonObj.get("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 additional 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 { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public AssetListResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // 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 if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + 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..605b027 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,32 +14,43 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.StorageLocation; import java.io.IOException; +import java.util.Arrays; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class AssetLocations { public static final String SERIALIZED_NAME_ARRAYS = "arrays"; @SerializedName(SERIALIZED_NAME_ARRAYS) @@ -73,161 +84,133 @@ public AssetLocations() { } public AssetLocations arrays(StorageLocation arrays) { - this.arrays = arrays; return this; } - /** + /** * Get arrays * @return arrays - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public StorageLocation getArrays() { return arrays; } - public void setArrays(StorageLocation arrays) { this.arrays = arrays; } public AssetLocations files(StorageLocation files) { - this.files = files; return this; } - /** + /** * Get files * @return files - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public StorageLocation getFiles() { return files; } - public void setFiles(StorageLocation files) { this.files = files; } public AssetLocations groups(StorageLocation groups) { - this.groups = groups; return this; } - /** + /** * Get groups * @return groups - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public StorageLocation getGroups() { return groups; } - public void setGroups(StorageLocation groups) { this.groups = groups; } public AssetLocations mlModels(StorageLocation mlModels) { - this.mlModels = mlModels; return this; } - /** + /** * Get mlModels * @return mlModels - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public StorageLocation getMlModels() { return mlModels; } - public void setMlModels(StorageLocation mlModels) { this.mlModels = mlModels; } public AssetLocations notebooks(StorageLocation notebooks) { - this.notebooks = notebooks; return this; } - /** + /** * Get notebooks * @return notebooks - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public StorageLocation getNotebooks() { return notebooks; } - public void setNotebooks(StorageLocation notebooks) { this.notebooks = notebooks; } public AssetLocations taskGraphs(StorageLocation taskGraphs) { - this.taskGraphs = taskGraphs; return this; } - /** + /** * Get taskGraphs * @return taskGraphs - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public StorageLocation getTaskGraphs() { return taskGraphs; } - public void setTaskGraphs(StorageLocation taskGraphs) { this.taskGraphs = taskGraphs; } public AssetLocations udfs(StorageLocation udfs) { - this.udfs = udfs; return this; } - /** + /** * Get udfs * @return udfs - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public StorageLocation getUdfs() { return udfs; } - public void setUdfs(StorageLocation udfs) { this.udfs = udfs; } @@ -242,6 +225,10 @@ public void setUdfs(StorageLocation udfs) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the AssetLocations instance itself */ public AssetLocations putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -253,6 +240,8 @@ public AssetLocations putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -260,6 +249,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -339,47 +331,46 @@ private String toIndentedString(Object o) { 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 AssetLocations - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (AssetLocations.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to AssetLocations + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!AssetLocations.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in AssetLocations is not found in the empty JSON string", AssetLocations.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `arrays` if (jsonObj.get("arrays") != null && !jsonObj.get("arrays").isJsonNull()) { - StorageLocation.validateJsonObject(jsonObj.getAsJsonObject("arrays")); + StorageLocation.validateJsonElement(jsonObj.get("arrays")); } // validate the optional field `files` if (jsonObj.get("files") != null && !jsonObj.get("files").isJsonNull()) { - StorageLocation.validateJsonObject(jsonObj.getAsJsonObject("files")); + StorageLocation.validateJsonElement(jsonObj.get("files")); } // validate the optional field `groups` if (jsonObj.get("groups") != null && !jsonObj.get("groups").isJsonNull()) { - StorageLocation.validateJsonObject(jsonObj.getAsJsonObject("groups")); + StorageLocation.validateJsonElement(jsonObj.get("groups")); } // validate the optional field `ml_models` if (jsonObj.get("ml_models") != null && !jsonObj.get("ml_models").isJsonNull()) { - StorageLocation.validateJsonObject(jsonObj.getAsJsonObject("ml_models")); + StorageLocation.validateJsonElement(jsonObj.get("ml_models")); } // validate the optional field `notebooks` if (jsonObj.get("notebooks") != null && !jsonObj.get("notebooks").isJsonNull()) { - StorageLocation.validateJsonObject(jsonObj.getAsJsonObject("notebooks")); + StorageLocation.validateJsonElement(jsonObj.get("notebooks")); } // validate the optional field `task_graphs` if (jsonObj.get("task_graphs") != null && !jsonObj.get("task_graphs").isJsonNull()) { - StorageLocation.validateJsonObject(jsonObj.getAsJsonObject("task_graphs")); + StorageLocation.validateJsonElement(jsonObj.get("task_graphs")); } // validate the optional field `udfs` if (jsonObj.get("udfs") != null && !jsonObj.get("udfs").isJsonNull()) { - StorageLocation.validateJsonObject(jsonObj.getAsJsonObject("udfs")); + StorageLocation.validateJsonElement(jsonObj.get("udfs")); } } @@ -399,7 +390,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, AssetLocations value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -411,7 +402,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -420,8 +416,9 @@ else if (entry.getValue() instanceof Character) @Override public AssetLocations read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance AssetLocations instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -435,8 +432,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -447,22 +446,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of AssetLocations given an JSON string - * - * @param jsonString JSON string - * @return An instance of AssetLocations - * @throws IOException if the JSON string is invalid with respect to AssetLocations - */ + /** + * Create an instance of AssetLocations given an JSON string + * + * @param jsonString JSON string + * @return An instance of AssetLocations + * @throws IOException if the JSON string is invalid with respect to AssetLocations + */ public static AssetLocations fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, AssetLocations.class); } - /** - * Convert an instance of AssetLocations to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of AssetLocations 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/AssetOwnershipLevel.java b/src/main/java/io/tiledb/cloud/rest_api/model/AssetOwnershipLevel.java new file mode 100644 index 0000000..aa10541 --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/AssetOwnershipLevel.java @@ -0,0 +1,78 @@ +/* + * 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.annotations.SerializedName; + +import java.io.IOException; +import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; +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); + } + } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + 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..b61544d 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,8 +13,12 @@ package io.tiledb.cloud.rest_api.model; +import java.util.Objects; +import com.google.gson.annotations.SerializedName; + import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -91,5 +95,10 @@ public AssetType read(final JsonReader jsonReader) throws IOException { return AssetType.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + AssetType.fromValue(value); + } } 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..e249794 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,34 +14,46 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.Datatype; +import io.tiledb.cloud.rest_api.model.FilterPipeline; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class Attribute { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -65,128 +77,107 @@ public class Attribute { public static final String SERIALIZED_NAME_FILL_VALUE = "fillValue"; @SerializedName(SERIALIZED_NAME_FILL_VALUE) - private List fillValue = null; + private List fillValue = new ArrayList<>(); public Attribute() { } public Attribute name(String name) { - this.name = name; return this; } - /** + /** * Attribute name * @return name - **/ + */ @javax.annotation.Nonnull - @ApiModelProperty(example = "attribute1", required = true, value = "Attribute name") - public String getName() { return name; } - public void setName(String name) { this.name = name; } public Attribute type(Datatype type) { - this.type = type; return this; } - /** + /** * Get type * @return type - **/ + */ @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") - public Datatype getType() { return type; } - public void setType(Datatype type) { this.type = type; } public Attribute filterPipeline(FilterPipeline filterPipeline) { - this.filterPipeline = filterPipeline; return this; } - /** + /** * Get filterPipeline * @return filterPipeline - **/ + */ @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") - public FilterPipeline getFilterPipeline() { return filterPipeline; } - public void setFilterPipeline(FilterPipeline filterPipeline) { this.filterPipeline = filterPipeline; } public Attribute cellValNum(Integer cellValNum) { - this.cellValNum = cellValNum; return this; } - /** + /** * Attribute number of values per cell * @return cellValNum - **/ + */ @javax.annotation.Nonnull - @ApiModelProperty(example = "1", required = true, value = "Attribute number of values per cell") - public Integer getCellValNum() { return cellValNum; } - public void setCellValNum(Integer cellValNum) { this.cellValNum = cellValNum; } public Attribute nullable(Boolean nullable) { - this.nullable = nullable; return this; } - /** + /** * Is attribute nullable * @return nullable - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "true", value = "Is attribute nullable") - public Boolean getNullable() { return nullable; } - public void setNullable(Boolean nullable) { this.nullable = nullable; } public Attribute fillValue(List fillValue) { - this.fillValue = fillValue; return this; } @@ -199,18 +190,15 @@ public Attribute addFillValueItem(Integer fillValueItem) { return this; } - /** + /** * The default fill value * @return fillValue - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The default fill value") - public List getFillValue() { return fillValue; } - public void setFillValue(List fillValue) { this.fillValue = fillValue; } @@ -225,6 +213,10 @@ public void setFillValue(List fillValue) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the Attribute instance itself */ public Attribute putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -236,6 +228,8 @@ public Attribute putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -243,6 +237,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -323,36 +320,35 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("cellValNum"); } - /** - * 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 Attribute - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (Attribute.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to Attribute + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!Attribute.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in Attribute is not found in the empty JSON string", Attribute.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : Attribute.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 (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } - // validate the optional field `filterPipeline` - if (jsonObj.get("filterPipeline") != null && !jsonObj.get("filterPipeline").isJsonNull()) { - FilterPipeline.validateJsonObject(jsonObj.getAsJsonObject("filterPipeline")); - } - // ensure the json data is an array - if ((jsonObj.get("fillValue") != null && !jsonObj.get("fillValue").isJsonNull()) && !jsonObj.get("fillValue").isJsonArray()) { + // validate the required field `type` + Datatype.validateJsonElement(jsonObj.get("type")); + // validate the required field `filterPipeline` + FilterPipeline.validateJsonElement(jsonObj.get("filterPipeline")); + // ensure the optional json data is an array if present + if (jsonObj.get("fillValue") != null && !jsonObj.get("fillValue").isJsonNull() && !jsonObj.get("fillValue").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `fillValue` to be an array in the JSON string but got `%s`", jsonObj.get("fillValue").toString())); } } @@ -373,7 +369,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, Attribute value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -385,7 +381,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -394,8 +395,9 @@ else if (entry.getValue() instanceof Character) @Override public Attribute read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance Attribute instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -409,8 +411,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -421,22 +425,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of Attribute given an JSON string - * - * @param jsonString JSON string - * @return An instance of Attribute - * @throws IOException if the JSON string is invalid with respect to Attribute - */ + /** + * Create an instance of Attribute given an JSON string + * + * @param jsonString JSON string + * @return An instance of Attribute + * @throws IOException if the JSON string is invalid with respect to Attribute + */ public static Attribute fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, Attribute.class); } - /** - * Convert an instance of Attribute to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of Attribute 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/AttributeBufferHeader.java b/src/main/java/io/tiledb/cloud/rest_api/model/AttributeBufferHeader.java index 796d0cf..9925c98 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,32 +14,42 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.Arrays; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class AttributeBufferHeader { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -57,69 +67,57 @@ public AttributeBufferHeader() { } public AttributeBufferHeader name(String name) { - this.name = name; return this; } - /** + /** * Attribute name * @return name - **/ + */ @javax.annotation.Nonnull - @ApiModelProperty(example = "attribute1", required = true, value = "Attribute name") - public String getName() { return name; } - public void setName(String name) { this.name = name; } public AttributeBufferHeader fixedLenBufferSizeInBytes(Integer fixedLenBufferSizeInBytes) { - this.fixedLenBufferSizeInBytes = fixedLenBufferSizeInBytes; return this; } - /** + /** * Number of bytes in the fixed-length attribute data buffer (offsets for var-len attributes) * @return fixedLenBufferSizeInBytes - **/ + */ @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "Number of bytes in the fixed-length attribute data buffer (offsets for var-len attributes)") - public Integer getFixedLenBufferSizeInBytes() { return fixedLenBufferSizeInBytes; } - public void setFixedLenBufferSizeInBytes(Integer fixedLenBufferSizeInBytes) { this.fixedLenBufferSizeInBytes = fixedLenBufferSizeInBytes; } public AttributeBufferHeader varLenBufferSizeInBytes(Integer varLenBufferSizeInBytes) { - this.varLenBufferSizeInBytes = varLenBufferSizeInBytes; return this; } - /** + /** * Number of bytes in the var-length attribute data buffer * @return varLenBufferSizeInBytes - **/ + */ @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "Number of bytes in the var-length attribute data buffer") - public Integer getVarLenBufferSizeInBytes() { return varLenBufferSizeInBytes; } - public void setVarLenBufferSizeInBytes(Integer varLenBufferSizeInBytes) { this.varLenBufferSizeInBytes = varLenBufferSizeInBytes; } @@ -134,6 +132,10 @@ public void setVarLenBufferSizeInBytes(Integer varLenBufferSizeInBytes) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the AttributeBufferHeader instance itself */ public AttributeBufferHeader putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -145,6 +147,8 @@ public AttributeBufferHeader putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -152,6 +156,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -222,28 +229,27 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("varLenBufferSizeInBytes"); } - /** - * 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 AttributeBufferHeader - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (AttributeBufferHeader.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to AttributeBufferHeader + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!AttributeBufferHeader.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in AttributeBufferHeader is not found in the empty JSON string", AttributeBufferHeader.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : AttributeBufferHeader.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 (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } } @@ -264,7 +270,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, AttributeBufferHeader value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -276,7 +282,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -285,8 +296,9 @@ else if (entry.getValue() instanceof Character) @Override public AttributeBufferHeader read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance AttributeBufferHeader instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -300,8 +312,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -312,22 +326,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of AttributeBufferHeader given an JSON string - * - * @param jsonString JSON string - * @return An instance of AttributeBufferHeader - * @throws IOException if the JSON string is invalid with respect to AttributeBufferHeader - */ + /** + * Create an instance of AttributeBufferHeader given an JSON string + * + * @param jsonString JSON string + * @return An instance of AttributeBufferHeader + * @throws IOException if the JSON string is invalid with respect to AttributeBufferHeader + */ public static AttributeBufferHeader fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, AttributeBufferHeader.class); } - /** - * Convert an instance of AttributeBufferHeader to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of AttributeBufferHeader 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/AttributeBufferSize.java b/src/main/java/io/tiledb/cloud/rest_api/model/AttributeBufferSize.java index df7d41f..7e6a707 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,32 +14,42 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.Arrays; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class AttributeBufferSize { public static final String SERIALIZED_NAME_ATTRIBUTE = "attribute"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE) @@ -57,69 +67,57 @@ public AttributeBufferSize() { } public AttributeBufferSize attribute(String attribute) { - this.attribute = attribute; return this; } - /** + /** * name of attribute * @return attribute - **/ + */ @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "name of attribute") - public String getAttribute() { return attribute; } - public void setAttribute(String attribute) { this.attribute = attribute; } public AttributeBufferSize offsetBytes(Integer offsetBytes) { - this.offsetBytes = offsetBytes; return this; } - /** + /** * buffer size (in bytes) of offset buffer * @return offsetBytes - **/ + */ @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "buffer size (in bytes) of offset buffer") - public Integer getOffsetBytes() { return offsetBytes; } - public void setOffsetBytes(Integer offsetBytes) { this.offsetBytes = offsetBytes; } public AttributeBufferSize dataBytes(Integer dataBytes) { - this.dataBytes = dataBytes; return this; } - /** + /** * buffer size (in bytes) of data buffer * @return dataBytes - **/ + */ @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "buffer size (in bytes) of data buffer") - public Integer getDataBytes() { return dataBytes; } - public void setDataBytes(Integer dataBytes) { this.dataBytes = dataBytes; } @@ -134,6 +132,10 @@ public void setDataBytes(Integer dataBytes) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the AttributeBufferSize instance itself */ public AttributeBufferSize putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -145,6 +147,8 @@ public AttributeBufferSize putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -152,6 +156,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -222,28 +229,27 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("dataBytes"); } - /** - * 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 AttributeBufferSize - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (AttributeBufferSize.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to AttributeBufferSize + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!AttributeBufferSize.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in AttributeBufferSize is not found in the empty JSON string", AttributeBufferSize.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : AttributeBufferSize.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 (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } - if ((jsonObj.get("attribute") != null && !jsonObj.get("attribute").isJsonNull()) && !jsonObj.get("attribute").isJsonPrimitive()) { + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("attribute").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `attribute` to be a primitive type in the JSON string but got `%s`", jsonObj.get("attribute").toString())); } } @@ -264,7 +270,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, AttributeBufferSize value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -276,7 +282,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -285,8 +296,9 @@ else if (entry.getValue() instanceof Character) @Override public AttributeBufferSize read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance AttributeBufferSize instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -300,8 +312,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -312,22 +326,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of AttributeBufferSize given an JSON string - * - * @param jsonString JSON string - * @return An instance of AttributeBufferSize - * @throws IOException if the JSON string is invalid with respect to AttributeBufferSize - */ + /** + * Create an instance of AttributeBufferSize given an JSON string + * + * @param jsonString JSON string + * @return An instance of AttributeBufferSize + * @throws IOException if the JSON string is invalid with respect to AttributeBufferSize + */ public static AttributeBufferSize fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, AttributeBufferSize.class); } - /** - * Convert an instance of AttributeBufferSize to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of AttributeBufferSize 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/Backoff.java b/src/main/java/io/tiledb/cloud/rest_api/model/Backoff.java index b479999..6b8bfde 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,32 +14,42 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.Arrays; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class Backoff { public static final String SERIALIZED_NAME_DURATION = "duration"; @SerializedName(SERIALIZED_NAME_DURATION) @@ -57,69 +67,57 @@ public Backoff() { } public Backoff duration(String duration) { - this.duration = duration; return this; } - /** + /** * Duration is the amount to back off. Default unit is seconds, but could also be a duration (e.g. \"2m\", \"1h\") * @return duration - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Duration is the amount to back off. Default unit is seconds, but could also be a duration (e.g. \"2m\", \"1h\")") - public String getDuration() { return duration; } - public void setDuration(String duration) { this.duration = duration; } public Backoff factor(Integer factor) { - this.factor = factor; return this; } - /** + /** * Factor is a factor to multiply the base duration after each failed retry * @return factor - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Factor is a factor to multiply the base duration after each failed retry") - public Integer getFactor() { return factor; } - public void setFactor(Integer factor) { this.factor = factor; } public Backoff maxDuration(String maxDuration) { - this.maxDuration = maxDuration; return this; } - /** + /** * MaxDuration is the maximum amount of time allowed for the backoff strategy * @return maxDuration - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "MaxDuration is the maximum amount of time allowed for the backoff strategy") - public String getMaxDuration() { return maxDuration; } - public void setMaxDuration(String maxDuration) { this.maxDuration = maxDuration; } @@ -134,6 +132,10 @@ public void setMaxDuration(String maxDuration) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the Backoff instance itself */ public Backoff putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -145,6 +147,8 @@ public Backoff putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -152,6 +156,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -219,20 +226,19 @@ private String toIndentedString(Object o) { 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 Backoff - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (Backoff.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to Backoff + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!Backoff.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in Backoff is not found in the empty JSON string", Backoff.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("duration") != null && !jsonObj.get("duration").isJsonNull()) && !jsonObj.get("duration").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `duration` to be a primitive type in the JSON string but got `%s`", jsonObj.get("duration").toString())); } @@ -257,7 +263,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, Backoff value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -269,7 +275,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -278,8 +289,9 @@ else if (entry.getValue() instanceof Character) @Override public Backoff read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance Backoff instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -293,8 +305,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -305,22 +319,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of Backoff given an JSON string - * - * @param jsonString JSON string - * @return An instance of Backoff - * @throws IOException if the JSON string is invalid with respect to Backoff - */ + /** + * Create an instance of Backoff given an JSON string + * + * @param jsonString JSON string + * @return An instance of Backoff + * @throws IOException if the JSON string is invalid with respect to Backoff + */ public static Backoff fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, Backoff.class); } - /** - * Convert an instance of Backoff to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of Backoff 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..d42cf16 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,8 +13,12 @@ package io.tiledb.cloud.rest_api.model; +import java.util.Objects; +import com.google.gson.annotations.SerializedName; + import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -58,54 +62,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; @@ -143,5 +149,10 @@ public Datatype read(final JsonReader jsonReader) throws IOException { return Datatype.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + Datatype.fromValue(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..4f8347b 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,32 +14,46 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.Datatype; +import io.tiledb.cloud.rest_api.model.DimensionTileExtent; +import io.tiledb.cloud.rest_api.model.DomainArray; +import io.tiledb.cloud.rest_api.model.FilterPipeline; import java.io.IOException; +import java.util.Arrays; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class Dimension { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -69,138 +83,114 @@ public Dimension() { } public Dimension name(String name) { - this.name = name; return this; } - /** + /** * Dimension name * @return name - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "row", value = "Dimension name") - public String getName() { return name; } - public void setName(String name) { this.name = name; } public Dimension type(Datatype type) { - this.type = type; return this; } - /** + /** * Get type * @return type - **/ + */ @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") - public Datatype getType() { return type; } - public void setType(Datatype type) { this.type = type; } public Dimension domain(DomainArray domain) { - this.domain = domain; return this; } - /** + /** * Get domain * @return domain - **/ + */ @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") - public DomainArray getDomain() { return domain; } - public void setDomain(DomainArray domain) { this.domain = domain; } public Dimension nullTileExtent(Boolean nullTileExtent) { - this.nullTileExtent = nullTileExtent; return this; } - /** + /** * Is tile extent null * @return nullTileExtent - **/ + */ @javax.annotation.Nonnull - @ApiModelProperty(example = "true", required = true, value = "Is tile extent null") - public Boolean getNullTileExtent() { return nullTileExtent; } - public void setNullTileExtent(Boolean nullTileExtent) { this.nullTileExtent = nullTileExtent; } public Dimension tileExtent(DimensionTileExtent tileExtent) { - this.tileExtent = tileExtent; return this; } - /** + /** * Get tileExtent * @return tileExtent - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public DimensionTileExtent getTileExtent() { return tileExtent; } - public void setTileExtent(DimensionTileExtent tileExtent) { this.tileExtent = tileExtent; } public Dimension filterPipeline(FilterPipeline filterPipeline) { - this.filterPipeline = filterPipeline; return this; } - /** + /** * Get filterPipeline * @return filterPipeline - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public FilterPipeline getFilterPipeline() { return filterPipeline; } - public void setFilterPipeline(FilterPipeline filterPipeline) { this.filterPipeline = filterPipeline; } @@ -215,6 +205,10 @@ public void setFilterPipeline(FilterPipeline filterPipeline) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the Dimension instance itself */ public Dimension putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -226,6 +220,8 @@ public Dimension putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -233,6 +229,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -312,41 +311,40 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("nullTileExtent"); } - /** - * 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 Dimension - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (Dimension.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to Dimension + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!Dimension.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in Dimension is not found in the empty JSON string", Dimension.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : Dimension.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 (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("name") != 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())); } - // validate the optional field `domain` - if (jsonObj.get("domain") != null && !jsonObj.get("domain").isJsonNull()) { - DomainArray.validateJsonObject(jsonObj.getAsJsonObject("domain")); - } + // validate the required field `type` + Datatype.validateJsonElement(jsonObj.get("type")); + // validate the required field `domain` + DomainArray.validateJsonElement(jsonObj.get("domain")); // validate the optional field `tileExtent` if (jsonObj.get("tileExtent") != null && !jsonObj.get("tileExtent").isJsonNull()) { - DimensionTileExtent.validateJsonObject(jsonObj.getAsJsonObject("tileExtent")); + DimensionTileExtent.validateJsonElement(jsonObj.get("tileExtent")); } // validate the optional field `filterPipeline` if (jsonObj.get("filterPipeline") != null && !jsonObj.get("filterPipeline").isJsonNull()) { - FilterPipeline.validateJsonObject(jsonObj.getAsJsonObject("filterPipeline")); + FilterPipeline.validateJsonElement(jsonObj.get("filterPipeline")); } } @@ -366,7 +364,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, Dimension value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -378,7 +376,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -387,8 +390,9 @@ else if (entry.getValue() instanceof Character) @Override public Dimension read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance Dimension instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -402,8 +406,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -414,22 +420,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of Dimension given an JSON string - * - * @param jsonString JSON string - * @return An instance of Dimension - * @throws IOException if the JSON string is invalid with respect to Dimension - */ + /** + * Create an instance of Dimension given an JSON string + * + * @param jsonString JSON string + * @return An instance of Dimension + * @throws IOException if the JSON string is invalid with respect to Dimension + */ public static Dimension fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, Dimension.class); } - /** - * Convert an instance of Dimension to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of Dimension 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/DimensionCoordinate.java b/src/main/java/io/tiledb/cloud/rest_api/model/DimensionCoordinate.java index 7011bd1..51f82f1 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,32 +14,42 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.Arrays; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class DimensionCoordinate { public static final String SERIALIZED_NAME_INT8 = "int8"; @SerializedName(SERIALIZED_NAME_INT8) @@ -85,230 +95,190 @@ public DimensionCoordinate() { } public DimensionCoordinate int8(Integer int8) { - this.int8 = int8; return this; } - /** + /** * Get int8 * @return int8 - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public Integer getInt8() { return int8; } - public void setInt8(Integer int8) { this.int8 = int8; } public DimensionCoordinate uint8(Integer uint8) { - this.uint8 = uint8; return this; } - /** + /** * Get uint8 * @return uint8 - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public Integer getUint8() { return uint8; } - public void setUint8(Integer uint8) { this.uint8 = uint8; } public DimensionCoordinate int16(Integer int16) { - this.int16 = int16; return this; } - /** + /** * Get int16 * @return int16 - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public Integer getInt16() { return int16; } - public void setInt16(Integer int16) { this.int16 = int16; } public DimensionCoordinate uint16(Integer uint16) { - this.uint16 = uint16; return this; } - /** + /** * Get uint16 * @return uint16 - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public Integer getUint16() { return uint16; } - public void setUint16(Integer uint16) { this.uint16 = uint16; } public DimensionCoordinate int32(Integer int32) { - this.int32 = int32; return this; } - /** + /** * Get int32 * @return int32 - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public Integer getInt32() { return int32; } - public void setInt32(Integer int32) { this.int32 = int32; } public DimensionCoordinate uint32(Integer uint32) { - this.uint32 = uint32; return this; } - /** + /** * Get uint32 * @return uint32 - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public Integer getUint32() { return uint32; } - public void setUint32(Integer uint32) { this.uint32 = uint32; } public DimensionCoordinate int64(Long int64) { - this.int64 = int64; return this; } - /** + /** * Get int64 * @return int64 - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public Long getInt64() { return int64; } - public void setInt64(Long int64) { this.int64 = int64; } public DimensionCoordinate uint64(Integer uint64) { - this.uint64 = uint64; return this; } - /** + /** * Get uint64 * @return uint64 - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public Integer getUint64() { return uint64; } - public void setUint64(Integer uint64) { this.uint64 = uint64; } public DimensionCoordinate float32(Float float32) { - this.float32 = float32; return this; } - /** + /** * Get float32 * @return float32 - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public Float getFloat32() { return float32; } - public void setFloat32(Float float32) { this.float32 = float32; } public DimensionCoordinate float64(Double float64) { - this.float64 = float64; return this; } - /** + /** * Get float64 * @return float64 - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public Double getFloat64() { return float64; } - public void setFloat64(Double float64) { this.float64 = float64; } @@ -323,6 +293,10 @@ public void setFloat64(Double float64) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the DimensionCoordinate instance itself */ public DimensionCoordinate putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -334,6 +308,8 @@ public DimensionCoordinate putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -341,6 +317,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -429,20 +408,19 @@ private String toIndentedString(Object o) { 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 DimensionCoordinate - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (DimensionCoordinate.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to DimensionCoordinate + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!DimensionCoordinate.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in DimensionCoordinate is not found in the empty JSON string", DimensionCoordinate.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -461,7 +439,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, DimensionCoordinate value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -473,7 +451,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -482,8 +465,9 @@ else if (entry.getValue() instanceof Character) @Override public DimensionCoordinate read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance DimensionCoordinate instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -497,8 +481,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -509,22 +495,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of DimensionCoordinate given an JSON string - * - * @param jsonString JSON string - * @return An instance of DimensionCoordinate - * @throws IOException if the JSON string is invalid with respect to DimensionCoordinate - */ + /** + * Create an instance of DimensionCoordinate given an JSON string + * + * @param jsonString JSON string + * @return An instance of DimensionCoordinate + * @throws IOException if the JSON string is invalid with respect to DimensionCoordinate + */ public static DimensionCoordinate fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, DimensionCoordinate.class); } - /** - * Convert an instance of DimensionCoordinate to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of DimensionCoordinate 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/DimensionTileExtent.java b/src/main/java/io/tiledb/cloud/rest_api/model/DimensionTileExtent.java index d2380df..f914e42 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,33 +14,42 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.Arrays; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class DimensionTileExtent { public static final String SERIALIZED_NAME_INT8 = "int8"; @SerializedName(SERIALIZED_NAME_INT8) @@ -86,230 +95,190 @@ public DimensionTileExtent() { } public DimensionTileExtent int8(Integer int8) { - this.int8 = int8; return this; } - /** + /** * Get int8 * @return int8 - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public Integer getInt8() { return int8; } - public void setInt8(Integer int8) { this.int8 = int8; } public DimensionTileExtent uint8(Integer uint8) { - this.uint8 = uint8; return this; } - /** + /** * Get uint8 * @return uint8 - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public Integer getUint8() { return uint8; } - public void setUint8(Integer uint8) { this.uint8 = uint8; } public DimensionTileExtent int16(Integer int16) { - this.int16 = int16; return this; } - /** + /** * Get int16 * @return int16 - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public Integer getInt16() { return int16; } - public void setInt16(Integer int16) { this.int16 = int16; } public DimensionTileExtent uint16(Integer uint16) { - this.uint16 = uint16; return this; } - /** + /** * Get uint16 * @return uint16 - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public Integer getUint16() { return uint16; } - public void setUint16(Integer uint16) { this.uint16 = uint16; } public DimensionTileExtent int32(Integer int32) { - this.int32 = int32; return this; } - /** + /** * Get int32 * @return int32 - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public Integer getInt32() { return int32; } - public void setInt32(Integer int32) { this.int32 = int32; } public DimensionTileExtent uint32(Integer uint32) { - this.uint32 = uint32; return this; } - /** + /** * Get uint32 * @return uint32 - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public Integer getUint32() { return uint32; } - public void setUint32(Integer uint32) { this.uint32 = uint32; } public DimensionTileExtent int64(Long int64) { - this.int64 = int64; return this; } - /** + /** * Get int64 * @return int64 - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public Long getInt64() { return int64; } - public void setInt64(Long int64) { this.int64 = int64; } public DimensionTileExtent uint64(Integer uint64) { - this.uint64 = uint64; return this; } - /** + /** * Get uint64 * @return uint64 - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public Integer getUint64() { return uint64; } - public void setUint64(Integer uint64) { this.uint64 = uint64; } public DimensionTileExtent float32(Integer float32) { - this.float32 = float32; return this; } - /** + /** * Get float32 * @return float32 - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public Integer getFloat32() { return float32; } - public void setFloat32(Integer float32) { this.float32 = float32; } public DimensionTileExtent float64(Integer float64) { - this.float64 = float64; return this; } - /** + /** * Get float64 * @return float64 - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public Integer getFloat64() { return float64; } - public void setFloat64(Integer float64) { this.float64 = float64; } @@ -324,6 +293,10 @@ public void setFloat64(Integer float64) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the DimensionTileExtent instance itself */ public DimensionTileExtent putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -335,6 +308,8 @@ public DimensionTileExtent putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -342,6 +317,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -430,20 +408,19 @@ private String toIndentedString(Object o) { 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 DimensionTileExtent - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (DimensionTileExtent.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to DimensionTileExtent + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!DimensionTileExtent.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in DimensionTileExtent is not found in the empty JSON string", DimensionTileExtent.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -462,7 +439,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, DimensionTileExtent value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -474,7 +451,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -483,8 +465,9 @@ else if (entry.getValue() instanceof Character) @Override public DimensionTileExtent read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance DimensionTileExtent instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -498,8 +481,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -510,22 +495,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of DimensionTileExtent given an JSON string - * - * @param jsonString JSON string - * @return An instance of DimensionTileExtent - * @throws IOException if the JSON string is invalid with respect to DimensionTileExtent - */ + /** + * Create an instance of DimensionTileExtent given an JSON string + * + * @param jsonString JSON string + * @return An instance of DimensionTileExtent + * @throws IOException if the JSON string is invalid with respect to DimensionTileExtent + */ public static DimensionTileExtent fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, DimensionTileExtent.class); } - /** - * Convert an instance of DimensionTileExtent to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of DimensionTileExtent 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/Domain.java b/src/main/java/io/tiledb/cloud/rest_api/model/Domain.java index d6b6a15..63e86c9 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,35 +14,47 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.Datatype; +import io.tiledb.cloud.rest_api.model.Dimension; +import io.tiledb.cloud.rest_api.model.Layout; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class Domain { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -64,97 +76,84 @@ public Domain() { } public Domain type(Datatype type) { - this.type = type; return this; } - /** + /** * Get type * @return type - **/ + */ @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") - public Datatype getType() { return type; } - public void setType(Datatype type) { this.type = type; } public Domain tileOrder(Layout tileOrder) { - this.tileOrder = tileOrder; return this; } - /** + /** * Get tileOrder * @return tileOrder - **/ + */ @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") - public Layout getTileOrder() { return tileOrder; } - public void setTileOrder(Layout tileOrder) { this.tileOrder = tileOrder; } public Domain cellOrder(Layout cellOrder) { - this.cellOrder = cellOrder; return this; } - /** + /** * Get cellOrder * @return cellOrder - **/ + */ @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") - public Layout getCellOrder() { return cellOrder; } - public void setCellOrder(Layout cellOrder) { this.cellOrder = cellOrder; } public Domain dimensions(List dimensions) { - this.dimensions = dimensions; return this; } public Domain addDimensionsItem(Dimension dimensionsItem) { + if (this.dimensions == null) { + this.dimensions = new ArrayList<>(); + } this.dimensions.add(dimensionsItem); return this; } - /** + /** * Array of dimensions * @return dimensions - **/ + */ @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "Array of dimensions") - public List getDimensions() { return dimensions; } - public void setDimensions(List dimensions) { this.dimensions = dimensions; } @@ -169,6 +168,10 @@ public void setDimensions(List dimensions) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the Domain instance itself */ public Domain putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -180,6 +183,8 @@ public Domain putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -187,6 +192,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -261,39 +269,42 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("dimensions"); } - /** - * 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 Domain - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (Domain.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to Domain + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!Domain.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in Domain is not found in the empty JSON string", Domain.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : Domain.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 (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } - JsonArray jsonArraydimensions = jsonObj.getAsJsonArray("dimensions"); - if (jsonArraydimensions != null) { - // ensure the json data is an array - if (!jsonObj.get("dimensions").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `dimensions` to be an array in the JSON string but got `%s`", jsonObj.get("dimensions").toString())); - } - - // validate the optional field `dimensions` (array) - for (int i = 0; i < jsonArraydimensions.size(); i++) { - Dimension.validateJsonObject(jsonArraydimensions.get(i).getAsJsonObject()); - }; + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `type` + Datatype.validateJsonElement(jsonObj.get("type")); + // validate the required field `tileOrder` + Layout.validateJsonElement(jsonObj.get("tileOrder")); + // validate the required field `cellOrder` + Layout.validateJsonElement(jsonObj.get("cellOrder")); + // ensure the json data is an array + if (!jsonObj.get("dimensions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `dimensions` to be an array in the JSON string but got `%s`", jsonObj.get("dimensions").toString())); } + + JsonArray jsonArraydimensions = jsonObj.getAsJsonArray("dimensions"); + // validate the required field `dimensions` (array) + for (int i = 0; i < jsonArraydimensions.size(); i++) { + Dimension.validateJsonElement(jsonArraydimensions.get(i)); + }; } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -312,7 +323,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, Domain value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -324,7 +335,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -333,8 +349,9 @@ else if (entry.getValue() instanceof Character) @Override public Domain read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance Domain instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -348,8 +365,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -360,22 +379,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of Domain given an JSON string - * - * @param jsonString JSON string - * @return An instance of Domain - * @throws IOException if the JSON string is invalid with respect to Domain - */ + /** + * Create an instance of Domain given an JSON string + * + * @param jsonString JSON string + * @return An instance of Domain + * @throws IOException if the JSON string is invalid with respect to Domain + */ public static Domain fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, Domain.class); } - /** - * Convert an instance of Domain to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of Domain 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/DomainArray.java b/src/main/java/io/tiledb/cloud/rest_api/model/DomainArray.java index 864474a..c2d311f 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,80 +14,89 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class DomainArray { public static final String SERIALIZED_NAME_INT8 = "int8"; @SerializedName(SERIALIZED_NAME_INT8) - private List int8 = null; + private List int8 = new ArrayList<>(); public static final String SERIALIZED_NAME_UINT8 = "uint8"; @SerializedName(SERIALIZED_NAME_UINT8) - private List uint8 = null; + private List uint8 = new ArrayList<>(); public static final String SERIALIZED_NAME_INT16 = "int16"; @SerializedName(SERIALIZED_NAME_INT16) - private List int16 = null; + private List int16 = new ArrayList<>(); public static final String SERIALIZED_NAME_UINT16 = "uint16"; @SerializedName(SERIALIZED_NAME_UINT16) - private List uint16 = null; + private List uint16 = new ArrayList<>(); public static final String SERIALIZED_NAME_INT32 = "int32"; @SerializedName(SERIALIZED_NAME_INT32) - private List int32 = null; + private List int32 = new ArrayList<>(); public static final String SERIALIZED_NAME_UINT32 = "uint32"; @SerializedName(SERIALIZED_NAME_UINT32) - private List uint32 = null; + private List uint32 = new ArrayList<>(); public static final String SERIALIZED_NAME_INT64 = "int64"; @SerializedName(SERIALIZED_NAME_INT64) - private List int64 = null; + private List int64 = new ArrayList<>(); public static final String SERIALIZED_NAME_UINT64 = "uint64"; @SerializedName(SERIALIZED_NAME_UINT64) - private List uint64 = null; + private List uint64 = new ArrayList<>(); public static final String SERIALIZED_NAME_FLOAT32 = "float32"; @SerializedName(SERIALIZED_NAME_FLOAT32) - private List float32 = null; + private List float32 = new ArrayList<>(); public static final String SERIALIZED_NAME_FLOAT64 = "float64"; @SerializedName(SERIALIZED_NAME_FLOAT64) - private List float64 = null; + private List float64 = new ArrayList<>(); public DomainArray() { } public DomainArray int8(List int8) { - this.int8 = int8; return this; } @@ -100,25 +109,21 @@ public DomainArray addInt8Item(Integer int8Item) { return this; } - /** + /** * Get int8 * @return int8 - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public List getInt8() { return int8; } - public void setInt8(List int8) { this.int8 = int8; } public DomainArray uint8(List uint8) { - this.uint8 = uint8; return this; } @@ -131,25 +136,21 @@ public DomainArray addUint8Item(Integer uint8Item) { return this; } - /** + /** * Get uint8 * @return uint8 - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public List getUint8() { return uint8; } - public void setUint8(List uint8) { this.uint8 = uint8; } public DomainArray int16(List int16) { - this.int16 = int16; return this; } @@ -162,25 +163,21 @@ public DomainArray addInt16Item(Integer int16Item) { return this; } - /** + /** * Get int16 * @return int16 - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public List getInt16() { return int16; } - public void setInt16(List int16) { this.int16 = int16; } public DomainArray uint16(List uint16) { - this.uint16 = uint16; return this; } @@ -193,25 +190,21 @@ public DomainArray addUint16Item(Integer uint16Item) { return this; } - /** + /** * Get uint16 * @return uint16 - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public List getUint16() { return uint16; } - public void setUint16(List uint16) { this.uint16 = uint16; } public DomainArray int32(List int32) { - this.int32 = int32; return this; } @@ -224,25 +217,21 @@ public DomainArray addInt32Item(Integer int32Item) { return this; } - /** + /** * Get int32 * @return int32 - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public List getInt32() { return int32; } - public void setInt32(List int32) { this.int32 = int32; } public DomainArray uint32(List uint32) { - this.uint32 = uint32; return this; } @@ -255,25 +244,21 @@ public DomainArray addUint32Item(Integer uint32Item) { return this; } - /** + /** * Get uint32 * @return uint32 - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public List getUint32() { return uint32; } - public void setUint32(List uint32) { this.uint32 = uint32; } public DomainArray int64(List int64) { - this.int64 = int64; return this; } @@ -286,25 +271,21 @@ public DomainArray addInt64Item(Long int64Item) { return this; } - /** + /** * Get int64 * @return int64 - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public List getInt64() { return int64; } - public void setInt64(List int64) { this.int64 = int64; } public DomainArray uint64(List uint64) { - this.uint64 = uint64; return this; } @@ -317,25 +298,21 @@ public DomainArray addUint64Item(Integer uint64Item) { return this; } - /** + /** * Get uint64 * @return uint64 - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public List getUint64() { return uint64; } - public void setUint64(List uint64) { this.uint64 = uint64; } public DomainArray float32(List float32) { - this.float32 = float32; return this; } @@ -348,25 +325,21 @@ public DomainArray addFloat32Item(Float float32Item) { return this; } - /** + /** * Get float32 * @return float32 - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public List getFloat32() { return float32; } - public void setFloat32(List float32) { this.float32 = float32; } public DomainArray float64(List float64) { - this.float64 = float64; return this; } @@ -379,18 +352,15 @@ public DomainArray addFloat64Item(Double float64Item) { return this; } - /** + /** * Get float64 * @return float64 - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public List getFloat64() { return float64; } - public void setFloat64(List float64) { this.float64 = float64; } @@ -405,6 +375,10 @@ public void setFloat64(List float64) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the DomainArray instance itself */ public DomainArray putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -416,6 +390,8 @@ public DomainArray putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -423,6 +399,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -511,58 +490,57 @@ private String toIndentedString(Object o) { 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 DomainArray - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (DomainArray.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to DomainArray + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!DomainArray.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in DomainArray is not found in the empty JSON string", DomainArray.openapiRequiredFields.toString())); } } - // ensure the json data is an array - if ((jsonObj.get("int8") != null && !jsonObj.get("int8").isJsonNull()) && !jsonObj.get("int8").isJsonArray()) { + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("int8") != null && !jsonObj.get("int8").isJsonNull() && !jsonObj.get("int8").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `int8` to be an array in the JSON string but got `%s`", jsonObj.get("int8").toString())); } - // ensure the json data is an array - if ((jsonObj.get("uint8") != null && !jsonObj.get("uint8").isJsonNull()) && !jsonObj.get("uint8").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("uint8") != null && !jsonObj.get("uint8").isJsonNull() && !jsonObj.get("uint8").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `uint8` to be an array in the JSON string but got `%s`", jsonObj.get("uint8").toString())); } - // ensure the json data is an array - if ((jsonObj.get("int16") != null && !jsonObj.get("int16").isJsonNull()) && !jsonObj.get("int16").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("int16") != null && !jsonObj.get("int16").isJsonNull() && !jsonObj.get("int16").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `int16` to be an array in the JSON string but got `%s`", jsonObj.get("int16").toString())); } - // ensure the json data is an array - if ((jsonObj.get("uint16") != null && !jsonObj.get("uint16").isJsonNull()) && !jsonObj.get("uint16").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("uint16") != null && !jsonObj.get("uint16").isJsonNull() && !jsonObj.get("uint16").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `uint16` to be an array in the JSON string but got `%s`", jsonObj.get("uint16").toString())); } - // ensure the json data is an array - if ((jsonObj.get("int32") != null && !jsonObj.get("int32").isJsonNull()) && !jsonObj.get("int32").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("int32") != null && !jsonObj.get("int32").isJsonNull() && !jsonObj.get("int32").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `int32` to be an array in the JSON string but got `%s`", jsonObj.get("int32").toString())); } - // ensure the json data is an array - if ((jsonObj.get("uint32") != null && !jsonObj.get("uint32").isJsonNull()) && !jsonObj.get("uint32").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("uint32") != null && !jsonObj.get("uint32").isJsonNull() && !jsonObj.get("uint32").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `uint32` to be an array in the JSON string but got `%s`", jsonObj.get("uint32").toString())); } - // ensure the json data is an array - if ((jsonObj.get("int64") != null && !jsonObj.get("int64").isJsonNull()) && !jsonObj.get("int64").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("int64") != null && !jsonObj.get("int64").isJsonNull() && !jsonObj.get("int64").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `int64` to be an array in the JSON string but got `%s`", jsonObj.get("int64").toString())); } - // ensure the json data is an array - if ((jsonObj.get("uint64") != null && !jsonObj.get("uint64").isJsonNull()) && !jsonObj.get("uint64").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("uint64") != null && !jsonObj.get("uint64").isJsonNull() && !jsonObj.get("uint64").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `uint64` to be an array in the JSON string but got `%s`", jsonObj.get("uint64").toString())); } - // ensure the json data is an array - if ((jsonObj.get("float32") != null && !jsonObj.get("float32").isJsonNull()) && !jsonObj.get("float32").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("float32") != null && !jsonObj.get("float32").isJsonNull() && !jsonObj.get("float32").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `float32` to be an array in the JSON string but got `%s`", jsonObj.get("float32").toString())); } - // ensure the json data is an array - if ((jsonObj.get("float64") != null && !jsonObj.get("float64").isJsonNull()) && !jsonObj.get("float64").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("float64") != null && !jsonObj.get("float64").isJsonNull() && !jsonObj.get("float64").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `float64` to be an array in the JSON string but got `%s`", jsonObj.get("float64").toString())); } } @@ -583,7 +561,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, DomainArray value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -595,7 +573,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -604,8 +587,9 @@ else if (entry.getValue() instanceof Character) @Override public DomainArray read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance DomainArray instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -619,8 +603,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -631,22 +617,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of DomainArray given an JSON string - * - * @param jsonString JSON string - * @return An instance of DomainArray - * @throws IOException if the JSON string is invalid with respect to DomainArray - */ + /** + * Create an instance of DomainArray given an JSON string + * + * @param jsonString JSON string + * @return An instance of DomainArray + * @throws IOException if the JSON string is invalid with respect to DomainArray + */ public static DomainArray fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, DomainArray.class); } - /** - * Convert an instance of DomainArray to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of DomainArray 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/DomainCheckResult.java b/src/main/java/io/tiledb/cloud/rest_api/model/DomainCheckResult.java index 07d164f..b8e2988 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,33 +14,44 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.DomainCheckStatus; import java.io.IOException; import java.time.OffsetDateTime; +import java.util.Arrays; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class DomainCheckResult { public static final String SERIALIZED_NAME_TIME = "time"; @SerializedName(SERIALIZED_NAME_TIME) @@ -54,46 +65,38 @@ public DomainCheckResult() { } public DomainCheckResult time(OffsetDateTime time) { - this.time = time; return this; } - /** + /** * The timestamp when the check was performed. * @return time - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The timestamp when the check was performed.") - public OffsetDateTime getTime() { return time; } - public void setTime(OffsetDateTime time) { this.time = time; } public DomainCheckResult status(DomainCheckStatus status) { - this.status = status; return this; } - /** + /** * Get status * @return status - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public DomainCheckStatus getStatus() { return status; } - public void setStatus(DomainCheckStatus status) { this.status = status; } @@ -108,6 +111,10 @@ public void setStatus(DomainCheckStatus status) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the DomainCheckResult instance itself */ public DomainCheckResult putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -119,6 +126,8 @@ public DomainCheckResult putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -126,6 +135,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -190,20 +202,23 @@ private String toIndentedString(Object o) { 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 DomainCheckResult - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (DomainCheckResult.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to DomainCheckResult + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!DomainCheckResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in DomainCheckResult is not found in the empty JSON string", DomainCheckResult.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + DomainCheckStatus.validateJsonElement(jsonObj.get("status")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -222,7 +237,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, DomainCheckResult value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -234,7 +249,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -243,8 +263,9 @@ else if (entry.getValue() instanceof Character) @Override public DomainCheckResult read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance DomainCheckResult instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -258,8 +279,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -270,22 +293,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of DomainCheckResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of DomainCheckResult - * @throws IOException if the JSON string is invalid with respect to DomainCheckResult - */ + /** + * Create an instance of DomainCheckResult given an JSON string + * + * @param jsonString JSON string + * @return An instance of DomainCheckResult + * @throws IOException if the JSON string is invalid with respect to DomainCheckResult + */ public static DomainCheckResult fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, DomainCheckResult.class); } - /** - * Convert an instance of DomainCheckResult to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of DomainCheckResult 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/DomainCheckStatus.java b/src/main/java/io/tiledb/cloud/rest_api/model/DomainCheckStatus.java index 4a95b20..0e333d7 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,8 +13,12 @@ package io.tiledb.cloud.rest_api.model; +import java.util.Objects; +import com.google.gson.annotations.SerializedName; + import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -67,5 +71,10 @@ public DomainCheckStatus read(final JsonReader jsonReader) throws IOException { return DomainCheckStatus.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + DomainCheckStatus.fromValue(value); + } } 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..d55f65a 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,8 +13,12 @@ package io.tiledb.cloud.rest_api.model; +import java.util.Objects; +import com.google.gson.annotations.SerializedName; + import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -69,5 +73,10 @@ public DomainVerificationStatus read(final JsonReader jsonReader) throws IOExcep return DomainVerificationStatus.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + DomainVerificationStatus.fromValue(value); + } } 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..590c9fd --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Enumeration.java @@ -0,0 +1,475 @@ +/* + * 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.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.tiledb.cloud.rest_api.JSON; + +/** + * The enumerations of a single attribute + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +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 = new ArrayList<>(); + + public static final String SERIALIZED_NAME_OFFSETS = "offsets"; + @SerializedName(SERIALIZED_NAME_OFFSETS) + private List offsets = new ArrayList<>(); + + public Enumeration() { + } + + public Enumeration name(String name) { + this.name = name; + return this; + } + + /** + * Get name + * @return name + */ + @javax.annotation.Nullable + 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 + 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 + 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 + 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 + 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 + 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 + 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. + * + * @param key name of the property + * @param value value of the property + * @return the Enumeration instance itself + */ + 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. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + 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 Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to Enumeration + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!Enumeration.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in Enumeration is not found in the empty JSON string", Enumeration.openapiRequiredFields.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + 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 optional json data is an array if present + 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 optional json data is an array if present + 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 additional 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 { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public Enumeration read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // 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 if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + 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..a32b041 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,30 +14,42 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.Arrays; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class Error { public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) @@ -55,69 +67,57 @@ public Error() { } public Error code(Long code) { - this.code = code; return this; } - /** + /** * Get code * @return code - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public Long getCode() { return code; } - public void setCode(Long code) { this.code = code; } public Error message(String message) { - this.message = message; return this; } - /** + /** * Get message * @return message - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public String getMessage() { return message; } - public void setMessage(String message) { this.message = message; } public Error requestId(String requestId) { - this.requestId = requestId; return this; } - /** + /** * Get requestId * @return requestId - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public String getRequestId() { return requestId; } - public void setRequestId(String requestId) { this.requestId = requestId; } @@ -132,6 +132,10 @@ public void setRequestId(String requestId) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the Error instance itself */ public Error putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -143,6 +147,8 @@ public Error putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -150,6 +156,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -217,20 +226,19 @@ private String toIndentedString(Object o) { 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 Error - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (Error.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to Error + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!Error.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in Error is not found in the empty JSON string", Error.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); } @@ -255,7 +263,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, Error value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -267,7 +275,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -276,8 +289,9 @@ else if (entry.getValue() instanceof Character) @Override public Error read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance Error instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -291,8 +305,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -303,22 +319,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of Error given an JSON string - * - * @param jsonString JSON string - * @return An instance of Error - * @throws IOException if the JSON string is invalid with respect to Error - */ + /** + * Create an instance of Error given an JSON string + * + * @param jsonString JSON string + * @return An instance of Error + * @throws IOException if the JSON string is invalid with respect to Error + */ public static Error fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, Error.class); } - /** - * Convert an instance of Error to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of Error 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/FileCreate.java b/src/main/java/io/tiledb/cloud/rest_api/model/FileCreate.java index 146e8f0..139abd4 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,33 +14,42 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.Arrays; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class FileCreate { public static final String SERIALIZED_NAME_INPUT_URI = "input_uri"; @SerializedName(SERIALIZED_NAME_INPUT_URI) @@ -58,69 +67,57 @@ public FileCreate() { } public FileCreate inputUri(String inputUri) { - this.inputUri = inputUri; return this; } - /** + /** * storage URI of the input file * @return inputUri - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "storage URI of the input file") - public String getInputUri() { return inputUri; } - public void setInputUri(String inputUri) { this.inputUri = inputUri; } public FileCreate outputUri(String outputUri) { - this.outputUri = outputUri; return this; } - /** + /** * output location of the TileDB File * @return outputUri - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "output location of the TileDB File") - public String getOutputUri() { return outputUri; } - public void setOutputUri(String outputUri) { this.outputUri = outputUri; } public FileCreate name(String name) { - this.name = name; return this; } - /** + /** * name to set for registered file * @return name - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "name to set for registered file") - public String getName() { return name; } - public void setName(String name) { this.name = name; } @@ -135,6 +132,10 @@ public void setName(String name) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the FileCreate instance itself */ public FileCreate putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -146,6 +147,8 @@ public FileCreate putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -153,6 +156,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -220,20 +226,19 @@ private String toIndentedString(Object o) { 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 FileCreate - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (FileCreate.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to FileCreate + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!FileCreate.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in FileCreate is not found in the empty JSON string", FileCreate.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("input_uri") != null && !jsonObj.get("input_uri").isJsonNull()) && !jsonObj.get("input_uri").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `input_uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("input_uri").toString())); } @@ -261,7 +266,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, FileCreate value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -273,7 +278,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -282,8 +292,9 @@ else if (entry.getValue() instanceof Character) @Override public FileCreate read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance FileCreate instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -297,8 +308,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -309,22 +322,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of FileCreate given an JSON string - * - * @param jsonString JSON string - * @return An instance of FileCreate - * @throws IOException if the JSON string is invalid with respect to FileCreate - */ + /** + * Create an instance of FileCreate given an JSON string + * + * @param jsonString JSON string + * @return An instance of FileCreate + * @throws IOException if the JSON string is invalid with respect to FileCreate + */ public static FileCreate fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, FileCreate.class); } - /** - * Convert an instance of FileCreate to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of FileCreate 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/FileCreated.java b/src/main/java/io/tiledb/cloud/rest_api/model/FileCreated.java index e409d13..5726a65 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,33 +14,42 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.Arrays; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class FileCreated { public static final String SERIALIZED_NAME_OUTPUT_URI = "output_uri"; @SerializedName(SERIALIZED_NAME_OUTPUT_URI) @@ -54,46 +63,38 @@ public FileCreated() { } public FileCreated outputUri(String outputUri) { - this.outputUri = outputUri; return this; } - /** + /** * output location of the TileDB File * @return outputUri - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "output location of the TileDB File") - public String getOutputUri() { return outputUri; } - public void setOutputUri(String outputUri) { this.outputUri = outputUri; } public FileCreated fileName(String fileName) { - this.fileName = fileName; return this; } - /** + /** * name of the file created * @return fileName - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "name of the file created") - public String getFileName() { return fileName; } - public void setFileName(String fileName) { this.fileName = fileName; } @@ -108,6 +109,10 @@ public void setFileName(String fileName) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the FileCreated instance itself */ public FileCreated putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -119,6 +124,8 @@ public FileCreated putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -126,6 +133,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -190,20 +200,19 @@ private String toIndentedString(Object o) { 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 FileCreated - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (FileCreated.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to FileCreated + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!FileCreated.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in FileCreated is not found in the empty JSON string", FileCreated.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("output_uri") != null && !jsonObj.get("output_uri").isJsonNull()) && !jsonObj.get("output_uri").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `output_uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("output_uri").toString())); } @@ -228,7 +237,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, FileCreated value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -240,7 +249,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -249,8 +263,9 @@ else if (entry.getValue() instanceof Character) @Override public FileCreated read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance FileCreated instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -264,8 +279,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -276,22 +293,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of FileCreated given an JSON string - * - * @param jsonString JSON string - * @return An instance of FileCreated - * @throws IOException if the JSON string is invalid with respect to FileCreated - */ + /** + * Create an instance of FileCreated given an JSON string + * + * @param jsonString JSON string + * @return An instance of FileCreated + * @throws IOException if the JSON string is invalid with respect to FileCreated + */ public static FileCreated fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, FileCreated.class); } - /** - * Convert an instance of FileCreated to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of FileCreated 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/FileExport.java b/src/main/java/io/tiledb/cloud/rest_api/model/FileExport.java index 5dcc4bc..b1dc89a 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,32 +14,42 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.Arrays; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class FileExport { public static final String SERIALIZED_NAME_OUTPUT_URI = "output_uri"; @SerializedName(SERIALIZED_NAME_OUTPUT_URI) @@ -49,23 +59,19 @@ public FileExport() { } public FileExport outputUri(String outputUri) { - this.outputUri = outputUri; return this; } - /** + /** * output location of the TileDB File * @return outputUri - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "output location of the TileDB File") - public String getOutputUri() { return outputUri; } - public void setOutputUri(String outputUri) { this.outputUri = outputUri; } @@ -80,6 +86,10 @@ public void setOutputUri(String outputUri) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the FileExport instance itself */ public FileExport putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -91,6 +101,8 @@ public FileExport putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -98,6 +110,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -159,20 +174,19 @@ private String toIndentedString(Object o) { 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 FileExport - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (FileExport.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to FileExport + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!FileExport.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in FileExport is not found in the empty JSON string", FileExport.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("output_uri") != null && !jsonObj.get("output_uri").isJsonNull()) && !jsonObj.get("output_uri").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `output_uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("output_uri").toString())); } @@ -194,7 +208,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, FileExport value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -206,7 +220,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -215,8 +234,9 @@ else if (entry.getValue() instanceof Character) @Override public FileExport read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance FileExport instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -230,8 +250,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -242,22 +264,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of FileExport given an JSON string - * - * @param jsonString JSON string - * @return An instance of FileExport - * @throws IOException if the JSON string is invalid with respect to FileExport - */ + /** + * Create an instance of FileExport given an JSON string + * + * @param jsonString JSON string + * @return An instance of FileExport + * @throws IOException if the JSON string is invalid with respect to FileExport + */ public static FileExport fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, FileExport.class); } - /** - * Convert an instance of FileExport to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of FileExport 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/FileExported.java b/src/main/java/io/tiledb/cloud/rest_api/model/FileExported.java index 427c35a..2aee599 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,32 +14,42 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.Arrays; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class FileExported { public static final String SERIALIZED_NAME_OUTPUT_URI = "output_uri"; @SerializedName(SERIALIZED_NAME_OUTPUT_URI) @@ -49,23 +59,19 @@ public FileExported() { } public FileExported outputUri(String outputUri) { - this.outputUri = outputUri; return this; } - /** + /** * output location of the exported file * @return outputUri - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "output location of the exported file") - public String getOutputUri() { return outputUri; } - public void setOutputUri(String outputUri) { this.outputUri = outputUri; } @@ -80,6 +86,10 @@ public void setOutputUri(String outputUri) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the FileExported instance itself */ public FileExported putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -91,6 +101,8 @@ public FileExported putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -98,6 +110,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -159,20 +174,19 @@ private String toIndentedString(Object o) { 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 FileExported - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (FileExported.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to FileExported + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!FileExported.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in FileExported is not found in the empty JSON string", FileExported.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("output_uri") != null && !jsonObj.get("output_uri").isJsonNull()) && !jsonObj.get("output_uri").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `output_uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("output_uri").toString())); } @@ -194,7 +208,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, FileExported value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -206,7 +220,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -215,8 +234,9 @@ else if (entry.getValue() instanceof Character) @Override public FileExported read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance FileExported instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -230,8 +250,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -242,22 +264,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of FileExported given an JSON string - * - * @param jsonString JSON string - * @return An instance of FileExported - * @throws IOException if the JSON string is invalid with respect to FileExported - */ + /** + * Create an instance of FileExported given an JSON string + * + * @param jsonString JSON string + * @return An instance of FileExported + * @throws IOException if the JSON string is invalid with respect to FileExported + */ public static FileExported fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, FileExported.class); } - /** - * Convert an instance of FileExported to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of FileExported 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/FilePropertyName.java b/src/main/java/io/tiledb/cloud/rest_api/model/FilePropertyName.java index b6a0be4..3146600 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,8 +13,12 @@ package io.tiledb.cloud.rest_api.model; +import java.util.Objects; +import com.google.gson.annotations.SerializedName; + import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -75,5 +79,10 @@ public FilePropertyName read(final JsonReader jsonReader) throws IOException { return FilePropertyName.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + FilePropertyName.fromValue(value); + } } 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..48619e3 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,8 +13,12 @@ package io.tiledb.cloud.rest_api.model; +import java.util.Objects; +import com.google.gson.annotations.SerializedName; + import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -71,5 +75,10 @@ public FileType read(final JsonReader jsonReader) throws IOException { return FileType.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + FileType.fromValue(value); + } } 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..003f786 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,32 +14,42 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.Arrays; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class FileUploaded { public static final String SERIALIZED_NAME_OUTPUT_URI = "output_uri"; @SerializedName(SERIALIZED_NAME_OUTPUT_URI) @@ -57,69 +67,57 @@ public FileUploaded() { } public FileUploaded outputUri(String outputUri) { - this.outputUri = outputUri; return this; } - /** + /** * output location of the TileDB File * @return outputUri - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "output location of the TileDB File") - public String getOutputUri() { return outputUri; } - public void setOutputUri(String outputUri) { this.outputUri = outputUri; } public FileUploaded fileName(String fileName) { - this.fileName = fileName; return this; } - /** + /** * name of the file uploaded * @return fileName - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "name of the file uploaded") - public String getFileName() { return fileName; } - public void setFileName(String fileName) { this.fileName = fileName; } public FileUploaded id(String id) { - this.id = id; return this; } - /** + /** * unique ID of the uploaded file * @return id - **/ + */ @javax.annotation.Nonnull - @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", required = true, value = "unique ID of the uploaded file") - public String getId() { return id; } - public void setId(String id) { this.id = id; } @@ -134,6 +132,10 @@ public void setId(String id) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the FileUploaded instance itself */ public FileUploaded putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -145,6 +147,8 @@ public FileUploaded putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -152,6 +156,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -220,34 +227,33 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("id"); } - /** - * 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 FileUploaded - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (FileUploaded.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to FileUploaded + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!FileUploaded.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in FileUploaded is not found in the empty JSON string", FileUploaded.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : FileUploaded.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 (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("output_uri") != null && !jsonObj.get("output_uri").isJsonNull()) && !jsonObj.get("output_uri").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `output_uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("output_uri").toString())); } if ((jsonObj.get("file_name") != null && !jsonObj.get("file_name").isJsonNull()) && !jsonObj.get("file_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `file_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("file_name").toString())); } - if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { + if (!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())); } } @@ -268,7 +274,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, FileUploaded value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -280,7 +286,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -289,8 +300,9 @@ else if (entry.getValue() instanceof Character) @Override public FileUploaded read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance FileUploaded instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -304,8 +316,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -316,22 +330,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of FileUploaded given an JSON string - * - * @param jsonString JSON string - * @return An instance of FileUploaded - * @throws IOException if the JSON string is invalid with respect to FileUploaded - */ + /** + * Create an instance of FileUploaded given an JSON string + * + * @param jsonString JSON string + * @return An instance of FileUploaded + * @throws IOException if the JSON string is invalid with respect to FileUploaded + */ public static FileUploaded fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, FileUploaded.class); } - /** - * Convert an instance of FileUploaded to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of FileUploaded 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/Filter.java b/src/main/java/io/tiledb/cloud/rest_api/model/Filter.java index f593eff..6a9f2c0 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,32 +14,44 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.FilterData; +import io.tiledb.cloud.rest_api.model.FilterType; import java.io.IOException; +import java.util.Arrays; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class Filter { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -53,46 +65,38 @@ public Filter() { } public Filter type(FilterType type) { - this.type = type; return this; } - /** + /** * Get type * @return type - **/ + */ @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") - public FilterType getType() { return type; } - public void setType(FilterType type) { this.type = type; } public Filter data(FilterData data) { - this.data = data; return this; } - /** + /** * Get data * @return data - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public FilterData getData() { return data; } - public void setData(FilterData data) { this.data = data; } @@ -107,6 +111,10 @@ public void setData(FilterData data) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the Filter instance itself */ public Filter putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -118,6 +126,8 @@ public Filter putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -125,6 +135,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -190,30 +203,31 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("type"); } - /** - * 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 Filter - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (Filter.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to Filter + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!Filter.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in Filter is not found in the empty JSON string", Filter.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : Filter.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 (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `type` + FilterType.validateJsonElement(jsonObj.get("type")); // validate the optional field `data` if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { - FilterData.validateJsonObject(jsonObj.getAsJsonObject("data")); + FilterData.validateJsonElement(jsonObj.get("data")); } } @@ -233,7 +247,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, Filter value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -245,7 +259,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -254,8 +273,9 @@ else if (entry.getValue() instanceof Character) @Override public Filter read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance Filter instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -269,8 +289,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -281,22 +303,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of Filter given an JSON string - * - * @param jsonString JSON string - * @return An instance of Filter - * @throws IOException if the JSON string is invalid with respect to Filter - */ + /** + * Create an instance of Filter given an JSON string + * + * @param jsonString JSON string + * @return An instance of Filter + * @throws IOException if the JSON string is invalid with respect to Filter + */ public static Filter fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, Filter.class); } - /** - * Convert an instance of Filter to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of Filter 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/FilterData.java b/src/main/java/io/tiledb/cloud/rest_api/model/FilterData.java index 74efd6d..9f53545 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,32 +14,42 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.Arrays; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class FilterData { public static final String SERIALIZED_NAME_INT8 = "int8"; @SerializedName(SERIALIZED_NAME_INT8) @@ -85,230 +95,190 @@ public FilterData() { } public FilterData int8(Integer int8) { - this.int8 = int8; return this; } - /** + /** * Get int8 * @return int8 - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public Integer getInt8() { return int8; } - public void setInt8(Integer int8) { this.int8 = int8; } public FilterData uint8(Integer uint8) { - this.uint8 = uint8; return this; } - /** + /** * Get uint8 * @return uint8 - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public Integer getUint8() { return uint8; } - public void setUint8(Integer uint8) { this.uint8 = uint8; } public FilterData int16(Integer int16) { - this.int16 = int16; return this; } - /** + /** * Get int16 * @return int16 - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public Integer getInt16() { return int16; } - public void setInt16(Integer int16) { this.int16 = int16; } public FilterData uint16(Integer uint16) { - this.uint16 = uint16; return this; } - /** + /** * Get uint16 * @return uint16 - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public Integer getUint16() { return uint16; } - public void setUint16(Integer uint16) { this.uint16 = uint16; } public FilterData int32(Integer int32) { - this.int32 = int32; return this; } - /** + /** * Get int32 * @return int32 - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public Integer getInt32() { return int32; } - public void setInt32(Integer int32) { this.int32 = int32; } public FilterData uint32(Integer uint32) { - this.uint32 = uint32; return this; } - /** + /** * Get uint32 * @return uint32 - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public Integer getUint32() { return uint32; } - public void setUint32(Integer uint32) { this.uint32 = uint32; } public FilterData int64(Long int64) { - this.int64 = int64; return this; } - /** + /** * Get int64 * @return int64 - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public Long getInt64() { return int64; } - public void setInt64(Long int64) { this.int64 = int64; } public FilterData uint64(Integer uint64) { - this.uint64 = uint64; return this; } - /** + /** * Get uint64 * @return uint64 - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public Integer getUint64() { return uint64; } - public void setUint64(Integer uint64) { this.uint64 = uint64; } public FilterData float32(Integer float32) { - this.float32 = float32; return this; } - /** + /** * Get float32 * @return float32 - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public Integer getFloat32() { return float32; } - public void setFloat32(Integer float32) { this.float32 = float32; } public FilterData float64(Integer float64) { - this.float64 = float64; return this; } - /** + /** * Get float64 * @return float64 - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public Integer getFloat64() { return float64; } - public void setFloat64(Integer float64) { this.float64 = float64; } @@ -323,6 +293,10 @@ public void setFloat64(Integer float64) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the FilterData instance itself */ public FilterData putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -334,6 +308,8 @@ public FilterData putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -341,6 +317,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -429,20 +408,19 @@ private String toIndentedString(Object o) { 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 FilterData - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (FilterData.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to FilterData + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!FilterData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in FilterData is not found in the empty JSON string", FilterData.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -461,7 +439,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, FilterData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -473,7 +451,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -482,8 +465,9 @@ else if (entry.getValue() instanceof Character) @Override public FilterData read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance FilterData instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -497,8 +481,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -509,22 +495,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of FilterData given an JSON string - * - * @param jsonString JSON string - * @return An instance of FilterData - * @throws IOException if the JSON string is invalid with respect to FilterData - */ + /** + * Create an instance of FilterData given an JSON string + * + * @param jsonString JSON string + * @return An instance of FilterData + * @throws IOException if the JSON string is invalid with respect to FilterData + */ public static FilterData fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, FilterData.class); } - /** - * Convert an instance of FilterData to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of FilterData 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/FilterOption.java b/src/main/java/io/tiledb/cloud/rest_api/model/FilterOption.java index 502568c..f84c0a5 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,8 +13,12 @@ package io.tiledb.cloud.rest_api.model; +import java.util.Objects; +import com.google.gson.annotations.SerializedName; + import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -67,5 +71,10 @@ public FilterOption read(final JsonReader jsonReader) throws IOException { return FilterOption.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + FilterOption.fromValue(value); + } } 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..af18f4e 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,45 +14,54 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.Filter; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class FilterPipeline { public static final String SERIALIZED_NAME_FILTERS = "filters"; @SerializedName(SERIALIZED_NAME_FILTERS) - private List filters = null; + private List filters = new ArrayList<>(); public FilterPipeline() { } public FilterPipeline filters(List filters) { - this.filters = filters; return this; } @@ -65,18 +74,15 @@ public FilterPipeline addFiltersItem(Filter filtersItem) { return this; } - /** + /** * Get filters * @return filters - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public List getFilters() { return filters; } - public void setFilters(List filters) { this.filters = filters; } @@ -91,6 +97,10 @@ public void setFilters(List filters) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the FilterPipeline instance itself */ public FilterPipeline putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -102,6 +112,8 @@ public FilterPipeline putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -109,6 +121,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -170,31 +185,32 @@ private String toIndentedString(Object o) { 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 FilterPipeline - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (FilterPipeline.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to FilterPipeline + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!FilterPipeline.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in FilterPipeline is not found in the empty JSON string", FilterPipeline.openapiRequiredFields.toString())); } } - JsonArray jsonArrayfilters = jsonObj.getAsJsonArray("filters"); - if (jsonArrayfilters != null) { - // ensure the json data is an array - if (!jsonObj.get("filters").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `filters` to be an array in the JSON string but got `%s`", jsonObj.get("filters").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("filters") != null && !jsonObj.get("filters").isJsonNull()) { + JsonArray jsonArrayfilters = jsonObj.getAsJsonArray("filters"); + if (jsonArrayfilters != null) { + // ensure the json data is an array + if (!jsonObj.get("filters").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `filters` to be an array in the JSON string but got `%s`", jsonObj.get("filters").toString())); + } + + // validate the optional field `filters` (array) + for (int i = 0; i < jsonArrayfilters.size(); i++) { + Filter.validateJsonElement(jsonArrayfilters.get(i)); + }; } - - // validate the optional field `filters` (array) - for (int i = 0; i < jsonArrayfilters.size(); i++) { - Filter.validateJsonObject(jsonArrayfilters.get(i).getAsJsonObject()); - }; } } @@ -214,7 +230,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, FilterPipeline value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -226,7 +242,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -235,8 +256,9 @@ else if (entry.getValue() instanceof Character) @Override public FilterPipeline read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance FilterPipeline instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -250,8 +272,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -262,22 +286,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of FilterPipeline given an JSON string - * - * @param jsonString JSON string - * @return An instance of FilterPipeline - * @throws IOException if the JSON string is invalid with respect to FilterPipeline - */ + /** + * Create an instance of FilterPipeline given an JSON string + * + * @param jsonString JSON string + * @return An instance of FilterPipeline + * @throws IOException if the JSON string is invalid with respect to FilterPipeline + */ public static FilterPipeline fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, FilterPipeline.class); } - /** - * Convert an instance of FilterPipeline to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of FilterPipeline 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/FilterType.java b/src/main/java/io/tiledb/cloud/rest_api/model/FilterType.java index 7f62564..f9225fc 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,8 +13,12 @@ package io.tiledb.cloud.rest_api.model; +import java.util.Objects; +import com.google.gson.annotations.SerializedName; + import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -25,27 +29,27 @@ @JsonAdapter(FilterType.Adapter.class) public enum FilterType { - NONE("NONE"), + NONE("FILTER_NONE"), - GZIP("GZIP"), + GZIP("FILTER_GZIP"), - ZSTD("ZSTD"), + ZSTD("FILTER_ZSTD"), - LZ4("LZ4"), + LZ4("FILTER_LZ4"), - RLE("RLE"), + RLE("FILTER_RLE"), - BZIP2("BZIP2"), + BZIP2("FILTER_BZIP2"), - DOUBLE_DELTA("DOUBLE_DELTA"), + DOUBLE_DELTA("FILTER_DOUBLE_DELTA"), - BIT_WIDTH_REDUCTION("BIT_WIDTH_REDUCTION"), + BIT_WIDTH_REDUCTION("FILTER_BIT_WIDTH_REDUCTION"), - BITSHUFFLE("BITSHUFFLE"), + BITSHUFFLE("FILTER_BITSHUFFLE"), - BYTESHUFFLE("BYTESHUFFLE"), + BYTESHUFFLE("FILTER_BYTESHUFFLE"), - POSITIVE_DELTA("POSITIVE_DELTA"); + POSITIVE_DELTA("FILTER_POSITIVE_DELTA"); private String value; @@ -83,5 +87,10 @@ public FilterType read(final JsonReader jsonReader) throws IOException { return FilterType.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + FilterType.fromValue(value); + } } 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..13bdf74 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,53 +14,65 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.ArraySchema; +import io.tiledb.cloud.rest_api.model.SingleFragmentInfo; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; +import java.util.HashMap; import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class FragmentInfo { public static final String SERIALIZED_NAME_ARRAY_SCHEMA_ALL = "arraySchemaAll"; @SerializedName(SERIALIZED_NAME_ARRAY_SCHEMA_ALL) - private Map arraySchemaAll = null; + private Map arraySchemaAll = new HashMap<>(); public static final String SERIALIZED_NAME_FRAGMENT_INFO = "fragmentInfo"; @SerializedName(SERIALIZED_NAME_FRAGMENT_INFO) - private List fragmentInfo = null; + private List fragmentInfo = new ArrayList<>(); public static final String SERIALIZED_NAME_TO_VACUUM = "toVacuum"; @SerializedName(SERIALIZED_NAME_TO_VACUUM) - private List toVacuum = null; + private List toVacuum = new ArrayList<>(); public FragmentInfo() { } public FragmentInfo arraySchemaAll(Map arraySchemaAll) { - this.arraySchemaAll = arraySchemaAll; return this; } @@ -73,25 +85,21 @@ public FragmentInfo putArraySchemaAllItem(String key, ArraySchema arraySchemaAll return this; } - /** + /** * map of all array schemas * @return arraySchemaAll - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "map of all array schemas") - public Map getArraySchemaAll() { return arraySchemaAll; } - public void setArraySchemaAll(Map arraySchemaAll) { this.arraySchemaAll = arraySchemaAll; } public FragmentInfo fragmentInfo(List fragmentInfo) { - this.fragmentInfo = fragmentInfo; return this; } @@ -104,25 +112,21 @@ public FragmentInfo addFragmentInfoItem(SingleFragmentInfo fragmentInfoItem) { return this; } - /** + /** * information about fragments in the array * @return fragmentInfo - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "information about fragments in the array") - public List getFragmentInfo() { return fragmentInfo; } - public void setFragmentInfo(List fragmentInfo) { this.fragmentInfo = fragmentInfo; } public FragmentInfo toVacuum(List toVacuum) { - this.toVacuum = toVacuum; return this; } @@ -135,18 +139,15 @@ public FragmentInfo addToVacuumItem(String toVacuumItem) { return this; } - /** + /** * the URIs of the fragments to vacuum * @return toVacuum - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "the URIs of the fragments to vacuum") - public List getToVacuum() { return toVacuum; } - public void setToVacuum(List toVacuum) { this.toVacuum = toVacuum; } @@ -161,6 +162,10 @@ public void setToVacuum(List toVacuum) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the FragmentInfo instance itself */ public FragmentInfo putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -172,6 +177,8 @@ public FragmentInfo putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -179,6 +186,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -246,34 +256,35 @@ private String toIndentedString(Object o) { 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 FragmentInfo - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (FragmentInfo.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to FragmentInfo + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!FragmentInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in FragmentInfo is not found in the empty JSON string", FragmentInfo.openapiRequiredFields.toString())); } } - JsonArray jsonArrayfragmentInfo = jsonObj.getAsJsonArray("fragmentInfo"); - if (jsonArrayfragmentInfo != null) { - // ensure the json data is an array - if (!jsonObj.get("fragmentInfo").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `fragmentInfo` to be an array in the JSON string but got `%s`", jsonObj.get("fragmentInfo").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("fragmentInfo") != null && !jsonObj.get("fragmentInfo").isJsonNull()) { + JsonArray jsonArrayfragmentInfo = jsonObj.getAsJsonArray("fragmentInfo"); + if (jsonArrayfragmentInfo != null) { + // ensure the json data is an array + if (!jsonObj.get("fragmentInfo").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `fragmentInfo` to be an array in the JSON string but got `%s`", jsonObj.get("fragmentInfo").toString())); + } + + // validate the optional field `fragmentInfo` (array) + for (int i = 0; i < jsonArrayfragmentInfo.size(); i++) { + SingleFragmentInfo.validateJsonElement(jsonArrayfragmentInfo.get(i)); + }; } - - // validate the optional field `fragmentInfo` (array) - for (int i = 0; i < jsonArrayfragmentInfo.size(); i++) { - SingleFragmentInfo.validateJsonObject(jsonArrayfragmentInfo.get(i).getAsJsonObject()); - }; } - // ensure the json data is an array - if ((jsonObj.get("toVacuum") != null && !jsonObj.get("toVacuum").isJsonNull()) && !jsonObj.get("toVacuum").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("toVacuum") != null && !jsonObj.get("toVacuum").isJsonNull() && !jsonObj.get("toVacuum").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `toVacuum` to be an array in the JSON string but got `%s`", jsonObj.get("toVacuum").toString())); } } @@ -294,7 +305,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, FragmentInfo value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -306,7 +317,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -315,8 +331,9 @@ else if (entry.getValue() instanceof Character) @Override public FragmentInfo read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance FragmentInfo instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -330,8 +347,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -342,22 +361,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of FragmentInfo given an JSON string - * - * @param jsonString JSON string - * @return An instance of FragmentInfo - * @throws IOException if the JSON string is invalid with respect to FragmentInfo - */ + /** + * Create an instance of FragmentInfo given an JSON string + * + * @param jsonString JSON string + * @return An instance of FragmentInfo + * @throws IOException if the JSON string is invalid with respect to FragmentInfo + */ public static FragmentInfo fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, FragmentInfo.class); } - /** - * Convert an instance of FragmentInfo to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of FragmentInfo 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/FragmentInfoRequest.java b/src/main/java/io/tiledb/cloud/rest_api/model/FragmentInfoRequest.java index 0bc0f1f..c637bdf 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,32 +14,43 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.TileDBConfig; import java.io.IOException; +import java.util.Arrays; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class FragmentInfoRequest { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) @@ -49,23 +60,19 @@ public FragmentInfoRequest() { } public FragmentInfoRequest 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; } @@ -80,6 +87,10 @@ public void setConfig(TileDBConfig config) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the FragmentInfoRequest instance itself */ public FragmentInfoRequest putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -91,6 +102,8 @@ public FragmentInfoRequest putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -98,6 +111,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -159,23 +175,22 @@ private String toIndentedString(Object o) { 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 FragmentInfoRequest - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (FragmentInfoRequest.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to FragmentInfoRequest + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!FragmentInfoRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in FragmentInfoRequest is not found in the empty JSON string", FragmentInfoRequest.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `config` if (jsonObj.get("config") != null && !jsonObj.get("config").isJsonNull()) { - TileDBConfig.validateJsonObject(jsonObj.getAsJsonObject("config")); + TileDBConfig.validateJsonElement(jsonObj.get("config")); } } @@ -195,7 +210,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, FragmentInfoRequest value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -207,7 +222,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -216,8 +236,9 @@ else if (entry.getValue() instanceof Character) @Override public FragmentInfoRequest read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance FragmentInfoRequest instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -231,8 +252,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -243,22 +266,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of FragmentInfoRequest given an JSON string - * - * @param jsonString JSON string - * @return An instance of FragmentInfoRequest - * @throws IOException if the JSON string is invalid with respect to FragmentInfoRequest - */ + /** + * Create an instance of FragmentInfoRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of FragmentInfoRequest + * @throws IOException if the JSON string is invalid with respect to FragmentInfoRequest + */ public static FragmentInfoRequest fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, FragmentInfoRequest.class); } - /** - * Convert an instance of FragmentInfoRequest to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of FragmentInfoRequest 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/FragmentMetadata.java b/src/main/java/io/tiledb/cloud/rest_api/model/FragmentMetadata.java index 7de1e32..b96d249 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,46 +14,56 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class FragmentMetadata { public static final String SERIALIZED_NAME_FILE_SIZES = "fileSizes"; @SerializedName(SERIALIZED_NAME_FILE_SIZES) - private List fileSizes = null; + private List fileSizes = new ArrayList<>(); public static final String SERIALIZED_NAME_FILE_VAR_SIZES = "fileVarSizes"; @SerializedName(SERIALIZED_NAME_FILE_VAR_SIZES) - private List fileVarSizes = null; + private List fileVarSizes = new ArrayList<>(); public static final String SERIALIZED_NAME_FILE_VALIDITY_SIZES = "fileValiditySizes"; @SerializedName(SERIALIZED_NAME_FILE_VALIDITY_SIZES) - private List fileValiditySizes = null; + private List fileValiditySizes = new ArrayList<>(); public static final String SERIALIZED_NAME_FRAGMENT_URI = "fragmentUri"; @SerializedName(SERIALIZED_NAME_FRAGMENT_URI) @@ -77,59 +87,59 @@ public class FragmentMetadata { public static final String SERIALIZED_NAME_TILE_OFFSETS = "tileOffsets"; @SerializedName(SERIALIZED_NAME_TILE_OFFSETS) - private List> tileOffsets = null; + private List> tileOffsets = new ArrayList<>(); public static final String SERIALIZED_NAME_TILE_VAR_OFFSETS = "tileVarOffsets"; @SerializedName(SERIALIZED_NAME_TILE_VAR_OFFSETS) - private List> tileVarOffsets = null; + private List> tileVarOffsets = new ArrayList<>(); public static final String SERIALIZED_NAME_TILE_VAR_SIZES = "tileVarSizes"; @SerializedName(SERIALIZED_NAME_TILE_VAR_SIZES) - private List> tileVarSizes = null; + private List> tileVarSizes = new ArrayList<>(); public static final String SERIALIZED_NAME_TILE_VALIDITY_OFFSETS = "tileValidityOffsets"; @SerializedName(SERIALIZED_NAME_TILE_VALIDITY_OFFSETS) - private List> tileValidityOffsets = null; + private List> tileValidityOffsets = new ArrayList<>(); public static final String SERIALIZED_NAME_TILE_MIN_BUFFER = "tileMinBuffer"; @SerializedName(SERIALIZED_NAME_TILE_MIN_BUFFER) - private List> tileMinBuffer = null; + private List> tileMinBuffer = new ArrayList<>(); public static final String SERIALIZED_NAME_TILE_MIN_VAR_BUFFER = "tileMinVarBuffer"; @SerializedName(SERIALIZED_NAME_TILE_MIN_VAR_BUFFER) - private List> tileMinVarBuffer = null; + private List> tileMinVarBuffer = new ArrayList<>(); public static final String SERIALIZED_NAME_TILE_MAX_BUFFER = "tileMaxBuffer"; @SerializedName(SERIALIZED_NAME_TILE_MAX_BUFFER) - private List> tileMaxBuffer = null; + private List> tileMaxBuffer = new ArrayList<>(); public static final String SERIALIZED_NAME_TILE_MAX_VAR_BUFFER = "tileMaxVarBuffer"; @SerializedName(SERIALIZED_NAME_TILE_MAX_VAR_BUFFER) - private List> tileMaxVarBuffer = null; + private List> tileMaxVarBuffer = new ArrayList<>(); public static final String SERIALIZED_NAME_TILE_SUMS = "tileSums"; @SerializedName(SERIALIZED_NAME_TILE_SUMS) - private List> tileSums = null; + private List> tileSums = new ArrayList<>(); public static final String SERIALIZED_NAME_TILE_NULL_COUNTS = "tileNullCounts"; @SerializedName(SERIALIZED_NAME_TILE_NULL_COUNTS) - private List> tileNullCounts = null; + private List> tileNullCounts = new ArrayList<>(); public static final String SERIALIZED_NAME_FRAGMENT_MINS = "fragmentMins"; @SerializedName(SERIALIZED_NAME_FRAGMENT_MINS) - private List> fragmentMins = null; + private List> fragmentMins = new ArrayList<>(); public static final String SERIALIZED_NAME_FRAGMENT_MAXS = "fragmentMaxs"; @SerializedName(SERIALIZED_NAME_FRAGMENT_MAXS) - private List> fragmentMaxs = null; + private List> fragmentMaxs = new ArrayList<>(); public static final String SERIALIZED_NAME_FRAGMENT_SUMS = "fragmentSums"; @SerializedName(SERIALIZED_NAME_FRAGMENT_SUMS) - private List fragmentSums = null; + private List fragmentSums = new ArrayList<>(); public static final String SERIALIZED_NAME_FRAGMENT_NULL_COUNTS = "fragmentNullCounts"; @SerializedName(SERIALIZED_NAME_FRAGMENT_NULL_COUNTS) - private List fragmentNullCounts = null; + private List fragmentNullCounts = new ArrayList<>(); public static final String SERIALIZED_NAME_VERSION = "version"; @SerializedName(SERIALIZED_NAME_VERSION) @@ -137,7 +147,7 @@ public class FragmentMetadata { public static final String SERIALIZED_NAME_TIMESTAMP_RANGE = "timestampRange"; @SerializedName(SERIALIZED_NAME_TIMESTAMP_RANGE) - private List timestampRange = null; + private List timestampRange = new ArrayList<>(); public static final String SERIALIZED_NAME_LAST_TILE_CELL_NUM = "lastTileCellNum"; @SerializedName(SERIALIZED_NAME_LAST_TILE_CELL_NUM) @@ -147,7 +157,6 @@ public FragmentMetadata() { } public FragmentMetadata fileSizes(List fileSizes) { - this.fileSizes = fileSizes; return this; } @@ -160,25 +169,21 @@ public FragmentMetadata addFileSizesItem(Integer fileSizesItem) { return this; } - /** + /** * fixed sizes * @return fileSizes - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "fixed sizes") - public List getFileSizes() { return fileSizes; } - public void setFileSizes(List fileSizes) { this.fileSizes = fileSizes; } public FragmentMetadata fileVarSizes(List fileVarSizes) { - this.fileVarSizes = fileVarSizes; return this; } @@ -191,25 +196,21 @@ public FragmentMetadata addFileVarSizesItem(Integer fileVarSizesItem) { return this; } - /** + /** * var length sizes * @return fileVarSizes - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "var length sizes") - public List getFileVarSizes() { return fileVarSizes; } - public void setFileVarSizes(List fileVarSizes) { this.fileVarSizes = fileVarSizes; } public FragmentMetadata fileValiditySizes(List fileValiditySizes) { - this.fileValiditySizes = fileValiditySizes; return this; } @@ -222,140 +223,116 @@ public FragmentMetadata addFileValiditySizesItem(Integer fileValiditySizesItem) return this; } - /** + /** * validity sizes * @return fileValiditySizes - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "validity sizes") - public List getFileValiditySizes() { return fileValiditySizes; } - public void setFileValiditySizes(List fileValiditySizes) { this.fileValiditySizes = fileValiditySizes; } public FragmentMetadata fragmentUri(String fragmentUri) { - this.fragmentUri = fragmentUri; return this; } - /** + /** * Get fragmentUri * @return fragmentUri - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public String getFragmentUri() { return fragmentUri; } - public void setFragmentUri(String fragmentUri) { this.fragmentUri = fragmentUri; } public FragmentMetadata hasTimestamps(Boolean hasTimestamps) { - this.hasTimestamps = hasTimestamps; return this; } - /** + /** * Get hasTimestamps * @return hasTimestamps - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public Boolean getHasTimestamps() { return hasTimestamps; } - public void setHasTimestamps(Boolean hasTimestamps) { this.hasTimestamps = hasTimestamps; } public FragmentMetadata hasDeleteMeta(Boolean hasDeleteMeta) { - this.hasDeleteMeta = hasDeleteMeta; return this; } - /** + /** * Get hasDeleteMeta * @return hasDeleteMeta - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public Boolean getHasDeleteMeta() { return hasDeleteMeta; } - public void setHasDeleteMeta(Boolean hasDeleteMeta) { this.hasDeleteMeta = hasDeleteMeta; } public FragmentMetadata sparseTileNum(Integer sparseTileNum) { - this.sparseTileNum = sparseTileNum; return this; } - /** + /** * Get sparseTileNum * @return sparseTileNum - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public Integer getSparseTileNum() { return sparseTileNum; } - public void setSparseTileNum(Integer sparseTileNum) { this.sparseTileNum = sparseTileNum; } public FragmentMetadata tileIndexBase(Integer tileIndexBase) { - this.tileIndexBase = tileIndexBase; return this; } - /** + /** * Get tileIndexBase * @return tileIndexBase - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public Integer getTileIndexBase() { return tileIndexBase; } - public void setTileIndexBase(Integer tileIndexBase) { this.tileIndexBase = tileIndexBase; } public FragmentMetadata tileOffsets(List> tileOffsets) { - this.tileOffsets = tileOffsets; return this; } @@ -368,25 +345,21 @@ public FragmentMetadata addTileOffsetsItem(List tileOffsetsItem) { return this; } - /** + /** * Get tileOffsets * @return tileOffsets - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public List> getTileOffsets() { return tileOffsets; } - public void setTileOffsets(List> tileOffsets) { this.tileOffsets = tileOffsets; } public FragmentMetadata tileVarOffsets(List> tileVarOffsets) { - this.tileVarOffsets = tileVarOffsets; return this; } @@ -399,25 +372,21 @@ public FragmentMetadata addTileVarOffsetsItem(List tileVarOffsetsItem) return this; } - /** + /** * Get tileVarOffsets * @return tileVarOffsets - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public List> getTileVarOffsets() { return tileVarOffsets; } - public void setTileVarOffsets(List> tileVarOffsets) { this.tileVarOffsets = tileVarOffsets; } public FragmentMetadata tileVarSizes(List> tileVarSizes) { - this.tileVarSizes = tileVarSizes; return this; } @@ -430,25 +399,21 @@ public FragmentMetadata addTileVarSizesItem(List tileVarSizesItem) { return this; } - /** + /** * Get tileVarSizes * @return tileVarSizes - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public List> getTileVarSizes() { return tileVarSizes; } - public void setTileVarSizes(List> tileVarSizes) { this.tileVarSizes = tileVarSizes; } public FragmentMetadata tileValidityOffsets(List> tileValidityOffsets) { - this.tileValidityOffsets = tileValidityOffsets; return this; } @@ -461,25 +426,21 @@ public FragmentMetadata addTileValidityOffsetsItem(List tileValidityOff return this; } - /** + /** * Get tileValidityOffsets * @return tileValidityOffsets - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public List> getTileValidityOffsets() { return tileValidityOffsets; } - public void setTileValidityOffsets(List> tileValidityOffsets) { this.tileValidityOffsets = tileValidityOffsets; } public FragmentMetadata tileMinBuffer(List> tileMinBuffer) { - this.tileMinBuffer = tileMinBuffer; return this; } @@ -492,25 +453,21 @@ public FragmentMetadata addTileMinBufferItem(List tileMinBufferItem) { return this; } - /** + /** * Get tileMinBuffer * @return tileMinBuffer - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public List> getTileMinBuffer() { return tileMinBuffer; } - public void setTileMinBuffer(List> tileMinBuffer) { this.tileMinBuffer = tileMinBuffer; } public FragmentMetadata tileMinVarBuffer(List> tileMinVarBuffer) { - this.tileMinVarBuffer = tileMinVarBuffer; return this; } @@ -523,25 +480,21 @@ public FragmentMetadata addTileMinVarBufferItem(List tileMinVarBufferIt return this; } - /** + /** * Get tileMinVarBuffer * @return tileMinVarBuffer - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public List> getTileMinVarBuffer() { return tileMinVarBuffer; } - public void setTileMinVarBuffer(List> tileMinVarBuffer) { this.tileMinVarBuffer = tileMinVarBuffer; } public FragmentMetadata tileMaxBuffer(List> tileMaxBuffer) { - this.tileMaxBuffer = tileMaxBuffer; return this; } @@ -554,25 +507,21 @@ public FragmentMetadata addTileMaxBufferItem(List tileMaxBufferItem) { return this; } - /** + /** * Get tileMaxBuffer * @return tileMaxBuffer - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public List> getTileMaxBuffer() { return tileMaxBuffer; } - public void setTileMaxBuffer(List> tileMaxBuffer) { this.tileMaxBuffer = tileMaxBuffer; } public FragmentMetadata tileMaxVarBuffer(List> tileMaxVarBuffer) { - this.tileMaxVarBuffer = tileMaxVarBuffer; return this; } @@ -585,25 +534,21 @@ public FragmentMetadata addTileMaxVarBufferItem(List tileMaxVarBufferIt return this; } - /** + /** * Get tileMaxVarBuffer * @return tileMaxVarBuffer - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public List> getTileMaxVarBuffer() { return tileMaxVarBuffer; } - public void setTileMaxVarBuffer(List> tileMaxVarBuffer) { this.tileMaxVarBuffer = tileMaxVarBuffer; } public FragmentMetadata tileSums(List> tileSums) { - this.tileSums = tileSums; return this; } @@ -616,25 +561,21 @@ public FragmentMetadata addTileSumsItem(List tileSumsItem) { return this; } - /** + /** * Get tileSums * @return tileSums - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public List> getTileSums() { return tileSums; } - public void setTileSums(List> tileSums) { this.tileSums = tileSums; } public FragmentMetadata tileNullCounts(List> tileNullCounts) { - this.tileNullCounts = tileNullCounts; return this; } @@ -647,25 +588,21 @@ public FragmentMetadata addTileNullCountsItem(List tileNullCountsItem) return this; } - /** + /** * Get tileNullCounts * @return tileNullCounts - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public List> getTileNullCounts() { return tileNullCounts; } - public void setTileNullCounts(List> tileNullCounts) { this.tileNullCounts = tileNullCounts; } public FragmentMetadata fragmentMins(List> fragmentMins) { - this.fragmentMins = fragmentMins; return this; } @@ -678,25 +615,21 @@ public FragmentMetadata addFragmentMinsItem(List fragmentMinsItem) { return this; } - /** + /** * Get fragmentMins * @return fragmentMins - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public List> getFragmentMins() { return fragmentMins; } - public void setFragmentMins(List> fragmentMins) { this.fragmentMins = fragmentMins; } public FragmentMetadata fragmentMaxs(List> fragmentMaxs) { - this.fragmentMaxs = fragmentMaxs; return this; } @@ -709,25 +642,21 @@ public FragmentMetadata addFragmentMaxsItem(List fragmentMaxsItem) { return this; } - /** + /** * Get fragmentMaxs * @return fragmentMaxs - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public List> getFragmentMaxs() { return fragmentMaxs; } - public void setFragmentMaxs(List> fragmentMaxs) { this.fragmentMaxs = fragmentMaxs; } public FragmentMetadata fragmentSums(List fragmentSums) { - this.fragmentSums = fragmentSums; return this; } @@ -740,25 +669,21 @@ public FragmentMetadata addFragmentSumsItem(Integer fragmentSumsItem) { return this; } - /** + /** * Get fragmentSums * @return fragmentSums - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public List getFragmentSums() { return fragmentSums; } - public void setFragmentSums(List fragmentSums) { this.fragmentSums = fragmentSums; } public FragmentMetadata fragmentNullCounts(List fragmentNullCounts) { - this.fragmentNullCounts = fragmentNullCounts; return this; } @@ -771,48 +696,40 @@ public FragmentMetadata addFragmentNullCountsItem(Integer fragmentNullCountsItem return this; } - /** + /** * Get fragmentNullCounts * @return fragmentNullCounts - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public List getFragmentNullCounts() { return fragmentNullCounts; } - public void setFragmentNullCounts(List fragmentNullCounts) { this.fragmentNullCounts = fragmentNullCounts; } public FragmentMetadata version(Integer version) { - this.version = version; return this; } - /** + /** * Get version * @return version - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public Integer getVersion() { return version; } - public void setVersion(Integer version) { this.version = version; } public FragmentMetadata timestampRange(List timestampRange) { - this.timestampRange = timestampRange; return this; } @@ -825,41 +742,34 @@ public FragmentMetadata addTimestampRangeItem(Integer timestampRangeItem) { return this; } - /** + /** * Get timestampRange * @return timestampRange - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public List getTimestampRange() { return timestampRange; } - public void setTimestampRange(List timestampRange) { this.timestampRange = timestampRange; } public FragmentMetadata lastTileCellNum(Integer lastTileCellNum) { - this.lastTileCellNum = lastTileCellNum; return this; } - /** + /** * Get lastTileCellNum * @return lastTileCellNum - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public Integer getLastTileCellNum() { return lastTileCellNum; } - public void setLastTileCellNum(Integer lastTileCellNum) { this.lastTileCellNum = lastTileCellNum; } @@ -874,6 +784,10 @@ public void setLastTileCellNum(Integer lastTileCellNum) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the FragmentMetadata instance itself */ public FragmentMetadata putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -885,6 +799,8 @@ public FragmentMetadata putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -892,6 +808,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -1025,93 +944,92 @@ private String toIndentedString(Object o) { 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 FragmentMetadata - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (FragmentMetadata.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to FragmentMetadata + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!FragmentMetadata.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in FragmentMetadata is not found in the empty JSON string", FragmentMetadata.openapiRequiredFields.toString())); } } - // ensure the json data is an array - if ((jsonObj.get("fileSizes") != null && !jsonObj.get("fileSizes").isJsonNull()) && !jsonObj.get("fileSizes").isJsonArray()) { + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("fileSizes") != null && !jsonObj.get("fileSizes").isJsonNull() && !jsonObj.get("fileSizes").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `fileSizes` to be an array in the JSON string but got `%s`", jsonObj.get("fileSizes").toString())); } - // ensure the json data is an array - if ((jsonObj.get("fileVarSizes") != null && !jsonObj.get("fileVarSizes").isJsonNull()) && !jsonObj.get("fileVarSizes").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("fileVarSizes") != null && !jsonObj.get("fileVarSizes").isJsonNull() && !jsonObj.get("fileVarSizes").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `fileVarSizes` to be an array in the JSON string but got `%s`", jsonObj.get("fileVarSizes").toString())); } - // ensure the json data is an array - if ((jsonObj.get("fileValiditySizes") != null && !jsonObj.get("fileValiditySizes").isJsonNull()) && !jsonObj.get("fileValiditySizes").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("fileValiditySizes") != null && !jsonObj.get("fileValiditySizes").isJsonNull() && !jsonObj.get("fileValiditySizes").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `fileValiditySizes` to be an array in the JSON string but got `%s`", jsonObj.get("fileValiditySizes").toString())); } if ((jsonObj.get("fragmentUri") != null && !jsonObj.get("fragmentUri").isJsonNull()) && !jsonObj.get("fragmentUri").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `fragmentUri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("fragmentUri").toString())); } - // ensure the json data is an array - if ((jsonObj.get("tileOffsets") != null && !jsonObj.get("tileOffsets").isJsonNull()) && !jsonObj.get("tileOffsets").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("tileOffsets") != null && !jsonObj.get("tileOffsets").isJsonNull() && !jsonObj.get("tileOffsets").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `tileOffsets` to be an array in the JSON string but got `%s`", jsonObj.get("tileOffsets").toString())); } - // ensure the json data is an array - if ((jsonObj.get("tileVarOffsets") != null && !jsonObj.get("tileVarOffsets").isJsonNull()) && !jsonObj.get("tileVarOffsets").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("tileVarOffsets") != null && !jsonObj.get("tileVarOffsets").isJsonNull() && !jsonObj.get("tileVarOffsets").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `tileVarOffsets` to be an array in the JSON string but got `%s`", jsonObj.get("tileVarOffsets").toString())); } - // ensure the json data is an array - if ((jsonObj.get("tileVarSizes") != null && !jsonObj.get("tileVarSizes").isJsonNull()) && !jsonObj.get("tileVarSizes").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("tileVarSizes") != null && !jsonObj.get("tileVarSizes").isJsonNull() && !jsonObj.get("tileVarSizes").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `tileVarSizes` to be an array in the JSON string but got `%s`", jsonObj.get("tileVarSizes").toString())); } - // ensure the json data is an array - if ((jsonObj.get("tileValidityOffsets") != null && !jsonObj.get("tileValidityOffsets").isJsonNull()) && !jsonObj.get("tileValidityOffsets").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("tileValidityOffsets") != null && !jsonObj.get("tileValidityOffsets").isJsonNull() && !jsonObj.get("tileValidityOffsets").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `tileValidityOffsets` to be an array in the JSON string but got `%s`", jsonObj.get("tileValidityOffsets").toString())); } - // ensure the json data is an array - if ((jsonObj.get("tileMinBuffer") != null && !jsonObj.get("tileMinBuffer").isJsonNull()) && !jsonObj.get("tileMinBuffer").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("tileMinBuffer") != null && !jsonObj.get("tileMinBuffer").isJsonNull() && !jsonObj.get("tileMinBuffer").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `tileMinBuffer` to be an array in the JSON string but got `%s`", jsonObj.get("tileMinBuffer").toString())); } - // ensure the json data is an array - if ((jsonObj.get("tileMinVarBuffer") != null && !jsonObj.get("tileMinVarBuffer").isJsonNull()) && !jsonObj.get("tileMinVarBuffer").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("tileMinVarBuffer") != null && !jsonObj.get("tileMinVarBuffer").isJsonNull() && !jsonObj.get("tileMinVarBuffer").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `tileMinVarBuffer` to be an array in the JSON string but got `%s`", jsonObj.get("tileMinVarBuffer").toString())); } - // ensure the json data is an array - if ((jsonObj.get("tileMaxBuffer") != null && !jsonObj.get("tileMaxBuffer").isJsonNull()) && !jsonObj.get("tileMaxBuffer").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("tileMaxBuffer") != null && !jsonObj.get("tileMaxBuffer").isJsonNull() && !jsonObj.get("tileMaxBuffer").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `tileMaxBuffer` to be an array in the JSON string but got `%s`", jsonObj.get("tileMaxBuffer").toString())); } - // ensure the json data is an array - if ((jsonObj.get("tileMaxVarBuffer") != null && !jsonObj.get("tileMaxVarBuffer").isJsonNull()) && !jsonObj.get("tileMaxVarBuffer").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("tileMaxVarBuffer") != null && !jsonObj.get("tileMaxVarBuffer").isJsonNull() && !jsonObj.get("tileMaxVarBuffer").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `tileMaxVarBuffer` to be an array in the JSON string but got `%s`", jsonObj.get("tileMaxVarBuffer").toString())); } - // ensure the json data is an array - if ((jsonObj.get("tileSums") != null && !jsonObj.get("tileSums").isJsonNull()) && !jsonObj.get("tileSums").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("tileSums") != null && !jsonObj.get("tileSums").isJsonNull() && !jsonObj.get("tileSums").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `tileSums` to be an array in the JSON string but got `%s`", jsonObj.get("tileSums").toString())); } - // ensure the json data is an array - if ((jsonObj.get("tileNullCounts") != null && !jsonObj.get("tileNullCounts").isJsonNull()) && !jsonObj.get("tileNullCounts").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("tileNullCounts") != null && !jsonObj.get("tileNullCounts").isJsonNull() && !jsonObj.get("tileNullCounts").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `tileNullCounts` to be an array in the JSON string but got `%s`", jsonObj.get("tileNullCounts").toString())); } - // ensure the json data is an array - if ((jsonObj.get("fragmentMins") != null && !jsonObj.get("fragmentMins").isJsonNull()) && !jsonObj.get("fragmentMins").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("fragmentMins") != null && !jsonObj.get("fragmentMins").isJsonNull() && !jsonObj.get("fragmentMins").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `fragmentMins` to be an array in the JSON string but got `%s`", jsonObj.get("fragmentMins").toString())); } - // ensure the json data is an array - if ((jsonObj.get("fragmentMaxs") != null && !jsonObj.get("fragmentMaxs").isJsonNull()) && !jsonObj.get("fragmentMaxs").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("fragmentMaxs") != null && !jsonObj.get("fragmentMaxs").isJsonNull() && !jsonObj.get("fragmentMaxs").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `fragmentMaxs` to be an array in the JSON string but got `%s`", jsonObj.get("fragmentMaxs").toString())); } - // ensure the json data is an array - if ((jsonObj.get("fragmentSums") != null && !jsonObj.get("fragmentSums").isJsonNull()) && !jsonObj.get("fragmentSums").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("fragmentSums") != null && !jsonObj.get("fragmentSums").isJsonNull() && !jsonObj.get("fragmentSums").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `fragmentSums` to be an array in the JSON string but got `%s`", jsonObj.get("fragmentSums").toString())); } - // ensure the json data is an array - if ((jsonObj.get("fragmentNullCounts") != null && !jsonObj.get("fragmentNullCounts").isJsonNull()) && !jsonObj.get("fragmentNullCounts").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("fragmentNullCounts") != null && !jsonObj.get("fragmentNullCounts").isJsonNull() && !jsonObj.get("fragmentNullCounts").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `fragmentNullCounts` to be an array in the JSON string but got `%s`", jsonObj.get("fragmentNullCounts").toString())); } - // ensure the json data is an array - if ((jsonObj.get("timestampRange") != null && !jsonObj.get("timestampRange").isJsonNull()) && !jsonObj.get("timestampRange").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("timestampRange") != null && !jsonObj.get("timestampRange").isJsonNull() && !jsonObj.get("timestampRange").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `timestampRange` to be an array in the JSON string but got `%s`", jsonObj.get("timestampRange").toString())); } } @@ -1132,7 +1050,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, FragmentMetadata value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -1144,7 +1062,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -1153,8 +1076,9 @@ else if (entry.getValue() instanceof Character) @Override public FragmentMetadata read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance FragmentMetadata instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -1168,8 +1092,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -1180,22 +1106,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of FragmentMetadata given an JSON string - * - * @param jsonString JSON string - * @return An instance of FragmentMetadata - * @throws IOException if the JSON string is invalid with respect to FragmentMetadata - */ + /** + * Create an instance of FragmentMetadata given an JSON string + * + * @param jsonString JSON string + * @return An instance of FragmentMetadata + * @throws IOException if the JSON string is invalid with respect to FragmentMetadata + */ public static FragmentMetadata fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, FragmentMetadata.class); } - /** - * Convert an instance of FragmentMetadata to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of FragmentMetadata 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/GenericUDF.java b/src/main/java/io/tiledb/cloud/rest_api/model/GenericUDF.java index 2642b82..b5734de 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,34 +14,46 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.ResultFormat; +import io.tiledb.cloud.rest_api.model.UDFLanguage; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class GenericUDF { public static final String SERIALIZED_NAME_UDF_INFO_NAME = "udf_info_name"; @SerializedName(SERIALIZED_NAME_UDF_INFO_NAME) @@ -81,7 +93,7 @@ public class GenericUDF { public static final String SERIALIZED_NAME_STORED_PARAM_UUIDS = "stored_param_uuids"; @SerializedName(SERIALIZED_NAME_STORED_PARAM_UUIDS) - private List storedParamUuids = null; + private List storedParamUuids = new ArrayList<>(); public static final String SERIALIZED_NAME_RESULT_FORMAT = "result_format"; @SerializedName(SERIALIZED_NAME_RESULT_FORMAT) @@ -115,214 +127,177 @@ public GenericUDF() { } public GenericUDF udfInfoName(String udfInfoName) { - this.udfInfoName = udfInfoName; return this; } - /** + /** * name of UDFInfo to run, format is {namespace}/{udf_name}. Can not be used with exec * @return udfInfoName - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "TileDB-Inc/csv_ingestor", value = "name of UDFInfo to run, format is {namespace}/{udf_name}. Can not be used with exec") - public String getUdfInfoName() { return udfInfoName; } - public void setUdfInfoName(String udfInfoName) { this.udfInfoName = udfInfoName; } public GenericUDF language(UDFLanguage language) { - this.language = language; return this; } - /** + /** * Get language * @return language - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public UDFLanguage getLanguage() { return language; } - public void setLanguage(UDFLanguage language) { this.language = language; } public GenericUDF version(String version) { - this.version = version; return this; } - /** + /** * Type-specific version * @return version - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Type-specific version") - public String getVersion() { return version; } - public void setVersion(String version) { this.version = version; } public GenericUDF imageName(String imageName) { - this.imageName = imageName; return this; } - /** + /** * Docker image name to use for UDF * @return imageName - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Docker image name to use for UDF") - public String getImageName() { return imageName; } - public void setImageName(String imageName) { this.imageName = imageName; } public GenericUDF accessCredentialsName(String accessCredentialsName) { - this.accessCredentialsName = accessCredentialsName; return this; } - /** + /** * The name of the access credentials to use. if unset, no credentials will be configured in the environment. * @return accessCredentialsName - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The name of the access credentials to use. if unset, no credentials will be configured in the environment.") - public String getAccessCredentialsName() { return accessCredentialsName; } - public void setAccessCredentialsName(String accessCredentialsName) { this.accessCredentialsName = accessCredentialsName; } public GenericUDF resourceClass(String resourceClass) { - this.resourceClass = resourceClass; return this; } - /** + /** * The resource class to use for the UDF execution. Resource classes define resource limits for memory and CPUs. If this is empty, then the UDF will execute in the standard resource class of the TileDB Cloud provider. * @return resourceClass - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "standard", value = "The resource class to use for the UDF execution. Resource classes define resource limits for memory and CPUs. If this is empty, then the UDF will execute in the standard resource class of the TileDB Cloud provider. ") - public String getResourceClass() { return resourceClass; } - public void setResourceClass(String resourceClass) { this.resourceClass = resourceClass; } public GenericUDF exec(String exec) { - this.exec = exec; return this; } - /** + /** * Type-specific executable text * @return exec - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Type-specific executable text") - public String getExec() { return exec; } - public void setExec(String exec) { this.exec = exec; } public GenericUDF execRaw(String execRaw) { - this.execRaw = execRaw; return this; } - /** + /** * optional raw text to store of serialized function, used for showing in UI * @return execRaw - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "optional raw text to store of serialized function, used for showing in UI") - public String getExecRaw() { return execRaw; } - public void setExecRaw(String execRaw) { this.execRaw = execRaw; } public GenericUDF argument(String argument) { - this.argument = argument; return this; } - /** + /** * Argument(s) to pass to UDF function, tuple or list of args/kwargs which can be in native or JSON format * @return argument - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Argument(s) to pass to UDF function, tuple or list of args/kwargs which can be in native or JSON format") - public String getArgument() { return argument; } - public void setArgument(String argument) { this.argument = argument; } public GenericUDF storedParamUuids(List storedParamUuids) { - this.storedParamUuids = storedParamUuids; return this; } @@ -335,179 +310,148 @@ public GenericUDF addStoredParamUuidsItem(String storedParamUuidsItem) { return this; } - /** + /** * The UUIDs of stored input parameters (passed in a language-specific format within \"argument\") to be retrieved from the server-side cache. Serialized in standard hex format with no {}. * @return storedParamUuids - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The UUIDs of stored input parameters (passed in a language-specific format within \"argument\") to be retrieved from the server-side cache. Serialized in standard hex format with no {}.") - public List getStoredParamUuids() { return storedParamUuids; } - public void setStoredParamUuids(List storedParamUuids) { this.storedParamUuids = storedParamUuids; } public GenericUDF resultFormat(ResultFormat resultFormat) { - this.resultFormat = resultFormat; return this; } - /** + /** * Get resultFormat * @return resultFormat - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public ResultFormat getResultFormat() { return resultFormat; } - public void setResultFormat(ResultFormat resultFormat) { this.resultFormat = resultFormat; } public GenericUDF taskName(String taskName) { - this.taskName = taskName; return this; } - /** + /** * name of task, optional * @return taskName - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "name of task, optional") - public String getTaskName() { return taskName; } - public void setTaskName(String taskName) { this.taskName = taskName; } public GenericUDF storeResults(Boolean storeResults) { - this.storeResults = storeResults; return this; } - /** + /** * store results for later retrieval * @return storeResults - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "store results for later retrieval") - public Boolean getStoreResults() { return storeResults; } - public void setStoreResults(Boolean storeResults) { this.storeResults = storeResults; } public GenericUDF timeout(Integer timeout) { - this.timeout = timeout; return this; } - /** + /** * UDF-type timeout in seconds (default: 900) * @return timeout - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "UDF-type timeout in seconds (default: 900)") - public Integer getTimeout() { return timeout; } - public void setTimeout(Integer timeout) { this.timeout = timeout; } public GenericUDF dontDownloadResults(Boolean dontDownloadResults) { - this.dontDownloadResults = dontDownloadResults; return this; } - /** + /** * Set to true to avoid downloading the results of this UDF. Useful for intermediate nodes in a task graph where you will not be using the results of your function. Defaults to false (\"yes download results\"). * @return dontDownloadResults - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Set to true to avoid downloading the results of this UDF. Useful for intermediate nodes in a task graph where you will not be using the results of your function. Defaults to false (\"yes download results\").") - public Boolean getDontDownloadResults() { return dontDownloadResults; } - public void setDontDownloadResults(Boolean dontDownloadResults) { this.dontDownloadResults = dontDownloadResults; } public GenericUDF taskGraphUuid(String taskGraphUuid) { - this.taskGraphUuid = taskGraphUuid; return this; } - /** + /** * If set, the ID of the log for the task graph that this was part of. * @return taskGraphUuid - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "If set, the ID of the log for the task graph that this was part of. ") - public String getTaskGraphUuid() { return taskGraphUuid; } - public void setTaskGraphUuid(String taskGraphUuid) { this.taskGraphUuid = taskGraphUuid; } public GenericUDF clientNodeUuid(String clientNodeUuid) { - this.clientNodeUuid = clientNodeUuid; return this; } - /** + /** * If set, the client-defined ID of the node within this task's graph. * @return clientNodeUuid - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "If set, the client-defined ID of the node within this task's graph. ") - public String getClientNodeUuid() { return clientNodeUuid; } - public void setClientNodeUuid(String clientNodeUuid) { this.clientNodeUuid = clientNodeUuid; } @@ -522,6 +466,10 @@ public void setClientNodeUuid(String clientNodeUuid) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the GenericUDF instance itself */ public GenericUDF putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -533,6 +481,8 @@ public GenericUDF putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -540,6 +490,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -649,23 +602,26 @@ private String toIndentedString(Object o) { 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 GenericUDF - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (GenericUDF.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to GenericUDF + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!GenericUDF.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in GenericUDF is not found in the empty JSON string", GenericUDF.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("udf_info_name") != null && !jsonObj.get("udf_info_name").isJsonNull()) && !jsonObj.get("udf_info_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `udf_info_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("udf_info_name").toString())); } + // validate the optional field `language` + if (jsonObj.get("language") != null && !jsonObj.get("language").isJsonNull()) { + UDFLanguage.validateJsonElement(jsonObj.get("language")); + } if ((jsonObj.get("version") != null && !jsonObj.get("version").isJsonNull()) && !jsonObj.get("version").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `version` to be a primitive type in the JSON string but got `%s`", jsonObj.get("version").toString())); } @@ -687,10 +643,14 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if ((jsonObj.get("argument") != null && !jsonObj.get("argument").isJsonNull()) && !jsonObj.get("argument").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `argument` to be a primitive type in the JSON string but got `%s`", jsonObj.get("argument").toString())); } - // ensure the json data is an array - if ((jsonObj.get("stored_param_uuids") != null && !jsonObj.get("stored_param_uuids").isJsonNull()) && !jsonObj.get("stored_param_uuids").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("stored_param_uuids") != null && !jsonObj.get("stored_param_uuids").isJsonNull() && !jsonObj.get("stored_param_uuids").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `stored_param_uuids` to be an array in the JSON string but got `%s`", jsonObj.get("stored_param_uuids").toString())); } + // validate the optional field `result_format` + if (jsonObj.get("result_format") != null && !jsonObj.get("result_format").isJsonNull()) { + ResultFormat.validateJsonElement(jsonObj.get("result_format")); + } if ((jsonObj.get("task_name") != null && !jsonObj.get("task_name").isJsonNull()) && !jsonObj.get("task_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `task_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("task_name").toString())); } @@ -718,7 +678,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, GenericUDF value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -730,7 +690,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -739,8 +704,9 @@ else if (entry.getValue() instanceof Character) @Override public GenericUDF read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance GenericUDF instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -754,8 +720,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -766,22 +734,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of GenericUDF given an JSON string - * - * @param jsonString JSON string - * @return An instance of GenericUDF - * @throws IOException if the JSON string is invalid with respect to GenericUDF - */ + /** + * Create an instance of GenericUDF given an JSON string + * + * @param jsonString JSON string + * @return An instance of GenericUDF + * @throws IOException if the JSON string is invalid with respect to GenericUDF + */ public static GenericUDF fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, GenericUDF.class); } - /** - * Convert an instance of GenericUDF to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of GenericUDF 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/GetTiledbStats200Response.java b/src/main/java/io/tiledb/cloud/rest_api/model/GetTiledbStats200Response.java index 7b9da9a..152ce3e 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,31 +14,42 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.Arrays; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class GetTiledbStats200Response { public static final String SERIALIZED_NAME_STATS = "stats"; @SerializedName(SERIALIZED_NAME_STATS) @@ -48,23 +59,19 @@ public GetTiledbStats200Response() { } public GetTiledbStats200Response stats(String stats) { - this.stats = stats; return this; } - /** + /** * string of stats from tiledb * @return stats - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "123", value = "string of stats from tiledb") - public String getStats() { return stats; } - public void setStats(String stats) { this.stats = stats; } @@ -79,6 +86,10 @@ public void setStats(String stats) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the GetTiledbStats200Response instance itself */ public GetTiledbStats200Response putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -90,6 +101,8 @@ public GetTiledbStats200Response putAdditionalProperty(String key, Object value) /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -97,6 +110,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -158,20 +174,19 @@ private String toIndentedString(Object o) { 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 GetTiledbStats200Response - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (GetTiledbStats200Response.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to GetTiledbStats200Response + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!GetTiledbStats200Response.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in GetTiledbStats200Response is not found in the empty JSON string", GetTiledbStats200Response.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("stats") != null && !jsonObj.get("stats").isJsonNull()) && !jsonObj.get("stats").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `stats` to be a primitive type in the JSON string but got `%s`", jsonObj.get("stats").toString())); } @@ -193,7 +208,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, GetTiledbStats200Response value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -205,7 +220,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -214,8 +234,9 @@ else if (entry.getValue() instanceof Character) @Override public GetTiledbStats200Response read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance GetTiledbStats200Response instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -229,8 +250,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -241,22 +264,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of GetTiledbStats200Response given an JSON string - * - * @param jsonString JSON string - * @return An instance of GetTiledbStats200Response - * @throws IOException if the JSON string is invalid with respect to GetTiledbStats200Response - */ + /** + * Create an instance of GetTiledbStats200Response given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetTiledbStats200Response + * @throws IOException if the JSON string is invalid with respect to GetTiledbStats200Response + */ public static GetTiledbStats200Response fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, GetTiledbStats200Response.class); } - /** - * Convert an instance of GetTiledbStats200Response to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of GetTiledbStats200Response 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/GroupActions.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupActions.java index c163a08..d337b90 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,8 +13,12 @@ package io.tiledb.cloud.rest_api.model; +import java.util.Objects; +import com.google.gson.annotations.SerializedName; + import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -67,5 +71,10 @@ public GroupActions read(final JsonReader jsonReader) throws IOException { return GroupActions.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + GroupActions.fromValue(value); + } } 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..0d02f03 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,40 +14,50 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.GroupInfo; +import io.tiledb.cloud.rest_api.model.PaginationMetadata; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class GroupBrowserData { public static final String SERIALIZED_NAME_GROUPS = "groups"; @SerializedName(SERIALIZED_NAME_GROUPS) - private List groups = null; + private List groups = new ArrayList<>(); public static final String SERIALIZED_NAME_PAGINATION_METADATA = "pagination_metadata"; @SerializedName(SERIALIZED_NAME_PAGINATION_METADATA) @@ -57,7 +67,6 @@ public GroupBrowserData() { } public GroupBrowserData groups(List groups) { - this.groups = groups; return this; } @@ -70,41 +79,34 @@ public GroupBrowserData addGroupsItem(GroupInfo groupsItem) { return this; } - /** + /** * Groups Info * @return groups - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Groups Info") - public List getGroups() { return groups; } - public void setGroups(List groups) { this.groups = groups; } public GroupBrowserData 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; } @@ -119,6 +121,10 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the GroupBrowserData instance itself */ public GroupBrowserData putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -130,6 +136,8 @@ public GroupBrowserData putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -137,6 +145,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -201,35 +212,36 @@ private String toIndentedString(Object o) { 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 GroupBrowserData - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (GroupBrowserData.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to GroupBrowserData + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!GroupBrowserData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in GroupBrowserData is not found in the empty JSON string", GroupBrowserData.openapiRequiredFields.toString())); } } - JsonArray jsonArraygroups = jsonObj.getAsJsonArray("groups"); - if (jsonArraygroups != null) { - // ensure the json data is an array - if (!jsonObj.get("groups").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `groups` to be an array in the JSON string but got `%s`", jsonObj.get("groups").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("groups") != null && !jsonObj.get("groups").isJsonNull()) { + JsonArray jsonArraygroups = jsonObj.getAsJsonArray("groups"); + if (jsonArraygroups != null) { + // ensure the json data is an array + if (!jsonObj.get("groups").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `groups` to be an array in the JSON string but got `%s`", jsonObj.get("groups").toString())); + } + + // validate the optional field `groups` (array) + for (int i = 0; i < jsonArraygroups.size(); i++) { + GroupInfo.validateJsonElement(jsonArraygroups.get(i)); + }; } - - // validate the optional field `groups` (array) - for (int i = 0; i < jsonArraygroups.size(); i++) { - GroupInfo.validateJsonObject(jsonArraygroups.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")); + PaginationMetadata.validateJsonElement(jsonObj.get("pagination_metadata")); } } @@ -249,7 +261,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, GroupBrowserData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -261,7 +273,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -270,8 +287,9 @@ else if (entry.getValue() instanceof Character) @Override public GroupBrowserData read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance GroupBrowserData instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -285,8 +303,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -297,22 +317,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of GroupBrowserData given an JSON string - * - * @param jsonString JSON string - * @return An instance of GroupBrowserData - * @throws IOException if the JSON string is invalid with respect to GroupBrowserData - */ + /** + * Create an instance of GroupBrowserData given an JSON string + * + * @param jsonString JSON string + * @return An instance of GroupBrowserData + * @throws IOException if the JSON string is invalid with respect to GroupBrowserData + */ public static GroupBrowserData fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, GroupBrowserData.class); } - /** - * Convert an instance of GroupBrowserData to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of GroupBrowserData 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/GroupBrowserFilterData.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupBrowserFilterData.java index 336fea5..e63ca9d 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,49 +14,58 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.GroupType; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class GroupBrowserFilterData { public static final String SERIALIZED_NAME_NAMESPACES = "namespaces"; @SerializedName(SERIALIZED_NAME_NAMESPACES) - private List namespaces = null; + private List namespaces = new ArrayList<>(); public static final String SERIALIZED_NAME_GROUP_TYPES = "group_types"; @SerializedName(SERIALIZED_NAME_GROUP_TYPES) - private List groupTypes = null; + private List groupTypes = new ArrayList<>(); public GroupBrowserFilterData() { } public GroupBrowserFilterData namespaces(List namespaces) { - this.namespaces = namespaces; return this; } @@ -69,25 +78,21 @@ public GroupBrowserFilterData addNamespacesItem(String namespacesItem) { return this; } - /** + /** * list of all unique namespaces to display * @return namespaces - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "list of all unique namespaces to display") - public List getNamespaces() { return namespaces; } - public void setNamespaces(List namespaces) { this.namespaces = namespaces; } public GroupBrowserFilterData groupTypes(List groupTypes) { - this.groupTypes = groupTypes; return this; } @@ -100,18 +105,15 @@ public GroupBrowserFilterData addGroupTypesItem(GroupType groupTypesItem) { return this; } - /** + /** * list of all available group types to display * @return groupTypes - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "list of all available group types to display") - public List getGroupTypes() { return groupTypes; } - public void setGroupTypes(List groupTypes) { this.groupTypes = groupTypes; } @@ -126,6 +128,10 @@ public void setGroupTypes(List groupTypes) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the GroupBrowserFilterData instance itself */ public GroupBrowserFilterData putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -137,6 +143,8 @@ public GroupBrowserFilterData putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -144,6 +152,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -208,26 +219,25 @@ private String toIndentedString(Object o) { 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 GroupBrowserFilterData - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (GroupBrowserFilterData.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to GroupBrowserFilterData + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!GroupBrowserFilterData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in GroupBrowserFilterData is not found in the empty JSON string", GroupBrowserFilterData.openapiRequiredFields.toString())); } } - // ensure the json data is an array - if ((jsonObj.get("namespaces") != null && !jsonObj.get("namespaces").isJsonNull()) && !jsonObj.get("namespaces").isJsonArray()) { + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + 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())); } - // ensure the json data is an array - if ((jsonObj.get("group_types") != null && !jsonObj.get("group_types").isJsonNull()) && !jsonObj.get("group_types").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("group_types") != null && !jsonObj.get("group_types").isJsonNull() && !jsonObj.get("group_types").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `group_types` to be an array in the JSON string but got `%s`", jsonObj.get("group_types").toString())); } } @@ -248,7 +258,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, GroupBrowserFilterData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -260,7 +270,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -269,8 +284,9 @@ else if (entry.getValue() instanceof Character) @Override public GroupBrowserFilterData read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance GroupBrowserFilterData instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -284,8 +300,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -296,22 +314,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of GroupBrowserFilterData given an JSON string - * - * @param jsonString JSON string - * @return An instance of GroupBrowserFilterData - * @throws IOException if the JSON string is invalid with respect to GroupBrowserFilterData - */ + /** + * Create an instance of GroupBrowserFilterData given an JSON string + * + * @param jsonString JSON string + * @return An instance of GroupBrowserFilterData + * @throws IOException if the JSON string is invalid with respect to GroupBrowserFilterData + */ public static GroupBrowserFilterData fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, GroupBrowserFilterData.class); } - /** - * Convert an instance of GroupBrowserFilterData to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of GroupBrowserFilterData 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/GroupChanges.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupChanges.java index d78ff41..eb9013d 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,50 +14,58 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.GroupMember; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class GroupChanges { public static final String SERIALIZED_NAME_ADD = "add"; @SerializedName(SERIALIZED_NAME_ADD) - private List add = null; + private List add = new ArrayList<>(); public static final String SERIALIZED_NAME_REMOVE = "remove"; @SerializedName(SERIALIZED_NAME_REMOVE) - private List remove = null; + private List remove = new ArrayList<>(); public GroupChanges() { } public GroupChanges add(List add) { - this.add = add; return this; } @@ -70,25 +78,21 @@ public GroupChanges addAddItem(GroupMember addItem) { return this; } - /** + /** * the assets, arrays or groups, to add to the group. * @return add - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "the assets, arrays or groups, to add to the group.") - public List getAdd() { return add; } - public void setAdd(List add) { this.add = add; } public GroupChanges remove(List remove) { - this.remove = remove; return this; } @@ -101,18 +105,15 @@ public GroupChanges addRemoveItem(GroupMember removeItem) { return this; } - /** + /** * the assets, arrays or groups, to remove from the group. * @return remove - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "the assets, arrays or groups, to remove from the group.") - public List getRemove() { return remove; } - public void setRemove(List remove) { this.remove = remove; } @@ -127,6 +128,10 @@ public void setRemove(List remove) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the GroupChanges instance itself */ public GroupChanges putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -138,6 +143,8 @@ public GroupChanges putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -145,6 +152,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -209,43 +219,46 @@ private String toIndentedString(Object o) { 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 GroupChanges - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (GroupChanges.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to GroupChanges + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!GroupChanges.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in GroupChanges is not found in the empty JSON string", GroupChanges.openapiRequiredFields.toString())); } } - JsonArray jsonArrayadd = jsonObj.getAsJsonArray("add"); - if (jsonArrayadd != null) { - // ensure the json data is an array - if (!jsonObj.get("add").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `add` to be an array in the JSON string but got `%s`", jsonObj.get("add").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("add") != null && !jsonObj.get("add").isJsonNull()) { + JsonArray jsonArrayadd = jsonObj.getAsJsonArray("add"); + if (jsonArrayadd != null) { + // ensure the json data is an array + if (!jsonObj.get("add").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `add` to be an array in the JSON string but got `%s`", jsonObj.get("add").toString())); + } + + // validate the optional field `add` (array) + for (int i = 0; i < jsonArrayadd.size(); i++) { + GroupMember.validateJsonElement(jsonArrayadd.get(i)); + }; } - - // validate the optional field `add` (array) - for (int i = 0; i < jsonArrayadd.size(); i++) { - GroupMember.validateJsonObject(jsonArrayadd.get(i).getAsJsonObject()); - }; } - JsonArray jsonArrayremove = jsonObj.getAsJsonArray("remove"); - if (jsonArrayremove != null) { - // ensure the json data is an array - if (!jsonObj.get("remove").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `remove` to be an array in the JSON string but got `%s`", jsonObj.get("remove").toString())); + if (jsonObj.get("remove") != null && !jsonObj.get("remove").isJsonNull()) { + JsonArray jsonArrayremove = jsonObj.getAsJsonArray("remove"); + if (jsonArrayremove != null) { + // ensure the json data is an array + if (!jsonObj.get("remove").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `remove` to be an array in the JSON string but got `%s`", jsonObj.get("remove").toString())); + } + + // validate the optional field `remove` (array) + for (int i = 0; i < jsonArrayremove.size(); i++) { + GroupMember.validateJsonElement(jsonArrayremove.get(i)); + }; } - - // validate the optional field `remove` (array) - for (int i = 0; i < jsonArrayremove.size(); i++) { - GroupMember.validateJsonObject(jsonArrayremove.get(i).getAsJsonObject()); - }; } } @@ -265,7 +278,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, GroupChanges value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -277,7 +290,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -286,8 +304,9 @@ else if (entry.getValue() instanceof Character) @Override public GroupChanges read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance GroupChanges instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -301,8 +320,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -313,22 +334,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of GroupChanges given an JSON string - * - * @param jsonString JSON string - * @return An instance of GroupChanges - * @throws IOException if the JSON string is invalid with respect to GroupChanges - */ + /** + * Create an instance of GroupChanges given an JSON string + * + * @param jsonString JSON string + * @return An instance of GroupChanges + * @throws IOException if the JSON string is invalid with respect to GroupChanges + */ public static GroupChanges fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, GroupChanges.class); } - /** - * Convert an instance of GroupChanges to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of GroupChanges 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/GroupContentActivity.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivity.java new file mode 100644 index 0000000..efd9dae --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivity.java @@ -0,0 +1,320 @@ +/* + * 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.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.ArrayActivityLog; +import io.tiledb.cloud.rest_api.model.GroupContentActivityAsset; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.tiledb.cloud.rest_api.JSON; + +/** + * Object containing activity of an asset of a group + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +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 + 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 + 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. + * + * @param key name of the property + * @param value value of the property + * @return the GroupContentActivity instance itself + */ + 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. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + 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 Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to GroupContentActivity + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!GroupContentActivity.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in GroupContentActivity is not found in the empty JSON string", GroupContentActivity.openapiRequiredFields.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `asset` + if (jsonObj.get("asset") != null && !jsonObj.get("asset").isJsonNull()) { + GroupContentActivityAsset.validateJsonElement(jsonObj.get("asset")); + } + // validate the optional field `activity_log` + if (jsonObj.get("activity_log") != null && !jsonObj.get("activity_log").isJsonNull()) { + ArrayActivityLog.validateJsonElement(jsonObj.get("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 additional 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 { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public GroupContentActivity read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // 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 if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + 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..d2e0cfc --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivityAsset.java @@ -0,0 +1,376 @@ +/* + * 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.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.AssetType; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.tiledb.cloud.rest_api.JSON; + +/** + * The asset details + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +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 + 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 + 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 + 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 + 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. + * + * @param key name of the property + * @param value value of the property + * @return the GroupContentActivityAsset instance itself + */ + 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. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + 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 Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to GroupContentActivityAsset + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!GroupContentActivityAsset.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in GroupContentActivityAsset is not found in the empty JSON string", GroupContentActivityAsset.openapiRequiredFields.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + 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())); + } + // validate the optional field `asset_type` + if (jsonObj.get("asset_type") != null && !jsonObj.get("asset_type").isJsonNull()) { + AssetType.validateJsonElement(jsonObj.get("asset_type")); + } + } + + 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 additional 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 { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public GroupContentActivityAsset read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // 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 if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + 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..a81089e --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentActivityResponse.java @@ -0,0 +1,340 @@ +/* + * 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.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.GroupContentActivity; +import io.tiledb.cloud.rest_api.model.PaginationMetadata; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.tiledb.cloud.rest_api.JSON; + +/** + * Object containing activity logs of group content along with the pagination metadata + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +public class GroupContentActivityResponse { + public static final String SERIALIZED_NAME_ACTIVITY = "activity"; + @SerializedName(SERIALIZED_NAME_ACTIVITY) + private List activity = new ArrayList<>(); + + 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 + 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 + 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. + * + * @param key name of the property + * @param value value of the property + * @return the GroupContentActivityResponse instance itself + */ + 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. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + 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 Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to GroupContentActivityResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!GroupContentActivityResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in GroupContentActivityResponse is not found in the empty JSON string", GroupContentActivityResponse.openapiRequiredFields.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("activity") != null && !jsonObj.get("activity").isJsonNull()) { + 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.validateJsonElement(jsonArrayactivity.get(i)); + }; + } + } + // validate the optional field `pagination_metadata` + if (jsonObj.get("pagination_metadata") != null && !jsonObj.get("pagination_metadata").isJsonNull()) { + PaginationMetadata.validateJsonElement(jsonObj.get("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 additional 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 { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public GroupContentActivityResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // 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 if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + 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..3dc72ab 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,39 +14,50 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.GroupEntry; +import io.tiledb.cloud.rest_api.model.PaginationMetadata; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class GroupContents { public static final String SERIALIZED_NAME_ENTRIES = "entries"; @SerializedName(SERIALIZED_NAME_ENTRIES) - private List entries = null; + private List entries = new ArrayList<>(); public static final String SERIALIZED_NAME_PAGINATION_METADATA = "pagination_metadata"; @SerializedName(SERIALIZED_NAME_PAGINATION_METADATA) @@ -56,7 +67,6 @@ public GroupContents() { } public GroupContents entries(List entries) { - this.entries = entries; return this; } @@ -69,41 +79,34 @@ public GroupContents addEntriesItem(GroupEntry entriesItem) { return this; } - /** + /** * Groups members * @return entries - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Groups members") - public List getEntries() { return entries; } - public void setEntries(List entries) { this.entries = entries; } public GroupContents 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; } @@ -118,6 +121,10 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the GroupContents instance itself */ public GroupContents putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -129,6 +136,8 @@ public GroupContents putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -136,6 +145,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -200,35 +212,36 @@ private String toIndentedString(Object o) { 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 GroupContents - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (GroupContents.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to GroupContents + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!GroupContents.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in GroupContents is not found in the empty JSON string", GroupContents.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())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("entries") != null && !jsonObj.get("entries").isJsonNull()) { + 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++) { + GroupEntry.validateJsonElement(jsonArrayentries.get(i)); + }; } - - // validate the optional field `entries` (array) - for (int i = 0; i < jsonArrayentries.size(); i++) { - GroupEntry.validateJsonObject(jsonArrayentries.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")); + PaginationMetadata.validateJsonElement(jsonObj.get("pagination_metadata")); } } @@ -248,7 +261,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, GroupContents value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -260,7 +273,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -269,8 +287,9 @@ else if (entry.getValue() instanceof Character) @Override public GroupContents read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance GroupContents instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -284,8 +303,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -296,22 +317,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of GroupContents given an JSON string - * - * @param jsonString JSON string - * @return An instance of GroupContents - * @throws IOException if the JSON string is invalid with respect to GroupContents - */ + /** + * Create an instance of GroupContents given an JSON string + * + * @param jsonString JSON string + * @return An instance of GroupContents + * @throws IOException if the JSON string is invalid with respect to GroupContents + */ public static GroupContents fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, GroupContents.class); } - /** - * Convert an instance of GroupContents to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of GroupContents 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/GroupContentsFilterData.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupContentsFilterData.java index 2c2c072..add6d17 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,44 +14,53 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class GroupContentsFilterData { public static final String SERIALIZED_NAME_NAMESPACES = "namespaces"; @SerializedName(SERIALIZED_NAME_NAMESPACES) - private List namespaces = null; + private List namespaces = new ArrayList<>(); public GroupContentsFilterData() { } public GroupContentsFilterData namespaces(List namespaces) { - this.namespaces = namespaces; return this; } @@ -64,18 +73,15 @@ public GroupContentsFilterData addNamespacesItem(String namespacesItem) { return this; } - /** + /** * list of all unique namespaces to display * @return namespaces - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "list of all unique namespaces to display") - public List getNamespaces() { return namespaces; } - public void setNamespaces(List namespaces) { this.namespaces = namespaces; } @@ -90,6 +96,10 @@ public void setNamespaces(List namespaces) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the GroupContentsFilterData instance itself */ public GroupContentsFilterData putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -101,6 +111,8 @@ public GroupContentsFilterData putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -108,6 +120,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -169,22 +184,21 @@ private String toIndentedString(Object o) { 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 GroupContentsFilterData - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (GroupContentsFilterData.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to GroupContentsFilterData + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!GroupContentsFilterData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in GroupContentsFilterData is not found in the empty JSON string", GroupContentsFilterData.openapiRequiredFields.toString())); } } - // ensure the json data is an array - if ((jsonObj.get("namespaces") != null && !jsonObj.get("namespaces").isJsonNull()) && !jsonObj.get("namespaces").isJsonArray()) { + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + 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())); } } @@ -205,7 +219,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, GroupContentsFilterData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -217,7 +231,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -226,8 +245,9 @@ else if (entry.getValue() instanceof Character) @Override public GroupContentsFilterData read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance GroupContentsFilterData instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -241,8 +261,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -253,22 +275,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of GroupContentsFilterData given an JSON string - * - * @param jsonString JSON string - * @return An instance of GroupContentsFilterData - * @throws IOException if the JSON string is invalid with respect to GroupContentsFilterData - */ + /** + * Create an instance of GroupContentsFilterData given an JSON string + * + * @param jsonString JSON string + * @return An instance of GroupContentsFilterData + * @throws IOException if the JSON string is invalid with respect to GroupContentsFilterData + */ public static GroupContentsFilterData fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, GroupContentsFilterData.class); } - /** - * Convert an instance of GroupContentsFilterData to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of GroupContentsFilterData 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/GroupCreate.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupCreate.java index f10112b..e590254 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,34 +14,44 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class GroupCreate { public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) @@ -69,7 +79,7 @@ public class GroupCreate { public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) - private List tags = null; + private List tags = new ArrayList<>(); public static final String SERIALIZED_NAME_LICENSE_ID = "license_id"; @SerializedName(SERIALIZED_NAME_LICENSE_ID) @@ -83,145 +93,120 @@ public GroupCreate() { } public GroupCreate description(String description) { - this.description = description; return this; } - /** + /** * A human readable description of the contents of the group. * @return description - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "A human readable description of the contents of the group.") - public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } public GroupCreate name(String name) { - this.name = name; return this; } - /** + /** * The name of the group. If must be unique within the group. * @return name - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The name of the group. If must be unique within the group.") - public String getName() { return name; } - public void setName(String name) { this.name = name; } public GroupCreate parent(String parent) { - this.parent = parent; return this; } - /** + /** * The unique name or id of the parent of the group. If empty, then the new group will be a top level group. * @return parent - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The unique name or id of the parent of the group. If empty, then the new group will be a top level group.") - public String getParent() { return parent; } - public void setParent(String parent) { this.parent = parent; } public GroupCreate uri(String uri) { - this.uri = uri; return this; } - /** + /** * uri of group. * @return uri - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "uri of group.") - public String getUri() { return uri; } - public void setUri(String uri) { this.uri = uri; } public GroupCreate logo(String logo) { - this.logo = logo; return this; } - /** + /** * logo (base64 encoded) for the group. Optional * @return logo - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "logo (base64 encoded) for the group. Optional") - public String getLogo() { return logo; } - public void setLogo(String logo) { this.logo = logo; } public GroupCreate accessCredentialsName(String accessCredentialsName) { - this.accessCredentialsName = accessCredentialsName; return this; } - /** + /** * the name of the access credentials to use. if unset, the default credentials will be used. * @return accessCredentialsName - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "the name of the access credentials to use. if unset, the default credentials will be used.") - public String getAccessCredentialsName() { return accessCredentialsName; } - public void setAccessCredentialsName(String accessCredentialsName) { this.accessCredentialsName = accessCredentialsName; } public GroupCreate tags(List tags) { - this.tags = tags; return this; } @@ -234,64 +219,53 @@ public GroupCreate addTagsItem(String tagsItem) { return this; } - /** + /** * optional tags for groups. * @return tags - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "optional tags for groups.") - public List getTags() { return tags; } - public void setTags(List tags) { this.tags = tags; } public GroupCreate licenseId(String licenseId) { - this.licenseId = licenseId; return this; } - /** + /** * License identifier from SPDX License List or Custom. * @return licenseId - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "License identifier from SPDX License List or Custom.") - public String getLicenseId() { return licenseId; } - public void setLicenseId(String licenseId) { this.licenseId = licenseId; } public GroupCreate licenseText(String licenseText) { - this.licenseText = licenseText; return this; } - /** + /** * License text * @return licenseText - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "License text") - public String getLicenseText() { return licenseText; } - public void setLicenseText(String licenseText) { this.licenseText = licenseText; } @@ -306,6 +280,10 @@ public void setLicenseText(String licenseText) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the GroupCreate instance itself */ public GroupCreate putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -317,6 +295,8 @@ public GroupCreate putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -324,6 +304,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -409,20 +392,19 @@ private String toIndentedString(Object o) { 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 GroupCreate - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (GroupCreate.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to GroupCreate + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!GroupCreate.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in GroupCreate is not found in the empty JSON string", GroupCreate.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); } @@ -441,8 +423,8 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if ((jsonObj.get("access_credentials_name") != null && !jsonObj.get("access_credentials_name").isJsonNull()) && !jsonObj.get("access_credentials_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `access_credentials_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("access_credentials_name").toString())); } - // ensure the json data is an array - if ((jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) && !jsonObj.get("tags").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull() && !jsonObj.get("tags").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); } if ((jsonObj.get("license_id") != null && !jsonObj.get("license_id").isJsonNull()) && !jsonObj.get("license_id").isJsonPrimitive()) { @@ -469,7 +451,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, GroupCreate value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -481,7 +463,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -490,8 +477,9 @@ else if (entry.getValue() instanceof Character) @Override public GroupCreate read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance GroupCreate instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -505,8 +493,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -517,22 +507,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of GroupCreate given an JSON string - * - * @param jsonString JSON string - * @return An instance of GroupCreate - * @throws IOException if the JSON string is invalid with respect to GroupCreate - */ + /** + * Create an instance of GroupCreate given an JSON string + * + * @param jsonString JSON string + * @return An instance of GroupCreate + * @throws IOException if the JSON string is invalid with respect to GroupCreate + */ public static GroupCreate fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, GroupCreate.class); } - /** - * Convert an instance of GroupCreate to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of GroupCreate 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/GroupEntry.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupEntry.java index 9c9e8b3..b67782d 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,33 +14,44 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.ArrayInfo; +import io.tiledb.cloud.rest_api.model.GroupInfo; import java.io.IOException; +import java.util.Arrays; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class GroupEntry { public static final String SERIALIZED_NAME_MEMBER_ID = "member_id"; @SerializedName(SERIALIZED_NAME_MEMBER_ID) @@ -57,7 +68,6 @@ public class GroupEntry { public GroupEntry() { } - public GroupEntry( String memberId ) { @@ -65,61 +75,50 @@ public GroupEntry( this.memberId = memberId; } - /** + /** * The unique member id for the entry * @return memberId - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The unique member id for the entry") - public String getMemberId() { return memberId; } - public GroupEntry group(GroupInfo group) { - this.group = group; return this; } - /** + /** * Get group * @return group - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public GroupInfo getGroup() { return group; } - public void setGroup(GroupInfo group) { this.group = group; } public GroupEntry array(ArrayInfo array) { - this.array = array; return this; } - /** + /** * Get array * @return array - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public ArrayInfo getArray() { return array; } - public void setArray(ArrayInfo array) { this.array = array; } @@ -134,6 +133,10 @@ public void setArray(ArrayInfo array) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the GroupEntry instance itself */ public GroupEntry putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -145,6 +148,8 @@ public GroupEntry putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -152,6 +157,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -219,30 +227,29 @@ private String toIndentedString(Object o) { 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 GroupEntry - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (GroupEntry.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to GroupEntry + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!GroupEntry.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in GroupEntry is not found in the empty JSON string", GroupEntry.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("member_id") != null && !jsonObj.get("member_id").isJsonNull()) && !jsonObj.get("member_id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `member_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("member_id").toString())); } // validate the optional field `group` if (jsonObj.get("group") != null && !jsonObj.get("group").isJsonNull()) { - GroupInfo.validateJsonObject(jsonObj.getAsJsonObject("group")); + GroupInfo.validateJsonElement(jsonObj.get("group")); } // validate the optional field `array` if (jsonObj.get("array") != null && !jsonObj.get("array").isJsonNull()) { - ArrayInfo.validateJsonObject(jsonObj.getAsJsonObject("array")); + ArrayInfo.validateJsonElement(jsonObj.get("array")); } } @@ -262,7 +269,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, GroupEntry value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -274,7 +281,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -283,8 +295,9 @@ else if (entry.getValue() instanceof Character) @Override public GroupEntry read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance GroupEntry instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -298,8 +311,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -310,22 +325,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of GroupEntry given an JSON string - * - * @param jsonString JSON string - * @return An instance of GroupEntry - * @throws IOException if the JSON string is invalid with respect to GroupEntry - */ + /** + * Create an instance of GroupEntry given an JSON string + * + * @param jsonString JSON string + * @return An instance of GroupEntry + * @throws IOException if the JSON string is invalid with respect to GroupEntry + */ public static GroupEntry fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, GroupEntry.class); } - /** - * Convert an instance of GroupEntry to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of GroupEntry 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/GroupInfo.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupInfo.java index 13f5d45..2ba7132 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). @@ -14,37 +14,50 @@ 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.JsonAdapter; 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 io.tiledb.cloud.rest_api.model.GroupActions; +import io.tiledb.cloud.rest_api.model.GroupType; +import io.tiledb.cloud.rest_api.model.MetadataStringifiedEntry; import java.io.IOException; import java.math.BigDecimal; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.Arrays; 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.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; + +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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class GroupInfo { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -88,7 +101,7 @@ public class GroupInfo { public static final String SERIALIZED_NAME_ALLOWED_ACTIONS = "allowed_actions"; @SerializedName(SERIALIZED_NAME_ALLOWED_ACTIONS) - private List allowedActions = null; + private List allowedActions = new ArrayList<>(); public static final String SERIALIZED_NAME_GROUP_TYPE = "group_type"; @SerializedName(SERIALIZED_NAME_GROUP_TYPE) @@ -112,7 +125,7 @@ public class GroupInfo { public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) - private List tags = null; + private List tags = new ArrayList<>(); public static final String SERIALIZED_NAME_LICENSE_ID = "license_id"; @SerializedName(SERIALIZED_NAME_LICENSE_ID) @@ -122,241 +135,212 @@ 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 = new ArrayList<>(); + public GroupInfo() { } public GroupInfo id(String id) { - this.id = id; return this; } - /** + /** * unique ID of registered group * @return id - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", value = "unique ID of registered group") - public String getId() { return id; } - public void setId(String id) { this.id = id; } public GroupInfo namespace(String namespace) { - this.namespace = namespace; return this; } - /** + /** * namespace group is in * @return namespace - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "user1", value = "namespace group is in") - public String getNamespace() { return namespace; } - public void setNamespace(String namespace) { this.namespace = namespace; } public GroupInfo name(String name) { - this.name = name; return this; } - /** + /** * name of group * @return name - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "myarray1", value = "name of group") - public String getName() { return name; } - public void setName(String name) { this.name = name; } public GroupInfo description(String description) { - this.description = description; return this; } - /** + /** * description of group * @return description - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "description of group") - public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } public GroupInfo uri(String uri) { - this.uri = uri; return this; } - /** + /** * uri of group * @return uri - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "s3://bucket/asset", value = "uri of group") - public String getUri() { return uri; } - public void setUri(String uri) { this.uri = uri; } public GroupInfo tiledbUri(String tiledbUri) { - this.tiledbUri = tiledbUri; return this; } - /** + /** * uri for access through TileDB cloud * @return tiledbUri - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "uri for access through TileDB cloud") - public String getTiledbUri() { return tiledbUri; } - public void setTiledbUri(String tiledbUri) { this.tiledbUri = tiledbUri; } public GroupInfo assetCount(BigDecimal assetCount) { - this.assetCount = assetCount; return this; } - /** + /** * A count of direct array members * @return assetCount - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "12.0", value = "A count of direct array members") - public BigDecimal getAssetCount() { return assetCount; } - public void setAssetCount(BigDecimal assetCount) { this.assetCount = assetCount; } public GroupInfo groupCount(BigDecimal groupCount) { - this.groupCount = groupCount; return this; } - /** + /** * A count of direct group members * @return groupCount - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "4.0", value = "A count of direct group members") - public BigDecimal getGroupCount() { return groupCount; } - public void setGroupCount(BigDecimal groupCount) { this.groupCount = groupCount; } public GroupInfo size(BigDecimal size) { - this.size = size; return this; } - /** + /** * A count of direct members. This is the sum of asset_count and group_count * @return size - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "16.0", value = "A count of direct members. This is the sum of asset_count and group_count") - public BigDecimal getSize() { return size; } - public void setSize(BigDecimal size) { this.size = size; } public GroupInfo lastAccessed(OffsetDateTime lastAccessed) { - this.lastAccessed = lastAccessed; return this; } - /** + /** * Datetime groups was last accessed in UTC * @return lastAccessed - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Datetime groups was last accessed in UTC") - public OffsetDateTime getLastAccessed() { return lastAccessed; } - public void setLastAccessed(OffsetDateTime lastAccessed) { this.lastAccessed = lastAccessed; } public GroupInfo allowedActions(List allowedActions) { - this.allowedActions = allowedActions; return this; } @@ -369,140 +353,116 @@ public GroupInfo addAllowedActionsItem(GroupActions allowedActionsItem) { return this; } - /** + /** * list of actions user is allowed to do on this group * @return allowedActions - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "list of actions user is allowed to do on this group") - public List getAllowedActions() { return allowedActions; } - public void setAllowedActions(List allowedActions) { this.allowedActions = allowedActions; } public GroupInfo groupType(GroupType groupType) { - this.groupType = groupType; return this; } - /** + /** * Get groupType * @return groupType - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public GroupType getGroupType() { return groupType; } - public void setGroupType(GroupType groupType) { this.groupType = groupType; } public GroupInfo logo(String logo) { - this.logo = logo; return this; } - /** + /** * logo (base64 encoded) for the gruop. Optional * @return logo - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "logo (base64 encoded) for the gruop. Optional") - public String getLogo() { return logo; } - public void setLogo(String logo) { this.logo = logo; } public GroupInfo accessCredentialsName(String accessCredentialsName) { - this.accessCredentialsName = accessCredentialsName; return this; } - /** + /** * the name of the access credentials to use. if unset, the default credentials will be used * @return accessCredentialsName - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "the name of the access credentials to use. if unset, the default credentials will be used") - public String getAccessCredentialsName() { return accessCredentialsName; } - public void setAccessCredentialsName(String accessCredentialsName) { this.accessCredentialsName = accessCredentialsName; } public GroupInfo shareCount(BigDecimal shareCount) { - this.shareCount = shareCount; return this; } - /** + /** * number of unique namespaces this group is shared with * @return shareCount - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "number of unique namespaces this group is shared with") - public BigDecimal getShareCount() { return shareCount; } - public void setShareCount(BigDecimal shareCount) { this.shareCount = shareCount; } public GroupInfo publicShare(Boolean publicShare) { - this.publicShare = publicShare; return this; } - /** + /** * Suggests if the group was shared to public by owner * @return publicShare - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "true", value = "Suggests if the group was shared to public by owner") - public Boolean getPublicShare() { return publicShare; } - public void setPublicShare(Boolean publicShare) { this.publicShare = publicShare; } public GroupInfo tags(List tags) { - this.tags = tags; return this; } @@ -515,68 +475,122 @@ public GroupInfo addTagsItem(String tagsItem) { return this; } - /** + /** * optional tags for group * @return tags - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "optional tags for group") - public List getTags() { return tags; } - public void setTags(List tags) { this.tags = tags; } public GroupInfo licenseId(String licenseId) { - this.licenseId = licenseId; return this; } - /** + /** * License identifier from SPDX License List or Custom * @return licenseId - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "License identifier from SPDX License List or Custom") - public String getLicenseId() { return licenseId; } - public void setLicenseId(String licenseId) { this.licenseId = licenseId; } public GroupInfo licenseText(String licenseText) { - this.licenseText = licenseText; return this; } - /** + /** * License text * @return licenseText - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "License text") - public String getLicenseText() { return licenseText; } - 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 + 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 + 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 + 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 @@ -587,6 +601,10 @@ public void setLicenseText(String licenseText) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the GroupInfo instance itself */ public GroupInfo putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -598,6 +616,8 @@ public GroupInfo putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -605,6 +625,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -641,7 +664,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 +677,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 +710,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,25 +755,27 @@ 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(); } - /** - * 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 GroupInfo - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (GroupInfo.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to GroupInfo + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!GroupInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in GroupInfo is not found in the empty JSON string", GroupInfo.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); } @@ -763,18 +794,22 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if ((jsonObj.get("tiledb_uri") != null && !jsonObj.get("tiledb_uri").isJsonNull()) && !jsonObj.get("tiledb_uri").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `tiledb_uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tiledb_uri").toString())); } - // ensure the json data is an array - if ((jsonObj.get("allowed_actions") != null && !jsonObj.get("allowed_actions").isJsonNull()) && !jsonObj.get("allowed_actions").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("allowed_actions") != null && !jsonObj.get("allowed_actions").isJsonNull() && !jsonObj.get("allowed_actions").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `allowed_actions` to be an array in the JSON string but got `%s`", jsonObj.get("allowed_actions").toString())); } + // validate the optional field `group_type` + if (jsonObj.get("group_type") != null && !jsonObj.get("group_type").isJsonNull()) { + GroupType.validateJsonElement(jsonObj.get("group_type")); + } 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("access_credentials_name") != null && !jsonObj.get("access_credentials_name").isJsonNull()) && !jsonObj.get("access_credentials_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `access_credentials_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("access_credentials_name").toString())); } - // ensure the json data is an array - if ((jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) && !jsonObj.get("tags").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull() && !jsonObj.get("tags").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); } if ((jsonObj.get("license_id") != null && !jsonObj.get("license_id").isJsonNull()) && !jsonObj.get("license_id").isJsonPrimitive()) { @@ -783,6 +818,23 @@ 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())); + } + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + 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.validateJsonElement(jsonArraymetadata.get(i)); + }; + } + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -801,7 +853,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, GroupInfo value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -813,7 +865,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -822,8 +879,9 @@ else if (entry.getValue() instanceof Character) @Override public GroupInfo read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance GroupInfo instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -837,8 +895,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -849,22 +909,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of GroupInfo given an JSON string - * - * @param jsonString JSON string - * @return An instance of GroupInfo - * @throws IOException if the JSON string is invalid with respect to GroupInfo - */ + /** + * Create an instance of GroupInfo given an JSON string + * + * @param jsonString JSON string + * @return An instance of GroupInfo + * @throws IOException if the JSON string is invalid with respect to GroupInfo + */ public static GroupInfo fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, GroupInfo.class); } - /** - * Convert an instance of GroupInfo to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of GroupInfo 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/GroupMember.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupMember.java index df2b9b1..1b0baed 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,32 +14,43 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.GroupMemberType; import java.io.IOException; +import java.util.Arrays; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class GroupMember { public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; @SerializedName(SERIALIZED_NAME_NAMESPACE) @@ -57,69 +68,57 @@ public GroupMember() { } public GroupMember namespace(String namespace) { - this.namespace = namespace; return this; } - /** + /** * The namespace of the asset. * @return namespace - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The namespace of the asset.") - public String getNamespace() { return namespace; } - public void setNamespace(String namespace) { this.namespace = namespace; } public GroupMember name(String name) { - this.name = name; return this; } - /** + /** * The name or id of the asset. * @return name - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The name or id of the asset.") - public String getName() { return name; } - public void setName(String name) { this.name = name; } public GroupMember memberType(GroupMemberType memberType) { - this.memberType = memberType; return this; } - /** + /** * Get memberType * @return memberType - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public GroupMemberType getMemberType() { return memberType; } - public void setMemberType(GroupMemberType memberType) { this.memberType = memberType; } @@ -134,6 +133,10 @@ public void setMemberType(GroupMemberType memberType) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the GroupMember instance itself */ public GroupMember putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -145,6 +148,8 @@ public GroupMember putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -152,6 +157,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -219,26 +227,29 @@ private String toIndentedString(Object o) { 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 GroupMember - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (GroupMember.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to GroupMember + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!GroupMember.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in GroupMember is not found in the empty JSON string", GroupMember.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); } 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())); } + // validate the optional field `member_type` + if (jsonObj.get("member_type") != null && !jsonObj.get("member_type").isJsonNull()) { + GroupMemberType.validateJsonElement(jsonObj.get("member_type")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -257,7 +268,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, GroupMember value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -269,7 +280,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -278,8 +294,9 @@ else if (entry.getValue() instanceof Character) @Override public GroupMember read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance GroupMember instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -293,8 +310,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -305,22 +324,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of GroupMember given an JSON string - * - * @param jsonString JSON string - * @return An instance of GroupMember - * @throws IOException if the JSON string is invalid with respect to GroupMember - */ + /** + * Create an instance of GroupMember given an JSON string + * + * @param jsonString JSON string + * @return An instance of GroupMember + * @throws IOException if the JSON string is invalid with respect to GroupMember + */ public static GroupMember fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, GroupMember.class); } - /** - * Convert an instance of GroupMember to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of GroupMember 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/GroupMemberAssetType.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupMemberAssetType.java index 079806a..f988171 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,8 +13,12 @@ package io.tiledb.cloud.rest_api.model; +import java.util.Objects; +import com.google.gson.annotations.SerializedName; + import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -89,5 +93,10 @@ public GroupMemberAssetType read(final JsonReader jsonReader) throws IOException return GroupMemberAssetType.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + GroupMemberAssetType.fromValue(value); + } } 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..67ddcf1 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,8 +13,12 @@ package io.tiledb.cloud.rest_api.model; +import java.util.Objects; +import com.google.gson.annotations.SerializedName; + import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -65,5 +69,10 @@ public GroupMemberType read(final JsonReader jsonReader) throws IOException { return GroupMemberType.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + GroupMemberType.fromValue(value); + } } 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..30343ef 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,34 +14,44 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class GroupRegister { public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) @@ -69,7 +79,7 @@ public class GroupRegister { public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) - private List tags = null; + private List tags = new ArrayList<>(); public static final String SERIALIZED_NAME_LICENSE_ID = "license_id"; @SerializedName(SERIALIZED_NAME_LICENSE_ID) @@ -83,145 +93,120 @@ public GroupRegister() { } public GroupRegister description(String description) { - this.description = description; return this; } - /** + /** * A human readable description of the contents of the group. * @return description - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "A human readable description of the contents of the group.") - public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } public GroupRegister name(String name) { - this.name = name; return this; } - /** + /** * The name of the group. If must be unique within the group. * @return name - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The name of the group. If must be unique within the group.") - public String getName() { return name; } - public void setName(String name) { this.name = name; } public GroupRegister parent(String parent) { - this.parent = parent; return this; } - /** + /** * The unique name or id of the parent of the group. If empty, then the new group will be a top level group. * @return parent - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The unique name or id of the parent of the group. If empty, then the new group will be a top level group.") - public String getParent() { return parent; } - public void setParent(String parent) { this.parent = parent; } public GroupRegister uri(String uri) { - this.uri = uri; return this; } - /** + /** * uri of group. * @return uri - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "uri of group.") - public String getUri() { return uri; } - public void setUri(String uri) { this.uri = uri; } public GroupRegister logo(String logo) { - this.logo = logo; return this; } - /** + /** * logo (base64 encoded) for the group. Optional * @return logo - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "logo (base64 encoded) for the group. Optional") - public String getLogo() { return logo; } - public void setLogo(String logo) { this.logo = logo; } public GroupRegister accessCredentialsName(String accessCredentialsName) { - this.accessCredentialsName = accessCredentialsName; return this; } - /** + /** * the name of the access credentials to use. if unset, the default credentials will be used. * @return accessCredentialsName - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "the name of the access credentials to use. if unset, the default credentials will be used.") - public String getAccessCredentialsName() { return accessCredentialsName; } - public void setAccessCredentialsName(String accessCredentialsName) { this.accessCredentialsName = accessCredentialsName; } public GroupRegister tags(List tags) { - this.tags = tags; return this; } @@ -234,64 +219,53 @@ public GroupRegister addTagsItem(String tagsItem) { return this; } - /** + /** * optional tags for groups. * @return tags - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "optional tags for groups.") - public List getTags() { return tags; } - public void setTags(List tags) { this.tags = tags; } public GroupRegister licenseId(String licenseId) { - this.licenseId = licenseId; return this; } - /** + /** * License identifier from SPDX License List or Custom. * @return licenseId - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "License identifier from SPDX License List or Custom.") - public String getLicenseId() { return licenseId; } - public void setLicenseId(String licenseId) { this.licenseId = licenseId; } public GroupRegister licenseText(String licenseText) { - this.licenseText = licenseText; return this; } - /** + /** * License text * @return licenseText - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "License text") - public String getLicenseText() { return licenseText; } - public void setLicenseText(String licenseText) { this.licenseText = licenseText; } @@ -306,6 +280,10 @@ public void setLicenseText(String licenseText) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the GroupRegister instance itself */ public GroupRegister putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -317,6 +295,8 @@ public GroupRegister putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -324,6 +304,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -409,20 +392,19 @@ private String toIndentedString(Object o) { 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 GroupRegister - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (GroupRegister.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to GroupRegister + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!GroupRegister.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in GroupRegister is not found in the empty JSON string", GroupRegister.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); } @@ -441,8 +423,8 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if ((jsonObj.get("access_credentials_name") != null && !jsonObj.get("access_credentials_name").isJsonNull()) && !jsonObj.get("access_credentials_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `access_credentials_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("access_credentials_name").toString())); } - // ensure the json data is an array - if ((jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) && !jsonObj.get("tags").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull() && !jsonObj.get("tags").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); } if ((jsonObj.get("license_id") != null && !jsonObj.get("license_id").isJsonNull()) && !jsonObj.get("license_id").isJsonPrimitive()) { @@ -469,7 +451,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, GroupRegister value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -481,7 +463,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -490,8 +477,9 @@ else if (entry.getValue() instanceof Character) @Override public GroupRegister read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance GroupRegister instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -505,8 +493,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -517,22 +507,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of GroupRegister given an JSON string - * - * @param jsonString JSON string - * @return An instance of GroupRegister - * @throws IOException if the JSON string is invalid with respect to GroupRegister - */ + /** + * Create an instance of GroupRegister given an JSON string + * + * @param jsonString JSON string + * @return An instance of GroupRegister + * @throws IOException if the JSON string is invalid with respect to GroupRegister + */ public static GroupRegister fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, GroupRegister.class); } - /** - * Convert an instance of GroupRegister to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of GroupRegister 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/GroupSharing.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupSharing.java index 731ac3a..7007e5b 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,42 +14,54 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.ArrayActions; +import io.tiledb.cloud.rest_api.model.GroupActions; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class GroupSharing { public static final String SERIALIZED_NAME_GROUP_ACTIONS = "group_actions"; @SerializedName(SERIALIZED_NAME_GROUP_ACTIONS) - private List groupActions = null; + private List groupActions = new ArrayList<>(); public static final String SERIALIZED_NAME_ARRAY_ACTIONS = "array_actions"; @SerializedName(SERIALIZED_NAME_ARRAY_ACTIONS) - private List arrayActions = null; + private List arrayActions = new ArrayList<>(); public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; @SerializedName(SERIALIZED_NAME_NAMESPACE) @@ -63,7 +75,6 @@ public GroupSharing() { } public GroupSharing groupActions(List groupActions) { - this.groupActions = groupActions; return this; } @@ -76,25 +87,21 @@ public GroupSharing addGroupActionsItem(GroupActions groupActionsItem) { return this; } - /** + /** * List of permitted actions for the group and all subgroups * @return groupActions - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "[read, write]", value = "List of permitted actions for the group and all subgroups") - public List getGroupActions() { return groupActions; } - public void setGroupActions(List groupActions) { this.groupActions = groupActions; } public GroupSharing arrayActions(List arrayActions) { - this.arrayActions = arrayActions; return this; } @@ -107,64 +114,53 @@ public GroupSharing addArrayActionsItem(ArrayActions arrayActionsItem) { return this; } - /** + /** * List of permitted actions for all the subarrays of the group * @return arrayActions - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "[read, write]", value = "List of permitted actions for all the subarrays of the group") - public List getArrayActions() { return arrayActions; } - public void setArrayActions(List arrayActions) { this.arrayActions = arrayActions; } public GroupSharing namespace(String namespace) { - this.namespace = namespace; return this; } - /** + /** * namespace being granted group access can be a user or organization * @return namespace - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "MyOrganization", value = "namespace being granted group access can be a user or organization") - public String getNamespace() { return namespace; } - public void setNamespace(String namespace) { this.namespace = namespace; } public GroupSharing namespaceType(String namespaceType) { - this.namespaceType = namespaceType; return this; } - /** + /** * details on if the namespace is a organization or user * @return namespaceType - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "organization", value = "details on if the namespace is a organization or user") - public String getNamespaceType() { return namespaceType; } - public void setNamespaceType(String namespaceType) { this.namespaceType = namespaceType; } @@ -179,6 +175,10 @@ public void setNamespaceType(String namespaceType) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the GroupSharing instance itself */ public GroupSharing putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -190,6 +190,8 @@ public GroupSharing putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -197,6 +199,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -267,26 +272,25 @@ private String toIndentedString(Object o) { 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 GroupSharing - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (GroupSharing.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to GroupSharing + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!GroupSharing.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in GroupSharing is not found in the empty JSON string", GroupSharing.openapiRequiredFields.toString())); } } - // ensure the json data is an array - if ((jsonObj.get("group_actions") != null && !jsonObj.get("group_actions").isJsonNull()) && !jsonObj.get("group_actions").isJsonArray()) { + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("group_actions") != null && !jsonObj.get("group_actions").isJsonNull() && !jsonObj.get("group_actions").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `group_actions` to be an array in the JSON string but got `%s`", jsonObj.get("group_actions").toString())); } - // ensure the json data is an array - if ((jsonObj.get("array_actions") != null && !jsonObj.get("array_actions").isJsonNull()) && !jsonObj.get("array_actions").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("array_actions") != null && !jsonObj.get("array_actions").isJsonNull() && !jsonObj.get("array_actions").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `array_actions` to be an array in the JSON string but got `%s`", jsonObj.get("array_actions").toString())); } if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { @@ -313,7 +317,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, GroupSharing value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -325,7 +329,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -334,8 +343,9 @@ else if (entry.getValue() instanceof Character) @Override public GroupSharing read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance GroupSharing instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -349,8 +359,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -361,22 +373,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of GroupSharing given an JSON string - * - * @param jsonString JSON string - * @return An instance of GroupSharing - * @throws IOException if the JSON string is invalid with respect to GroupSharing - */ + /** + * Create an instance of GroupSharing given an JSON string + * + * @param jsonString JSON string + * @return An instance of GroupSharing + * @throws IOException if the JSON string is invalid with respect to GroupSharing + */ public static GroupSharing fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, GroupSharing.class); } - /** - * Convert an instance of GroupSharing to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of GroupSharing 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/GroupSharingRequest.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupSharingRequest.java index c5b8d56..2c30412 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,42 +14,54 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.ArrayActions; +import io.tiledb.cloud.rest_api.model.GroupActions; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class GroupSharingRequest { public static final String SERIALIZED_NAME_GROUP_ACTIONS = "group_actions"; @SerializedName(SERIALIZED_NAME_GROUP_ACTIONS) - private List groupActions = null; + private List groupActions = new ArrayList<>(); public static final String SERIALIZED_NAME_ARRAY_ACTIONS = "array_actions"; @SerializedName(SERIALIZED_NAME_ARRAY_ACTIONS) - private List arrayActions = null; + private List arrayActions = new ArrayList<>(); public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; @SerializedName(SERIALIZED_NAME_NAMESPACE) @@ -59,7 +71,6 @@ public GroupSharingRequest() { } public GroupSharingRequest groupActions(List groupActions) { - this.groupActions = groupActions; return this; } @@ -72,25 +83,21 @@ public GroupSharingRequest addGroupActionsItem(GroupActions groupActionsItem) { return this; } - /** + /** * List of permitted actions for the group and all subgroups * @return groupActions - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "[read, write]", value = "List of permitted actions for the group and all subgroups") - public List getGroupActions() { return groupActions; } - public void setGroupActions(List groupActions) { this.groupActions = groupActions; } public GroupSharingRequest arrayActions(List arrayActions) { - this.arrayActions = arrayActions; return this; } @@ -103,41 +110,34 @@ public GroupSharingRequest addArrayActionsItem(ArrayActions arrayActionsItem) { return this; } - /** + /** * List of permitted actions for all the subarrays of the group * @return arrayActions - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "[read, write]", value = "List of permitted actions for all the subarrays of the group") - public List getArrayActions() { return arrayActions; } - public void setArrayActions(List arrayActions) { this.arrayActions = arrayActions; } public GroupSharingRequest namespace(String namespace) { - this.namespace = namespace; return this; } - /** + /** * namespace being granted group access can be a user or organization * @return namespace - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "MyOrganization", value = "namespace being granted group access can be a user or organization") - public String getNamespace() { return namespace; } - public void setNamespace(String namespace) { this.namespace = namespace; } @@ -152,6 +152,10 @@ public void setNamespace(String namespace) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the GroupSharingRequest instance itself */ public GroupSharingRequest putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -163,6 +167,8 @@ public GroupSharingRequest putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -170,6 +176,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -237,26 +246,25 @@ private String toIndentedString(Object o) { 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 GroupSharingRequest - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (GroupSharingRequest.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to GroupSharingRequest + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!GroupSharingRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in GroupSharingRequest is not found in the empty JSON string", GroupSharingRequest.openapiRequiredFields.toString())); } } - // ensure the json data is an array - if ((jsonObj.get("group_actions") != null && !jsonObj.get("group_actions").isJsonNull()) && !jsonObj.get("group_actions").isJsonArray()) { + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("group_actions") != null && !jsonObj.get("group_actions").isJsonNull() && !jsonObj.get("group_actions").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `group_actions` to be an array in the JSON string but got `%s`", jsonObj.get("group_actions").toString())); } - // ensure the json data is an array - if ((jsonObj.get("array_actions") != null && !jsonObj.get("array_actions").isJsonNull()) && !jsonObj.get("array_actions").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("array_actions") != null && !jsonObj.get("array_actions").isJsonNull() && !jsonObj.get("array_actions").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `array_actions` to be an array in the JSON string but got `%s`", jsonObj.get("array_actions").toString())); } if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { @@ -280,7 +288,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, GroupSharingRequest value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -292,7 +300,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -301,8 +314,9 @@ else if (entry.getValue() instanceof Character) @Override public GroupSharingRequest read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance GroupSharingRequest instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -316,8 +330,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -328,22 +344,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of GroupSharingRequest given an JSON string - * - * @param jsonString JSON string - * @return An instance of GroupSharingRequest - * @throws IOException if the JSON string is invalid with respect to GroupSharingRequest - */ + /** + * Create an instance of GroupSharingRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of GroupSharingRequest + * @throws IOException if the JSON string is invalid with respect to GroupSharingRequest + */ public static GroupSharingRequest fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, GroupSharingRequest.class); } - /** - * Convert an instance of GroupSharingRequest to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of GroupSharingRequest 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/GroupType.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupType.java index 42869a4..f7f82d9 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,8 +13,12 @@ package io.tiledb.cloud.rest_api.model; +import java.util.Objects; +import com.google.gson.annotations.SerializedName; + import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -77,5 +81,10 @@ public GroupType read(final JsonReader jsonReader) throws IOException { return GroupType.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + GroupType.fromValue(value); + } } 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..cd7494c 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,8 +13,12 @@ package io.tiledb.cloud.rest_api.model; +import java.util.Objects; +import com.google.gson.annotations.SerializedName; + import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -63,5 +67,10 @@ public GroupTypeMetadataKey read(final JsonReader jsonReader) throws IOException return GroupTypeMetadataKey.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + GroupTypeMetadataKey.fromValue(value); + } } 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..fbb278d 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). @@ -14,36 +14,45 @@ 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.JsonAdapter; 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.Arrays; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class GroupUpdate { public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) @@ -63,7 +72,7 @@ public class GroupUpdate { public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) - private List tags = null; + private List tags = new ArrayList<>(); public static final String SERIALIZED_NAME_LICENSE_ID = "license_id"; @SerializedName(SERIALIZED_NAME_LICENSE_ID) @@ -77,99 +86,82 @@ public GroupUpdate() { } public GroupUpdate description(String description) { - this.description = description; return this; } - /** + /** * A human readable description of the content of the group * @return description - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "A human readable description of the content of the group") - public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } public GroupUpdate name(String name) { - this.name = name; return this; } - /** + /** * The name of the group. If must be unique within the group. * @return name - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The name of the group. If must be unique within the group.") - public String getName() { return name; } - public void setName(String name) { this.name = name; } public GroupUpdate logo(String logo) { - this.logo = logo; return this; } - /** + /** * logo (base64 encoded) for the group. Optional * @return logo - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "logo (base64 encoded) for the group. Optional") - public String getLogo() { return logo; } - public void setLogo(String logo) { this.logo = logo; } public GroupUpdate accessCredentialsName(String accessCredentialsName) { - this.accessCredentialsName = accessCredentialsName; return this; } - /** + /** * the name of the access credentials to use. if unset, the default credentials will be used * @return accessCredentialsName - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "the name of the access credentials to use. if unset, the default credentials will be used") - public String getAccessCredentialsName() { return accessCredentialsName; } - public void setAccessCredentialsName(String accessCredentialsName) { this.accessCredentialsName = accessCredentialsName; } public GroupUpdate tags(List tags) { - this.tags = tags; return this; } @@ -182,64 +174,53 @@ public GroupUpdate addTagsItem(String tagsItem) { return this; } - /** + /** * optional tags for groups * @return tags - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "optional tags for groups") - public List getTags() { return tags; } - public void setTags(List tags) { this.tags = tags; } public GroupUpdate licenseId(String licenseId) { - this.licenseId = licenseId; return this; } - /** + /** * License identifier from SPDX License List or Custom * @return licenseId - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "License identifier from SPDX License List or Custom") - public String getLicenseId() { return licenseId; } - public void setLicenseId(String licenseId) { this.licenseId = licenseId; } public GroupUpdate licenseText(String licenseText) { - this.licenseText = licenseText; return this; } - /** + /** * License text * @return licenseText - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "License text") - public String getLicenseText() { return licenseText; } - public void setLicenseText(String licenseText) { this.licenseText = licenseText; } @@ -254,6 +235,10 @@ public void setLicenseText(String licenseText) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the GroupUpdate instance itself */ public GroupUpdate putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -265,6 +250,8 @@ public GroupUpdate putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -272,6 +259,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -362,20 +352,19 @@ private String toIndentedString(Object o) { 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 GroupUpdate - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (GroupUpdate.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to GroupUpdate + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!GroupUpdate.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in GroupUpdate is not found in the empty JSON string", GroupUpdate.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); } @@ -388,8 +377,8 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if ((jsonObj.get("access_credentials_name") != null && !jsonObj.get("access_credentials_name").isJsonNull()) && !jsonObj.get("access_credentials_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `access_credentials_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("access_credentials_name").toString())); } - // ensure the json data is an array - if ((jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) && !jsonObj.get("tags").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull() && !jsonObj.get("tags").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); } if ((jsonObj.get("license_id") != null && !jsonObj.get("license_id").isJsonNull()) && !jsonObj.get("license_id").isJsonPrimitive()) { @@ -416,7 +405,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, GroupUpdate value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -428,7 +417,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -437,8 +431,9 @@ else if (entry.getValue() instanceof Character) @Override public GroupUpdate read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance GroupUpdate instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -452,8 +447,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -464,22 +461,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of GroupUpdate given an JSON string - * - * @param jsonString JSON string - * @return An instance of GroupUpdate - * @throws IOException if the JSON string is invalid with respect to GroupUpdate - */ + /** + * Create an instance of GroupUpdate given an JSON string + * + * @param jsonString JSON string + * @return An instance of GroupUpdate + * @throws IOException if the JSON string is invalid with respect to GroupUpdate + */ public static GroupUpdate fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, GroupUpdate.class); } - /** - * Convert an instance of GroupUpdate to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of GroupUpdate 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/Invitation.java b/src/main/java/io/tiledb/cloud/rest_api/model/Invitation.java index 84e3a0e..981072a 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,33 +14,46 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.InvitationStatus; +import io.tiledb.cloud.rest_api.model.InvitationType; +import io.tiledb.cloud.rest_api.model.OrganizationRoles; import java.io.IOException; import java.time.OffsetDateTime; +import java.util.Arrays; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class Invitation { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -126,460 +139,380 @@ public Invitation() { } public Invitation id(String id) { - this.id = id; return this; } - /** + /** * Unique ID of invitation added to magic link * @return id - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", value = "Unique ID of invitation added to magic link") - public String getId() { return id; } - public void setId(String id) { this.id = id; } public Invitation invitationType(InvitationType invitationType) { - this.invitationType = invitationType; return this; } - /** + /** * Get invitationType * @return invitationType - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public InvitationType getInvitationType() { return invitationType; } - public void setInvitationType(InvitationType invitationType) { this.invitationType = invitationType; } public Invitation ownerNamespaceUuid(String ownerNamespaceUuid) { - this.ownerNamespaceUuid = ownerNamespaceUuid; return this; } - /** + /** * Namespace of the owner of the invitation (user or organization) * @return ownerNamespaceUuid - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", value = "Namespace of the owner of the invitation (user or organization)") - public String getOwnerNamespaceUuid() { return ownerNamespaceUuid; } - public void setOwnerNamespaceUuid(String ownerNamespaceUuid) { this.ownerNamespaceUuid = ownerNamespaceUuid; } public Invitation inviterUuid(String inviterUuid) { - this.inviterUuid = inviterUuid; return this; } - /** + /** * Unique ID of the user that sent the invitation * @return inviterUuid - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", value = "Unique ID of the user that sent the invitation") - public String getInviterUuid() { return inviterUuid; } - public void setInviterUuid(String inviterUuid) { this.inviterUuid = inviterUuid; } public Invitation userNamespaceUuid(String userNamespaceUuid) { - this.userNamespaceUuid = userNamespaceUuid; return this; } - /** + /** * Unique ID of the user accepted the invitation * @return userNamespaceUuid - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", value = "Unique ID of the user accepted the invitation") - public String getUserNamespaceUuid() { return userNamespaceUuid; } - public void setUserNamespaceUuid(String userNamespaceUuid) { this.userNamespaceUuid = userNamespaceUuid; } public Invitation organizationUserUuid(String organizationUserUuid) { - this.organizationUserUuid = organizationUserUuid; return this; } - /** + /** * Unique ID of the organization user accepted the invitation * @return organizationUserUuid - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", value = "Unique ID of the organization user accepted the invitation") - public String getOrganizationUserUuid() { return organizationUserUuid; } - public void setOrganizationUserUuid(String organizationUserUuid) { this.organizationUserUuid = organizationUserUuid; } public Invitation organizationName(String organizationName) { - this.organizationName = organizationName; return this; } - /** + /** * Name of the organization, does not persist in database * @return organizationName - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "organization_name", value = "Name of the organization, does not persist in database") - public String getOrganizationName() { return organizationName; } - public void setOrganizationName(String organizationName) { this.organizationName = organizationName; } public Invitation organizationRole(OrganizationRoles organizationRole) { - this.organizationRole = organizationRole; return this; } - /** + /** * Get organizationRole * @return organizationRole - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public OrganizationRoles getOrganizationRole() { return organizationRole; } - public void setOrganizationRole(OrganizationRoles organizationRole) { this.organizationRole = organizationRole; } public Invitation organizationUuid(String organizationUuid) { - this.organizationUuid = organizationUuid; return this; } - /** + /** * Unique ID of the organization whose user(s) accepted the invitation * @return organizationUuid - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", value = "Unique ID of the organization whose user(s) accepted the invitation") - public String getOrganizationUuid() { return organizationUuid; } - public void setOrganizationUuid(String organizationUuid) { this.organizationUuid = organizationUuid; } public Invitation arrayUuid(String arrayUuid) { - this.arrayUuid = arrayUuid; return this; } - /** + /** * Unique ID of the array * @return arrayUuid - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", value = "Unique ID of the array") - public String getArrayUuid() { return arrayUuid; } - public void setArrayUuid(String arrayUuid) { this.arrayUuid = arrayUuid; } public Invitation groupUuid(String groupUuid) { - this.groupUuid = groupUuid; return this; } - /** + /** * Unique ID of the group * @return groupUuid - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", value = "Unique ID of the group") - public String getGroupUuid() { return groupUuid; } - public void setGroupUuid(String groupUuid) { this.groupUuid = groupUuid; } public Invitation arrayName(String arrayName) { - this.arrayName = arrayName; return this; } - /** + /** * Name of the array, does not persist in database * @return arrayName - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "array_name", value = "Name of the array, does not persist in database") - public String getArrayName() { return arrayName; } - public void setArrayName(String arrayName) { this.arrayName = arrayName; } public Invitation email(String email) { - this.email = email; return this; } - /** + /** * Email of the individual we send the invitation to * @return email - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "jane@doe.com", value = "Email of the individual we send the invitation to") - public String getEmail() { return email; } - public void setEmail(String email) { this.email = email; } public Invitation actions(String actions) { - this.actions = actions; return this; } - /** + /** * A comma separated list of ArrayActions or NamespaceActions * @return actions - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "read,write", value = "A comma separated list of ArrayActions or NamespaceActions") - public String getActions() { return actions; } - public void setActions(String actions) { this.actions = actions; } public Invitation groupActions(String groupActions) { - this.groupActions = groupActions; return this; } - /** + /** * A comma separated list of GroupActions * @return groupActions - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "read,write", value = "A comma separated list of GroupActions") - public String getGroupActions() { return groupActions; } - public void setGroupActions(String groupActions) { this.groupActions = groupActions; } public Invitation status(InvitationStatus status) { - this.status = status; return this; } - /** + /** * Get status * @return status - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public InvitationStatus getStatus() { return status; } - public void setStatus(InvitationStatus status) { this.status = status; } public Invitation createdAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; return this; } - /** + /** * Datetime the invitation was created in UTC * @return createdAt - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Datetime the invitation was created in UTC") - public OffsetDateTime getCreatedAt() { return createdAt; } - public void setCreatedAt(OffsetDateTime createdAt) { this.createdAt = createdAt; } public Invitation expiresAt(OffsetDateTime expiresAt) { - this.expiresAt = expiresAt; return this; } - /** + /** * Datetime the invitation is expected to expire in UTC * @return expiresAt - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Datetime the invitation is expected to expire in UTC") - public OffsetDateTime getExpiresAt() { return expiresAt; } - public void setExpiresAt(OffsetDateTime expiresAt) { this.expiresAt = expiresAt; } public Invitation acceptedAt(OffsetDateTime acceptedAt) { - this.acceptedAt = acceptedAt; return this; } - /** + /** * Datetime the invitation was accepted in UTC * @return acceptedAt - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Datetime the invitation was accepted in UTC") - public OffsetDateTime getAcceptedAt() { return acceptedAt; } - public void setAcceptedAt(OffsetDateTime acceptedAt) { this.acceptedAt = acceptedAt; } public Invitation namespaceInvited(String namespaceInvited) { - this.namespaceInvited = namespaceInvited; return this; } - /** + /** * The namespace invited (user or organization, if it exists in the DB) * @return namespaceInvited - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The namespace invited (user or organization, if it exists in the DB)") - public String getNamespaceInvited() { return namespaceInvited; } - public void setNamespaceInvited(String namespaceInvited) { this.namespaceInvited = namespaceInvited; } @@ -594,6 +527,10 @@ public void setNamespaceInvited(String namespaceInvited) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the Invitation instance itself */ public Invitation putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -605,6 +542,8 @@ public Invitation putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -612,6 +551,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -730,23 +672,26 @@ private String toIndentedString(Object o) { 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 Invitation - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (Invitation.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to Invitation + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!Invitation.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in Invitation is not found in the empty JSON string", Invitation.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); } + // validate the optional field `invitation_type` + if (jsonObj.get("invitation_type") != null && !jsonObj.get("invitation_type").isJsonNull()) { + InvitationType.validateJsonElement(jsonObj.get("invitation_type")); + } if ((jsonObj.get("owner_namespace_uuid") != null && !jsonObj.get("owner_namespace_uuid").isJsonNull()) && !jsonObj.get("owner_namespace_uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `owner_namespace_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("owner_namespace_uuid").toString())); } @@ -762,6 +707,10 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { 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())); } + // validate the optional field `organization_role` + if (jsonObj.get("organization_role") != null && !jsonObj.get("organization_role").isJsonNull()) { + OrganizationRoles.validateJsonElement(jsonObj.get("organization_role")); + } if ((jsonObj.get("organization_uuid") != null && !jsonObj.get("organization_uuid").isJsonNull()) && !jsonObj.get("organization_uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `organization_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("organization_uuid").toString())); } @@ -783,6 +732,10 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if ((jsonObj.get("group_actions") != null && !jsonObj.get("group_actions").isJsonNull()) && !jsonObj.get("group_actions").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `group_actions` to be a primitive type in the JSON string but got `%s`", jsonObj.get("group_actions").toString())); } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + InvitationStatus.validateJsonElement(jsonObj.get("status")); + } if ((jsonObj.get("namespace_invited") != null && !jsonObj.get("namespace_invited").isJsonNull()) && !jsonObj.get("namespace_invited").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `namespace_invited` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace_invited").toString())); } @@ -804,7 +757,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, Invitation value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -816,7 +769,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -825,8 +783,9 @@ else if (entry.getValue() instanceof Character) @Override public Invitation read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance Invitation instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -840,8 +799,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -852,22 +813,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of Invitation given an JSON string - * - * @param jsonString JSON string - * @return An instance of Invitation - * @throws IOException if the JSON string is invalid with respect to Invitation - */ + /** + * Create an instance of Invitation given an JSON string + * + * @param jsonString JSON string + * @return An instance of Invitation + * @throws IOException if the JSON string is invalid with respect to Invitation + */ public static Invitation fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, Invitation.class); } - /** - * Convert an instance of Invitation to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of Invitation 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/InvitationArrayShareEmail.java b/src/main/java/io/tiledb/cloud/rest_api/model/InvitationArrayShareEmail.java index ab800d2..015a7c2 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,34 +14,45 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.ArrayActions; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class InvitationArrayShareEmail { public static final String SERIALIZED_NAME_ACTIONS = "actions"; @SerializedName(SERIALIZED_NAME_ACTIONS) @@ -55,56 +66,54 @@ public InvitationArrayShareEmail() { } public InvitationArrayShareEmail actions(List actions) { - this.actions = actions; return this; } public InvitationArrayShareEmail addActionsItem(ArrayActions actionsItem) { + if (this.actions == null) { + this.actions = new ArrayList<>(); + } this.actions.add(actionsItem); return this; } - /** + /** * List of permitted actions * @return actions - **/ + */ @javax.annotation.Nonnull - @ApiModelProperty(example = "[read, write]", required = true, value = "List of permitted actions") - public List getActions() { return actions; } - public void setActions(List actions) { this.actions = actions; } public InvitationArrayShareEmail inviteeEmail(List inviteeEmail) { - this.inviteeEmail = inviteeEmail; return this; } public InvitationArrayShareEmail addInviteeEmailItem(String inviteeEmailItem) { + if (this.inviteeEmail == null) { + this.inviteeEmail = new ArrayList<>(); + } this.inviteeEmail.add(inviteeEmailItem); return this; } - /** + /** * Get inviteeEmail * @return inviteeEmail - **/ + */ @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") - public List getInviteeEmail() { return inviteeEmail; } - public void setInviteeEmail(List inviteeEmail) { this.inviteeEmail = inviteeEmail; } @@ -119,6 +128,10 @@ public void setInviteeEmail(List inviteeEmail) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the InvitationArrayShareEmail instance itself */ public InvitationArrayShareEmail putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -130,6 +143,8 @@ public InvitationArrayShareEmail putAdditionalProperty(String key, Object value) /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -137,6 +152,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -203,33 +221,36 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("invitee_email"); } - /** - * 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 InvitationArrayShareEmail - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (InvitationArrayShareEmail.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to InvitationArrayShareEmail + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!InvitationArrayShareEmail.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in InvitationArrayShareEmail is not found in the empty JSON string", InvitationArrayShareEmail.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : InvitationArrayShareEmail.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 (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } - // ensure the json data is an array - if ((jsonObj.get("actions") != null && !jsonObj.get("actions").isJsonNull()) && !jsonObj.get("actions").isJsonArray()) { + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the required json array is present + if (jsonObj.get("actions") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("actions").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `actions` to be an array in the JSON string but got `%s`", jsonObj.get("actions").toString())); } - // ensure the json data is an array - if ((jsonObj.get("invitee_email") != null && !jsonObj.get("invitee_email").isJsonNull()) && !jsonObj.get("invitee_email").isJsonArray()) { + // ensure the required json array is present + if (jsonObj.get("invitee_email") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("invitee_email").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `invitee_email` to be an array in the JSON string but got `%s`", jsonObj.get("invitee_email").toString())); } } @@ -250,7 +271,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, InvitationArrayShareEmail value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -262,7 +283,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -271,8 +297,9 @@ else if (entry.getValue() instanceof Character) @Override public InvitationArrayShareEmail read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance InvitationArrayShareEmail instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -286,8 +313,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -298,22 +327,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of InvitationArrayShareEmail given an JSON string - * - * @param jsonString JSON string - * @return An instance of InvitationArrayShareEmail - * @throws IOException if the JSON string is invalid with respect to InvitationArrayShareEmail - */ + /** + * Create an instance of InvitationArrayShareEmail given an JSON string + * + * @param jsonString JSON string + * @return An instance of InvitationArrayShareEmail + * @throws IOException if the JSON string is invalid with respect to InvitationArrayShareEmail + */ public static InvitationArrayShareEmail fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, InvitationArrayShareEmail.class); } - /** - * Convert an instance of InvitationArrayShareEmail to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of InvitationArrayShareEmail 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/InvitationData.java b/src/main/java/io/tiledb/cloud/rest_api/model/InvitationData.java index aa30c70..1fa7f71 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,39 +14,50 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.Invitation; +import io.tiledb.cloud.rest_api.model.PaginationMetadata; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class InvitationData { public static final String SERIALIZED_NAME_INVITATIONS = "invitations"; @SerializedName(SERIALIZED_NAME_INVITATIONS) - private List invitations = null; + private List invitations = new ArrayList<>(); public static final String SERIALIZED_NAME_PAGINATION_METADATA = "pagination_metadata"; @SerializedName(SERIALIZED_NAME_PAGINATION_METADATA) @@ -56,7 +67,6 @@ public InvitationData() { } public InvitationData invitations(List invitations) { - this.invitations = invitations; return this; } @@ -69,41 +79,34 @@ public InvitationData addInvitationsItem(Invitation invitationsItem) { return this; } - /** + /** * List of invitations * @return invitations - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "List of invitations") - public List getInvitations() { return invitations; } - public void setInvitations(List invitations) { this.invitations = invitations; } public InvitationData 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; } @@ -118,6 +121,10 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the InvitationData instance itself */ public InvitationData putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -129,6 +136,8 @@ public InvitationData putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -136,6 +145,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -200,35 +212,36 @@ private String toIndentedString(Object o) { 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 InvitationData - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (InvitationData.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to InvitationData + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!InvitationData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in InvitationData is not found in the empty JSON string", InvitationData.openapiRequiredFields.toString())); } } - JsonArray jsonArrayinvitations = jsonObj.getAsJsonArray("invitations"); - if (jsonArrayinvitations != null) { - // ensure the json data is an array - if (!jsonObj.get("invitations").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `invitations` to be an array in the JSON string but got `%s`", jsonObj.get("invitations").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("invitations") != null && !jsonObj.get("invitations").isJsonNull()) { + JsonArray jsonArrayinvitations = jsonObj.getAsJsonArray("invitations"); + if (jsonArrayinvitations != null) { + // ensure the json data is an array + if (!jsonObj.get("invitations").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `invitations` to be an array in the JSON string but got `%s`", jsonObj.get("invitations").toString())); + } + + // validate the optional field `invitations` (array) + for (int i = 0; i < jsonArrayinvitations.size(); i++) { + Invitation.validateJsonElement(jsonArrayinvitations.get(i)); + }; } - - // validate the optional field `invitations` (array) - for (int i = 0; i < jsonArrayinvitations.size(); i++) { - Invitation.validateJsonObject(jsonArrayinvitations.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")); + PaginationMetadata.validateJsonElement(jsonObj.get("pagination_metadata")); } } @@ -248,7 +261,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, InvitationData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -260,7 +273,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -269,8 +287,9 @@ else if (entry.getValue() instanceof Character) @Override public InvitationData read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance InvitationData instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -284,8 +303,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -296,22 +317,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of InvitationData given an JSON string - * - * @param jsonString JSON string - * @return An instance of InvitationData - * @throws IOException if the JSON string is invalid with respect to InvitationData - */ + /** + * Create an instance of InvitationData given an JSON string + * + * @param jsonString JSON string + * @return An instance of InvitationData + * @throws IOException if the JSON string is invalid with respect to InvitationData + */ public static InvitationData fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, InvitationData.class); } - /** - * Convert an instance of InvitationData to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of InvitationData 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/InvitationFailedRecipients.java b/src/main/java/io/tiledb/cloud/rest_api/model/InvitationFailedRecipients.java index caff6b6..0ef38f3 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,34 +14,44 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class InvitationFailedRecipients { public static final String SERIALIZED_NAME_FAILED_RECIPIENTS = "failed_recipients"; @SerializedName(SERIALIZED_NAME_FAILED_RECIPIENTS) @@ -51,28 +61,27 @@ public InvitationFailedRecipients() { } public InvitationFailedRecipients failedRecipients(List failedRecipients) { - this.failedRecipients = failedRecipients; return this; } public InvitationFailedRecipients addFailedRecipientsItem(String failedRecipientsItem) { + if (this.failedRecipients == null) { + this.failedRecipients = new ArrayList<>(); + } this.failedRecipients.add(failedRecipientsItem); return this; } - /** + /** * Get failedRecipients * @return failedRecipients - **/ + */ @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") - public List getFailedRecipients() { return failedRecipients; } - public void setFailedRecipients(List failedRecipients) { this.failedRecipients = failedRecipients; } @@ -87,6 +96,10 @@ public void setFailedRecipients(List failedRecipients) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the InvitationFailedRecipients instance itself */ public InvitationFailedRecipients putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -98,6 +111,8 @@ public InvitationFailedRecipients putAdditionalProperty(String key, Object value /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -105,6 +120,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -167,29 +185,30 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("failed_recipients"); } - /** - * 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 InvitationFailedRecipients - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (InvitationFailedRecipients.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to InvitationFailedRecipients + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!InvitationFailedRecipients.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in InvitationFailedRecipients is not found in the empty JSON string", InvitationFailedRecipients.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : InvitationFailedRecipients.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 (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } - // ensure the json data is an array - if ((jsonObj.get("failed_recipients") != null && !jsonObj.get("failed_recipients").isJsonNull()) && !jsonObj.get("failed_recipients").isJsonArray()) { + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the required json array is present + if (jsonObj.get("failed_recipients") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("failed_recipients").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `failed_recipients` to be an array in the JSON string but got `%s`", jsonObj.get("failed_recipients").toString())); } } @@ -210,7 +229,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, InvitationFailedRecipients value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -222,7 +241,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -231,8 +255,9 @@ else if (entry.getValue() instanceof Character) @Override public InvitationFailedRecipients read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance InvitationFailedRecipients instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -246,8 +271,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -258,22 +285,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of InvitationFailedRecipients given an JSON string - * - * @param jsonString JSON string - * @return An instance of InvitationFailedRecipients - * @throws IOException if the JSON string is invalid with respect to InvitationFailedRecipients - */ + /** + * Create an instance of InvitationFailedRecipients given an JSON string + * + * @param jsonString JSON string + * @return An instance of InvitationFailedRecipients + * @throws IOException if the JSON string is invalid with respect to InvitationFailedRecipients + */ public static InvitationFailedRecipients fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, InvitationFailedRecipients.class); } - /** - * Convert an instance of InvitationFailedRecipients to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of InvitationFailedRecipients 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/InvitationGroupShareEmail.java b/src/main/java/io/tiledb/cloud/rest_api/model/InvitationGroupShareEmail.java index 946f4db..8bfc10c 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,34 +14,46 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.ArrayActions; +import io.tiledb.cloud.rest_api.model.GroupActions; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class InvitationGroupShareEmail { public static final String SERIALIZED_NAME_ARRAY_ACTIONS = "array_actions"; @SerializedName(SERIALIZED_NAME_ARRAY_ACTIONS) @@ -59,84 +71,81 @@ public InvitationGroupShareEmail() { } public InvitationGroupShareEmail arrayActions(List arrayActions) { - this.arrayActions = arrayActions; return this; } public InvitationGroupShareEmail addArrayActionsItem(ArrayActions arrayActionsItem) { + if (this.arrayActions == null) { + this.arrayActions = new ArrayList<>(); + } this.arrayActions.add(arrayActionsItem); return this; } - /** + /** * List of permitted array actions * @return arrayActions - **/ + */ @javax.annotation.Nonnull - @ApiModelProperty(example = "[read, write]", required = true, value = "List of permitted array actions") - public List getArrayActions() { return arrayActions; } - public void setArrayActions(List arrayActions) { this.arrayActions = arrayActions; } public InvitationGroupShareEmail groupActions(List groupActions) { - this.groupActions = groupActions; return this; } public InvitationGroupShareEmail addGroupActionsItem(GroupActions groupActionsItem) { + if (this.groupActions == null) { + this.groupActions = new ArrayList<>(); + } this.groupActions.add(groupActionsItem); return this; } - /** + /** * List of permitted group actions * @return groupActions - **/ + */ @javax.annotation.Nonnull - @ApiModelProperty(example = "[read, write]", required = true, value = "List of permitted group actions") - public List getGroupActions() { return groupActions; } - public void setGroupActions(List groupActions) { this.groupActions = groupActions; } public InvitationGroupShareEmail inviteeEmailOrName(List inviteeEmailOrName) { - this.inviteeEmailOrName = inviteeEmailOrName; return this; } public InvitationGroupShareEmail addInviteeEmailOrNameItem(String inviteeEmailOrNameItem) { + if (this.inviteeEmailOrName == null) { + this.inviteeEmailOrName = new ArrayList<>(); + } this.inviteeEmailOrName.add(inviteeEmailOrNameItem); return this; } - /** + /** * Get inviteeEmailOrName * @return inviteeEmailOrName - **/ + */ @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") - public List getInviteeEmailOrName() { return inviteeEmailOrName; } - public void setInviteeEmailOrName(List inviteeEmailOrName) { this.inviteeEmailOrName = inviteeEmailOrName; } @@ -151,6 +160,10 @@ public void setInviteeEmailOrName(List inviteeEmailOrName) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the InvitationGroupShareEmail instance itself */ public InvitationGroupShareEmail putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -162,6 +175,8 @@ public InvitationGroupShareEmail putAdditionalProperty(String key, Object value) /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -169,6 +184,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -239,37 +257,42 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("invitee_email_or_name"); } - /** - * 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 InvitationGroupShareEmail - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (InvitationGroupShareEmail.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to InvitationGroupShareEmail + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!InvitationGroupShareEmail.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in InvitationGroupShareEmail is not found in the empty JSON string", InvitationGroupShareEmail.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : InvitationGroupShareEmail.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 (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } - // ensure the json data is an array - if ((jsonObj.get("array_actions") != null && !jsonObj.get("array_actions").isJsonNull()) && !jsonObj.get("array_actions").isJsonArray()) { + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the required json array is present + if (jsonObj.get("array_actions") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("array_actions").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `array_actions` to be an array in the JSON string but got `%s`", jsonObj.get("array_actions").toString())); } - // ensure the json data is an array - if ((jsonObj.get("group_actions") != null && !jsonObj.get("group_actions").isJsonNull()) && !jsonObj.get("group_actions").isJsonArray()) { + // ensure the required json array is present + if (jsonObj.get("group_actions") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("group_actions").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `group_actions` to be an array in the JSON string but got `%s`", jsonObj.get("group_actions").toString())); } - // ensure the json data is an array - if ((jsonObj.get("invitee_email_or_name") != null && !jsonObj.get("invitee_email_or_name").isJsonNull()) && !jsonObj.get("invitee_email_or_name").isJsonArray()) { + // ensure the required json array is present + if (jsonObj.get("invitee_email_or_name") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("invitee_email_or_name").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `invitee_email_or_name` to be an array in the JSON string but got `%s`", jsonObj.get("invitee_email_or_name").toString())); } } @@ -290,7 +313,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, InvitationGroupShareEmail value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -302,7 +325,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -311,8 +339,9 @@ else if (entry.getValue() instanceof Character) @Override public InvitationGroupShareEmail read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance InvitationGroupShareEmail instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -326,8 +355,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -338,22 +369,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of InvitationGroupShareEmail given an JSON string - * - * @param jsonString JSON string - * @return An instance of InvitationGroupShareEmail - * @throws IOException if the JSON string is invalid with respect to InvitationGroupShareEmail - */ + /** + * Create an instance of InvitationGroupShareEmail given an JSON string + * + * @param jsonString JSON string + * @return An instance of InvitationGroupShareEmail + * @throws IOException if the JSON string is invalid with respect to InvitationGroupShareEmail + */ public static InvitationGroupShareEmail fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, InvitationGroupShareEmail.class); } - /** - * Convert an instance of InvitationGroupShareEmail to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of InvitationGroupShareEmail 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/InvitationOrganizationJoinEmail.java b/src/main/java/io/tiledb/cloud/rest_api/model/InvitationOrganizationJoinEmail.java index db83662..3c33477 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,39 +14,50 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.NamespaceActions; +import io.tiledb.cloud.rest_api.model.OrganizationRoles; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class InvitationOrganizationJoinEmail { public static final String SERIALIZED_NAME_ACTIONS = "actions"; @SerializedName(SERIALIZED_NAME_ACTIONS) - private List actions = null; + private List actions = new ArrayList<>(); public static final String SERIALIZED_NAME_ORGANIZATION_ROLE = "organization_role"; @SerializedName(SERIALIZED_NAME_ORGANIZATION_ROLE) @@ -60,7 +71,6 @@ public InvitationOrganizationJoinEmail() { } public InvitationOrganizationJoinEmail actions(List actions) { - this.actions = actions; return this; } @@ -73,69 +83,61 @@ public InvitationOrganizationJoinEmail addActionsItem(NamespaceActions actionsIt return this; } - /** + /** * List of permitted actions * @return actions - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "[read, write]", value = "List of permitted actions") - public List getActions() { return actions; } - public void setActions(List actions) { this.actions = actions; } public InvitationOrganizationJoinEmail organizationRole(OrganizationRoles organizationRole) { - this.organizationRole = organizationRole; return this; } - /** + /** * Get organizationRole * @return organizationRole - **/ + */ @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") - public OrganizationRoles getOrganizationRole() { return organizationRole; } - public void setOrganizationRole(OrganizationRoles organizationRole) { this.organizationRole = organizationRole; } public InvitationOrganizationJoinEmail inviteeEmail(List inviteeEmail) { - this.inviteeEmail = inviteeEmail; return this; } public InvitationOrganizationJoinEmail addInviteeEmailItem(String inviteeEmailItem) { + if (this.inviteeEmail == null) { + this.inviteeEmail = new ArrayList<>(); + } this.inviteeEmail.add(inviteeEmailItem); return this; } - /** + /** * Get inviteeEmail * @return inviteeEmail - **/ + */ @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") - public List getInviteeEmail() { return inviteeEmail; } - public void setInviteeEmail(List inviteeEmail) { this.inviteeEmail = inviteeEmail; } @@ -150,6 +152,10 @@ public void setInviteeEmail(List inviteeEmail) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the InvitationOrganizationJoinEmail instance itself */ public InvitationOrganizationJoinEmail putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -161,6 +167,8 @@ public InvitationOrganizationJoinEmail putAdditionalProperty(String key, Object /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -168,6 +176,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -237,33 +248,36 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("invitee_email"); } - /** - * 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 InvitationOrganizationJoinEmail - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (InvitationOrganizationJoinEmail.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to InvitationOrganizationJoinEmail + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!InvitationOrganizationJoinEmail.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in InvitationOrganizationJoinEmail is not found in the empty JSON string", InvitationOrganizationJoinEmail.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : InvitationOrganizationJoinEmail.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 (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } - // ensure the json data is an array - if ((jsonObj.get("actions") != null && !jsonObj.get("actions").isJsonNull()) && !jsonObj.get("actions").isJsonArray()) { + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("actions") != null && !jsonObj.get("actions").isJsonNull() && !jsonObj.get("actions").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `actions` to be an array in the JSON string but got `%s`", jsonObj.get("actions").toString())); } - // ensure the json data is an array - if ((jsonObj.get("invitee_email") != null && !jsonObj.get("invitee_email").isJsonNull()) && !jsonObj.get("invitee_email").isJsonArray()) { + // validate the required field `organization_role` + OrganizationRoles.validateJsonElement(jsonObj.get("organization_role")); + // ensure the required json array is present + if (jsonObj.get("invitee_email") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("invitee_email").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `invitee_email` to be an array in the JSON string but got `%s`", jsonObj.get("invitee_email").toString())); } } @@ -284,7 +298,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, InvitationOrganizationJoinEmail value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -296,7 +310,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -305,8 +324,9 @@ else if (entry.getValue() instanceof Character) @Override public InvitationOrganizationJoinEmail read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance InvitationOrganizationJoinEmail instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -320,8 +340,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -332,22 +354,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of InvitationOrganizationJoinEmail given an JSON string - * - * @param jsonString JSON string - * @return An instance of InvitationOrganizationJoinEmail - * @throws IOException if the JSON string is invalid with respect to InvitationOrganizationJoinEmail - */ + /** + * Create an instance of InvitationOrganizationJoinEmail given an JSON string + * + * @param jsonString JSON string + * @return An instance of InvitationOrganizationJoinEmail + * @throws IOException if the JSON string is invalid with respect to InvitationOrganizationJoinEmail + */ public static InvitationOrganizationJoinEmail fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, InvitationOrganizationJoinEmail.class); } - /** - * Convert an instance of InvitationOrganizationJoinEmail to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of InvitationOrganizationJoinEmail 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/InvitationStatus.java b/src/main/java/io/tiledb/cloud/rest_api/model/InvitationStatus.java index 7a94bd6..45bff2f 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,8 +13,12 @@ package io.tiledb.cloud.rest_api.model; +import java.util.Objects; +import com.google.gson.annotations.SerializedName; + import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -65,5 +69,10 @@ public InvitationStatus read(final JsonReader jsonReader) throws IOException { return InvitationStatus.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + InvitationStatus.fromValue(value); + } } 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..697523d 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,8 +13,12 @@ package io.tiledb.cloud.rest_api.model; +import java.util.Objects; +import com.google.gson.annotations.SerializedName; + import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -29,7 +33,9 @@ public enum InvitationType { GROUP_SHARE("GROUP_SHARE"), - JOIN_ORGANIZATION("JOIN_ORGANIZATION"); + JOIN_ORGANIZATION("JOIN_ORGANIZATION"), + + PAYMENT_SHARE("PAYMENT_SHARE"); private String value; @@ -67,5 +73,10 @@ public InvitationType read(final JsonReader jsonReader) throws IOException { return InvitationType.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + InvitationType.fromValue(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..9acb257 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,33 +14,44 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.ActivityEventType; import java.io.IOException; import java.math.BigDecimal; +import java.util.Arrays; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class LastAccessedArray { public static final String SERIALIZED_NAME_ARRAY_ID = "array_id"; @SerializedName(SERIALIZED_NAME_ARRAY_ID) @@ -66,115 +77,95 @@ public LastAccessedArray() { } public LastAccessedArray arrayId(String arrayId) { - this.arrayId = arrayId; return this; } - /** + /** * unique ID of array * @return arrayId - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", value = "unique ID of array") - public String getArrayId() { return arrayId; } - public void setArrayId(String arrayId) { this.arrayId = arrayId; } public LastAccessedArray arrayName(String arrayName) { - this.arrayName = arrayName; return this; } - /** + /** * name of the array * @return arrayName - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "array1", value = "name of the array") - public String getArrayName() { return arrayName; } - public void setArrayName(String arrayName) { this.arrayName = arrayName; } public LastAccessedArray namespace(String namespace) { - this.namespace = namespace; return this; } - /** + /** * namespace of a user or organization * @return namespace - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "mockuser", value = "namespace of a user or organization") - public String getNamespace() { return namespace; } - public void setNamespace(String namespace) { this.namespace = namespace; } public LastAccessedArray accessedTime(BigDecimal accessedTime) { - this.accessedTime = accessedTime; return this; } - /** + /** * timestamp (epoch milliseconds) array is last accessed * @return accessedTime - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "1540471791873", value = "timestamp (epoch milliseconds) array is last accessed") - public BigDecimal getAccessedTime() { return accessedTime; } - public void setAccessedTime(BigDecimal accessedTime) { this.accessedTime = accessedTime; } public LastAccessedArray accessType(ActivityEventType accessType) { - this.accessType = accessType; return this; } - /** + /** * Get accessType * @return accessType - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public ActivityEventType getAccessType() { return accessType; } - public void setAccessType(ActivityEventType accessType) { this.accessType = accessType; } @@ -189,6 +180,10 @@ public void setAccessType(ActivityEventType accessType) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the LastAccessedArray instance itself */ public LastAccessedArray putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -200,6 +195,8 @@ public LastAccessedArray putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -207,6 +204,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -280,20 +280,19 @@ private String toIndentedString(Object o) { 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 LastAccessedArray - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (LastAccessedArray.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to LastAccessedArray + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!LastAccessedArray.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in LastAccessedArray is not found in the empty JSON string", LastAccessedArray.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("array_id") != null && !jsonObj.get("array_id").isJsonNull()) && !jsonObj.get("array_id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `array_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("array_id").toString())); } @@ -303,6 +302,10 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { 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())); } + // validate the optional field `access_type` + if (jsonObj.get("access_type") != null && !jsonObj.get("access_type").isJsonNull()) { + ActivityEventType.validateJsonElement(jsonObj.get("access_type")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -321,7 +324,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, LastAccessedArray value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -333,7 +336,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -342,8 +350,9 @@ else if (entry.getValue() instanceof Character) @Override public LastAccessedArray read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance LastAccessedArray instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -357,8 +366,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -369,22 +380,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of LastAccessedArray given an JSON string - * - * @param jsonString JSON string - * @return An instance of LastAccessedArray - * @throws IOException if the JSON string is invalid with respect to LastAccessedArray - */ + /** + * Create an instance of LastAccessedArray given an JSON string + * + * @param jsonString JSON string + * @return An instance of LastAccessedArray + * @throws IOException if the JSON string is invalid with respect to LastAccessedArray + */ public static LastAccessedArray fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, LastAccessedArray.class); } - /** - * Convert an instance of LastAccessedArray to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of LastAccessedArray 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/Layout.java b/src/main/java/io/tiledb/cloud/rest_api/model/Layout.java index 1590f22..9faea4f 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,8 +13,12 @@ package io.tiledb.cloud.rest_api.model; +import java.util.Objects; +import com.google.gson.annotations.SerializedName; + import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -69,5 +73,10 @@ public Layout read(final JsonReader jsonReader) throws IOException { return Layout.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + Layout.fromValue(value); + } } 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..061e96f --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaRequest.java @@ -0,0 +1,289 @@ +/* + * 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.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.TileDBConfig; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.tiledb.cloud.rest_api.JSON; + +/** + * Request to load an array schema + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +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 + 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. + * + * @param key name of the property + * @param value value of the property + * @return the LoadArraySchemaRequest instance itself + */ + 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. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + 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 Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to LoadArraySchemaRequest + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!LoadArraySchemaRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in LoadArraySchemaRequest is not found in the empty JSON string", LoadArraySchemaRequest.openapiRequiredFields.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `config` + if (jsonObj.get("config") != null && !jsonObj.get("config").isJsonNull()) { + TileDBConfig.validateJsonElement(jsonObj.get("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 additional 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 { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public LoadArraySchemaRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // 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 if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + 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..bb3786f --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaResponse.java @@ -0,0 +1,325 @@ +/* + * 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.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.ArraySchema; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.tiledb.cloud.rest_api.JSON; + +/** + * Contains the latest schema and all schemas for the opened array + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +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 = new HashMap<>(); + + public LoadArraySchemaResponse() { + } + + public LoadArraySchemaResponse latestArraySchema(ArraySchema latestArraySchema) { + this.latestArraySchema = latestArraySchema; + return this; + } + + /** + * Get latestArraySchema + * @return latestArraySchema + */ + @javax.annotation.Nullable + 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 + 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. + * + * @param key name of the property + * @param value value of the property + * @return the LoadArraySchemaResponse instance itself + */ + 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. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + 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 Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to LoadArraySchemaResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!LoadArraySchemaResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in LoadArraySchemaResponse is not found in the empty JSON string", LoadArraySchemaResponse.openapiRequiredFields.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `latest_array_schema` + if (jsonObj.get("latest_array_schema") != null && !jsonObj.get("latest_array_schema").isJsonNull()) { + ArraySchema.validateJsonElement(jsonObj.get("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 additional 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 { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public LoadArraySchemaResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // 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 if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + 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..8ce920c --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsRequest.java @@ -0,0 +1,329 @@ +/* + * 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.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.TileDBConfig; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.tiledb.cloud.rest_api.JSON; + +/** + * Request to return enumerations for attributes + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +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 = new ArrayList<>(); + + public LoadEnumerationsRequest() { + } + + public LoadEnumerationsRequest config(TileDBConfig config) { + this.config = config; + return this; + } + + /** + * Get config + * @return config + */ + @javax.annotation.Nullable + 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 + 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. + * + * @param key name of the property + * @param value value of the property + * @return the LoadEnumerationsRequest instance itself + */ + 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. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + 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 Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to LoadEnumerationsRequest + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!LoadEnumerationsRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in LoadEnumerationsRequest is not found in the empty JSON string", LoadEnumerationsRequest.openapiRequiredFields.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `config` + if (jsonObj.get("config") != null && !jsonObj.get("config").isJsonNull()) { + TileDBConfig.validateJsonElement(jsonObj.get("config")); + } + // ensure the optional json data is an array if present + 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 additional 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 { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public LoadEnumerationsRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // 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 if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + 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..6ec4519 --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsResponse.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.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.Enumeration; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.tiledb.cloud.rest_api.JSON; + +/** + * Contains the enumerations of the array's attributes + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +public class LoadEnumerationsResponse { + public static final String SERIALIZED_NAME_ENUMERATIONS = "enumerations"; + @SerializedName(SERIALIZED_NAME_ENUMERATIONS) + private List enumerations = new ArrayList<>(); + + 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 + 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. + * + * @param key name of the property + * @param value value of the property + * @return the LoadEnumerationsResponse instance itself + */ + 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. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + 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 Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to LoadEnumerationsResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!LoadEnumerationsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in LoadEnumerationsResponse is not found in the empty JSON string", LoadEnumerationsResponse.openapiRequiredFields.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("enumerations") != null && !jsonObj.get("enumerations").isJsonNull()) { + 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.validateJsonElement(jsonArrayenumerations.get(i)); + }; + } + } + } + + 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 additional 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 { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public LoadEnumerationsResponse read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // 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 if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + 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..e74fc72 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,32 +14,42 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.Arrays; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class MLModelFavorite { public static final String SERIALIZED_NAME_MLMODEL_UUID = "mlmodel_uuid"; @SerializedName(SERIALIZED_NAME_MLMODEL_UUID) @@ -57,69 +67,57 @@ public MLModelFavorite() { } public MLModelFavorite mlmodelUuid(String mlmodelUuid) { - this.mlmodelUuid = mlmodelUuid; return this; } - /** + /** * unique UUID of the MLModel * @return mlmodelUuid - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "unique UUID of the MLModel") - public String getMlmodelUuid() { return mlmodelUuid; } - public void setMlmodelUuid(String mlmodelUuid) { this.mlmodelUuid = mlmodelUuid; } public MLModelFavorite namespace(String namespace) { - this.namespace = namespace; return this; } - /** + /** * the namespace of the MLModel * @return namespace - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "the namespace of the MLModel") - public String getNamespace() { return namespace; } - public void setNamespace(String namespace) { this.namespace = namespace; } public MLModelFavorite name(String name) { - this.name = name; return this; } - /** + /** * the name of the MLModel * @return name - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "the name of the MLModel") - public String getName() { return name; } - public void setName(String name) { this.name = name; } @@ -134,6 +132,10 @@ public void setName(String name) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the MLModelFavorite instance itself */ public MLModelFavorite putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -145,6 +147,8 @@ public MLModelFavorite putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -152,6 +156,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -219,20 +226,19 @@ private String toIndentedString(Object o) { 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 MLModelFavorite - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (MLModelFavorite.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to MLModelFavorite + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!MLModelFavorite.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in MLModelFavorite is not found in the empty JSON string", MLModelFavorite.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("mlmodel_uuid") != null && !jsonObj.get("mlmodel_uuid").isJsonNull()) && !jsonObj.get("mlmodel_uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `mlmodel_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("mlmodel_uuid").toString())); } @@ -260,7 +266,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, MLModelFavorite value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -272,7 +278,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -281,8 +292,9 @@ else if (entry.getValue() instanceof Character) @Override public MLModelFavorite read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance MLModelFavorite instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -296,8 +308,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -308,22 +322,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of MLModelFavorite given an JSON string - * - * @param jsonString JSON string - * @return An instance of MLModelFavorite - * @throws IOException if the JSON string is invalid with respect to MLModelFavorite - */ + /** + * Create an instance of MLModelFavorite given an JSON string + * + * @param jsonString JSON string + * @return An instance of MLModelFavorite + * @throws IOException if the JSON string is invalid with respect to MLModelFavorite + */ public static MLModelFavorite fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, MLModelFavorite.class); } - /** - * Convert an instance of MLModelFavorite to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of MLModelFavorite 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/MLModelFavoritesData.java b/src/main/java/io/tiledb/cloud/rest_api/model/MLModelFavoritesData.java index d17853c..bb15bda 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,39 +14,50 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.ArrayInfo; +import io.tiledb.cloud.rest_api.model.PaginationMetadata; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class MLModelFavoritesData { public static final String SERIALIZED_NAME_MLMODELS = "mlmodels"; @SerializedName(SERIALIZED_NAME_MLMODELS) - private List mlmodels = null; + private List mlmodels = new ArrayList<>(); public static final String SERIALIZED_NAME_PAGINATION_METADATA = "pagination_metadata"; @SerializedName(SERIALIZED_NAME_PAGINATION_METADATA) @@ -56,7 +67,6 @@ public MLModelFavoritesData() { } public MLModelFavoritesData mlmodels(List mlmodels) { - this.mlmodels = mlmodels; return this; } @@ -69,41 +79,34 @@ public MLModelFavoritesData addMlmodelsItem(ArrayInfo mlmodelsItem) { return this; } - /** + /** * List of MLModel infos * @return mlmodels - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "List of MLModel infos") - public List getMlmodels() { return mlmodels; } - public void setMlmodels(List mlmodels) { this.mlmodels = mlmodels; } public MLModelFavoritesData 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; } @@ -118,6 +121,10 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the MLModelFavoritesData instance itself */ public MLModelFavoritesData putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -129,6 +136,8 @@ public MLModelFavoritesData putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -136,6 +145,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -200,35 +212,36 @@ private String toIndentedString(Object o) { 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 MLModelFavoritesData - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (MLModelFavoritesData.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to MLModelFavoritesData + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!MLModelFavoritesData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in MLModelFavoritesData is not found in the empty JSON string", MLModelFavoritesData.openapiRequiredFields.toString())); } } - JsonArray jsonArraymlmodels = jsonObj.getAsJsonArray("mlmodels"); - if (jsonArraymlmodels != null) { - // ensure the json data is an array - if (!jsonObj.get("mlmodels").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `mlmodels` to be an array in the JSON string but got `%s`", jsonObj.get("mlmodels").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("mlmodels") != null && !jsonObj.get("mlmodels").isJsonNull()) { + JsonArray jsonArraymlmodels = jsonObj.getAsJsonArray("mlmodels"); + if (jsonArraymlmodels != null) { + // ensure the json data is an array + if (!jsonObj.get("mlmodels").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `mlmodels` to be an array in the JSON string but got `%s`", jsonObj.get("mlmodels").toString())); + } + + // validate the optional field `mlmodels` (array) + for (int i = 0; i < jsonArraymlmodels.size(); i++) { + ArrayInfo.validateJsonElement(jsonArraymlmodels.get(i)); + }; } - - // validate the optional field `mlmodels` (array) - for (int i = 0; i < jsonArraymlmodels.size(); i++) { - ArrayInfo.validateJsonObject(jsonArraymlmodels.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")); + PaginationMetadata.validateJsonElement(jsonObj.get("pagination_metadata")); } } @@ -248,7 +261,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, MLModelFavoritesData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -260,7 +273,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -269,8 +287,9 @@ else if (entry.getValue() instanceof Character) @Override public MLModelFavoritesData read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance MLModelFavoritesData instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -284,8 +303,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -296,22 +317,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of MLModelFavoritesData given an JSON string - * - * @param jsonString JSON string - * @return An instance of MLModelFavoritesData - * @throws IOException if the JSON string is invalid with respect to MLModelFavoritesData - */ + /** + * Create an instance of MLModelFavoritesData given an JSON string + * + * @param jsonString JSON string + * @return An instance of MLModelFavoritesData + * @throws IOException if the JSON string is invalid with respect to MLModelFavoritesData + */ public static MLModelFavoritesData fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, MLModelFavoritesData.class); } - /** - * Convert an instance of MLModelFavoritesData to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of MLModelFavoritesData 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/MaxBufferSizes.java b/src/main/java/io/tiledb/cloud/rest_api/model/MaxBufferSizes.java index e82a328..440be04 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,45 +14,54 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.AttributeBufferSize; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class MaxBufferSizes { public static final String SERIALIZED_NAME_MAX_BUFFER_SIZES = "maxBufferSizes"; @SerializedName(SERIALIZED_NAME_MAX_BUFFER_SIZES) - private List maxBufferSizes = null; + private List maxBufferSizes = new ArrayList<>(); public MaxBufferSizes() { } public MaxBufferSizes maxBufferSizes(List maxBufferSizes) { - this.maxBufferSizes = maxBufferSizes; return this; } @@ -65,18 +74,15 @@ public MaxBufferSizes addMaxBufferSizesItem(AttributeBufferSize maxBufferSizesIt return this; } - /** + /** * Get maxBufferSizes * @return maxBufferSizes - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public List getMaxBufferSizes() { return maxBufferSizes; } - public void setMaxBufferSizes(List maxBufferSizes) { this.maxBufferSizes = maxBufferSizes; } @@ -91,6 +97,10 @@ public void setMaxBufferSizes(List maxBufferSizes) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the MaxBufferSizes instance itself */ public MaxBufferSizes putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -102,6 +112,8 @@ public MaxBufferSizes putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -109,6 +121,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -170,31 +185,32 @@ private String toIndentedString(Object o) { 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 MaxBufferSizes - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (MaxBufferSizes.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to MaxBufferSizes + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!MaxBufferSizes.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in MaxBufferSizes is not found in the empty JSON string", MaxBufferSizes.openapiRequiredFields.toString())); } } - JsonArray jsonArraymaxBufferSizes = jsonObj.getAsJsonArray("maxBufferSizes"); - if (jsonArraymaxBufferSizes != null) { - // ensure the json data is an array - if (!jsonObj.get("maxBufferSizes").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `maxBufferSizes` to be an array in the JSON string but got `%s`", jsonObj.get("maxBufferSizes").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("maxBufferSizes") != null && !jsonObj.get("maxBufferSizes").isJsonNull()) { + JsonArray jsonArraymaxBufferSizes = jsonObj.getAsJsonArray("maxBufferSizes"); + if (jsonArraymaxBufferSizes != null) { + // ensure the json data is an array + if (!jsonObj.get("maxBufferSizes").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `maxBufferSizes` to be an array in the JSON string but got `%s`", jsonObj.get("maxBufferSizes").toString())); + } + + // validate the optional field `maxBufferSizes` (array) + for (int i = 0; i < jsonArraymaxBufferSizes.size(); i++) { + AttributeBufferSize.validateJsonElement(jsonArraymaxBufferSizes.get(i)); + }; } - - // validate the optional field `maxBufferSizes` (array) - for (int i = 0; i < jsonArraymaxBufferSizes.size(); i++) { - AttributeBufferSize.validateJsonObject(jsonArraymaxBufferSizes.get(i).getAsJsonObject()); - }; } } @@ -214,7 +230,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, MaxBufferSizes value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -226,7 +242,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -235,8 +256,9 @@ else if (entry.getValue() instanceof Character) @Override public MaxBufferSizes read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance MaxBufferSizes instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -250,8 +272,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -262,22 +286,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of MaxBufferSizes given an JSON string - * - * @param jsonString JSON string - * @return An instance of MaxBufferSizes - * @throws IOException if the JSON string is invalid with respect to MaxBufferSizes - */ + /** + * Create an instance of MaxBufferSizes given an JSON string + * + * @param jsonString JSON string + * @return An instance of MaxBufferSizes + * @throws IOException if the JSON string is invalid with respect to MaxBufferSizes + */ public static MaxBufferSizes fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, MaxBufferSizes.class); } - /** - * Convert an instance of MaxBufferSizes to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of MaxBufferSizes 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/MetadataStringified.java b/src/main/java/io/tiledb/cloud/rest_api/model/MetadataStringified.java new file mode 100644 index 0000000..beda1db --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/MetadataStringified.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.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.MetadataStringifiedEntry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.tiledb.cloud.rest_api.JSON; + +/** + * The user's TileDB metadata + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +public class MetadataStringified { + public static final String SERIALIZED_NAME_ENTRIES = "entries"; + @SerializedName(SERIALIZED_NAME_ENTRIES) + private List entries = new ArrayList<>(); + + 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 + 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. + * + * @param key name of the property + * @param value value of the property + * @return the MetadataStringified instance itself + */ + 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. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + 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 Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to MetadataStringified + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!MetadataStringified.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in MetadataStringified is not found in the empty JSON string", MetadataStringified.openapiRequiredFields.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("entries") != null && !jsonObj.get("entries").isJsonNull()) { + 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.validateJsonElement(jsonArrayentries.get(i)); + }; + } + } + } + + 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 additional 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 { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public MetadataStringified read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // 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 if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + 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..c7e1a98 --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/MetadataStringifiedEntry.java @@ -0,0 +1,345 @@ +/* + * 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.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.tiledb.cloud.rest_api.JSON; + +/** + * key/value pair representing an asset metadata map entry + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +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 + 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 + 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 + 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. + * + * @param key name of the property + * @param value value of the property + * @return the MetadataStringifiedEntry instance itself + */ + 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. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + 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 Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to MetadataStringifiedEntry + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!MetadataStringifiedEntry.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in MetadataStringifiedEntry is not found in the empty JSON string", MetadataStringifiedEntry.openapiRequiredFields.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + 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 additional 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 { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public MetadataStringifiedEntry read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // 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 if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + 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..81e3ce7 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). @@ -14,37 +14,51 @@ 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.JsonAdapter; 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 io.tiledb.cloud.rest_api.model.QueryRanges; +import io.tiledb.cloud.rest_api.model.ResultFormat; +import io.tiledb.cloud.rest_api.model.TGUDFArgument; +import io.tiledb.cloud.rest_api.model.UDFArrayDetails; +import io.tiledb.cloud.rest_api.model.UDFLanguage; +import io.tiledb.cloud.rest_api.model.UDFSubarray; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; 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.GsonBuilder; import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; + +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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class MultiArrayUDF { public static final String SERIALIZED_NAME_UDF_INFO_NAME = "udf_info_name"; @SerializedName(SERIALIZED_NAME_UDF_INFO_NAME) @@ -92,11 +106,11 @@ public class MultiArrayUDF { public static final String SERIALIZED_NAME_ARGUMENTS_JSON = "arguments_json"; @SerializedName(SERIALIZED_NAME_ARGUMENTS_JSON) - private List argumentsJson = null; + private List argumentsJson; public static final String SERIALIZED_NAME_STORED_PARAM_UUIDS = "stored_param_uuids"; @SerializedName(SERIALIZED_NAME_STORED_PARAM_UUIDS) - private List storedParamUuids = null; + private List storedParamUuids = new ArrayList<>(); public static final String SERIALIZED_NAME_STORE_RESULTS = "store_results"; @SerializedName(SERIALIZED_NAME_STORE_RESULTS) @@ -116,11 +130,11 @@ public class MultiArrayUDF { public static final String SERIALIZED_NAME_BUFFERS = "buffers"; @SerializedName(SERIALIZED_NAME_BUFFERS) - private List buffers = null; + private List buffers = new ArrayList<>(); public static final String SERIALIZED_NAME_ARRAYS = "arrays"; @SerializedName(SERIALIZED_NAME_ARRAYS) - private List arrays = null; + private List arrays = new ArrayList<>(); public static final String SERIALIZED_NAME_TIMEOUT = "timeout"; @SerializedName(SERIALIZED_NAME_TIMEOUT) @@ -138,260 +152,215 @@ public MultiArrayUDF() { } public MultiArrayUDF udfInfoName(String udfInfoName) { - this.udfInfoName = udfInfoName; return this; } - /** + /** * name of UDFInfo to run, format is {namespace}/{udf_name}. Can not be used with exec * @return udfInfoName - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "TileDB-Inc/quickstart_median", value = "name of UDFInfo to run, format is {namespace}/{udf_name}. Can not be used with exec") - public String getUdfInfoName() { return udfInfoName; } - public void setUdfInfoName(String udfInfoName) { this.udfInfoName = udfInfoName; } public MultiArrayUDF language(UDFLanguage language) { - this.language = language; return this; } - /** + /** * Get language * @return language - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public UDFLanguage getLanguage() { return language; } - public void setLanguage(UDFLanguage language) { this.language = language; } public MultiArrayUDF version(String version) { - this.version = version; return this; } - /** + /** * Type-specific version * @return version - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Type-specific version") - public String getVersion() { return version; } - public void setVersion(String version) { this.version = version; } public MultiArrayUDF imageName(String imageName) { - this.imageName = imageName; return this; } - /** + /** * Docker image name to use for UDF * @return imageName - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Docker image name to use for UDF") - public String getImageName() { return imageName; } - public void setImageName(String imageName) { this.imageName = imageName; } public MultiArrayUDF accessCredentialsName(String accessCredentialsName) { - this.accessCredentialsName = accessCredentialsName; return this; } - /** + /** * The name of the access credentials to use. if unset, no credentials will be configured in the environment. * @return accessCredentialsName - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The name of the access credentials to use. if unset, no credentials will be configured in the environment.") - public String getAccessCredentialsName() { return accessCredentialsName; } - public void setAccessCredentialsName(String accessCredentialsName) { this.accessCredentialsName = accessCredentialsName; } public MultiArrayUDF resourceClass(String resourceClass) { - this.resourceClass = resourceClass; return this; } - /** + /** * The resource class to use for the UDF execution. Resource classes define resource limits for memory and CPUs. If this is empty, then the UDF will execute in the standard resource class of the TileDB Cloud provider. * @return resourceClass - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "standard", value = "The resource class to use for the UDF execution. Resource classes define resource limits for memory and CPUs. If this is empty, then the UDF will execute in the standard resource class of the TileDB Cloud provider. ") - public String getResourceClass() { return resourceClass; } - public void setResourceClass(String resourceClass) { this.resourceClass = resourceClass; } public MultiArrayUDF exec(String exec) { - this.exec = exec; return this; } - /** + /** * Type-specific executable text * @return exec - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Type-specific executable text") - public String getExec() { return exec; } - public void setExec(String exec) { this.exec = exec; } public MultiArrayUDF execRaw(String execRaw) { - this.execRaw = execRaw; return this; } - /** + /** * optional raw text to store of serialized function, used for showing in UI * @return execRaw - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "optional raw text to store of serialized function, used for showing in UI") - public String getExecRaw() { return execRaw; } - public void setExecRaw(String execRaw) { this.execRaw = execRaw; } public MultiArrayUDF resultFormat(ResultFormat resultFormat) { - this.resultFormat = resultFormat; return this; } - /** + /** * Get resultFormat * @return resultFormat - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public ResultFormat getResultFormat() { return resultFormat; } - public void setResultFormat(ResultFormat resultFormat) { this.resultFormat = resultFormat; } public MultiArrayUDF taskName(String taskName) { - this.taskName = taskName; return this; } - /** + /** * name of task, optional * @return taskName - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "name of task, optional") - public String getTaskName() { return taskName; } - public void setTaskName(String taskName) { this.taskName = taskName; } public MultiArrayUDF argument(String argument) { - this.argument = argument; return this; } - /** + /** * Deprecated: Prefer to use `argument_json` instead. Argument(s) to pass to UDF function, tuple or list of args/kwargs which can be in native or JSON format * @return argument - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Deprecated: Prefer to use `argument_json` instead. Argument(s) to pass to UDF function, tuple or list of args/kwargs which can be in native or JSON format ") - public String getArgument() { return argument; } - public void setArgument(String argument) { this.argument = argument; } public MultiArrayUDF argumentsJson(List argumentsJson) { - this.argumentsJson = argumentsJson; return this; } @@ -404,25 +373,21 @@ public MultiArrayUDF addArgumentsJsonItem(TGUDFArgument argumentsJsonItem) { return this; } - /** + /** * A series of key-value pairs to be passed as arguments into the UDF. See `TGUDFNodeData.arguments` for more information. If this format is used to pass arguments, arrays will be passed into the UDF as specified by the Node placeholders passed in here, rather than the classic method of putting all array arguments in the first parameter. Either this or `argument` should be set. * @return argumentsJson - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "A series of key-value pairs to be passed as arguments into the UDF. See `TGUDFNodeData.arguments` for more information. If this format is used to pass arguments, arrays will be passed into the UDF as specified by the Node placeholders passed in here, rather than the classic method of putting all array arguments in the first parameter. Either this or `argument` should be set. ") - public List getArgumentsJson() { return argumentsJson; } - public void setArgumentsJson(List argumentsJson) { this.argumentsJson = argumentsJson; } public MultiArrayUDF storedParamUuids(List storedParamUuids) { - this.storedParamUuids = storedParamUuids; return this; } @@ -435,117 +400,97 @@ public MultiArrayUDF addStoredParamUuidsItem(String storedParamUuidsItem) { return this; } - /** + /** * The UUIDs of stored input parameters (passed in a language-specific format within \"argument\") to be retrieved from the server-side cache. Serialized in standard hex format with no {}. * @return storedParamUuids - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The UUIDs of stored input parameters (passed in a language-specific format within \"argument\") to be retrieved from the server-side cache. Serialized in standard hex format with no {}.") - public List getStoredParamUuids() { return storedParamUuids; } - public void setStoredParamUuids(List storedParamUuids) { this.storedParamUuids = storedParamUuids; } public MultiArrayUDF storeResults(Boolean storeResults) { - this.storeResults = storeResults; return this; } - /** + /** * store results for later retrieval * @return storeResults - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "store results for later retrieval") - public Boolean getStoreResults() { return storeResults; } - public void setStoreResults(Boolean storeResults) { this.storeResults = storeResults; } public MultiArrayUDF dontDownloadResults(Boolean dontDownloadResults) { - this.dontDownloadResults = dontDownloadResults; return this; } - /** + /** * Set to true to avoid downloading the results of this UDF. Useful for intermediate nodes in a task graph where you will not be using the results of your function. Defaults to false (\"yes download results\"). * @return dontDownloadResults - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Set to true to avoid downloading the results of this UDF. Useful for intermediate nodes in a task graph where you will not be using the results of your function. Defaults to false (\"yes download results\").") - public Boolean getDontDownloadResults() { return dontDownloadResults; } - public void setDontDownloadResults(Boolean dontDownloadResults) { this.dontDownloadResults = dontDownloadResults; } public MultiArrayUDF ranges(QueryRanges ranges) { - this.ranges = ranges; return this; } - /** + /** * Get ranges * @return ranges - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public QueryRanges getRanges() { return ranges; } - public void setRanges(QueryRanges ranges) { this.ranges = ranges; } public MultiArrayUDF subarray(UDFSubarray subarray) { - this.subarray = subarray; return this; } - /** + /** * Get subarray * @return subarray - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public UDFSubarray getSubarray() { return subarray; } - public void setSubarray(UDFSubarray subarray) { this.subarray = subarray; } public MultiArrayUDF buffers(List buffers) { - this.buffers = buffers; return this; } @@ -558,25 +503,21 @@ public MultiArrayUDF addBuffersItem(String buffersItem) { return this; } - /** + /** * List of buffers to fetch (attributes + dimensions). Deprecated; please set arrays with `UDFArrayDetails`. * @return buffers - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "List of buffers to fetch (attributes + dimensions). Deprecated; please set arrays with `UDFArrayDetails`.") - public List getBuffers() { return buffers; } - public void setBuffers(List buffers) { this.buffers = buffers; } public MultiArrayUDF arrays(List arrays) { - this.arrays = arrays; return this; } @@ -589,87 +530,72 @@ public MultiArrayUDF addArraysItem(UDFArrayDetails arraysItem) { return this; } - /** + /** * Array ranges/buffer into to run UDF on * @return arrays - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Array ranges/buffer into to run UDF on") - public List getArrays() { return arrays; } - public void setArrays(List arrays) { this.arrays = arrays; } public MultiArrayUDF timeout(Integer timeout) { - this.timeout = timeout; return this; } - /** + /** * UDF-type timeout in seconds (default: 900) * @return timeout - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "UDF-type timeout in seconds (default: 900)") - public Integer getTimeout() { return timeout; } - public void setTimeout(Integer timeout) { this.timeout = timeout; } public MultiArrayUDF taskGraphUuid(String taskGraphUuid) { - this.taskGraphUuid = taskGraphUuid; return this; } - /** + /** * If set, the ID of the log for the task graph that this was part of. * @return taskGraphUuid - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "If set, the ID of the log for the task graph that this was part of. ") - public String getTaskGraphUuid() { return taskGraphUuid; } - public void setTaskGraphUuid(String taskGraphUuid) { this.taskGraphUuid = taskGraphUuid; } public MultiArrayUDF clientNodeUuid(String clientNodeUuid) { - this.clientNodeUuid = clientNodeUuid; return this; } - /** + /** * If set, the client-defined ID of the node within this task's graph. * @return clientNodeUuid - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "If set, the client-defined ID of the node within this task's graph. ") - public String getClientNodeUuid() { return clientNodeUuid; } - public void setClientNodeUuid(String clientNodeUuid) { this.clientNodeUuid = clientNodeUuid; } @@ -684,6 +610,10 @@ public void setClientNodeUuid(String clientNodeUuid) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the MultiArrayUDF instance itself */ public MultiArrayUDF putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -695,6 +625,8 @@ public MultiArrayUDF putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -702,6 +634,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -837,23 +772,26 @@ private String toIndentedString(Object o) { 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 MultiArrayUDF - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (MultiArrayUDF.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to MultiArrayUDF + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!MultiArrayUDF.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in MultiArrayUDF is not found in the empty JSON string", MultiArrayUDF.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("udf_info_name") != null && !jsonObj.get("udf_info_name").isJsonNull()) && !jsonObj.get("udf_info_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `udf_info_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("udf_info_name").toString())); } + // validate the optional field `language` + if (jsonObj.get("language") != null && !jsonObj.get("language").isJsonNull()) { + UDFLanguage.validateJsonElement(jsonObj.get("language")); + } if ((jsonObj.get("version") != null && !jsonObj.get("version").isJsonNull()) && !jsonObj.get("version").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `version` to be a primitive type in the JSON string but got `%s`", jsonObj.get("version").toString())); } @@ -872,51 +810,59 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if ((jsonObj.get("exec_raw") != null && !jsonObj.get("exec_raw").isJsonNull()) && !jsonObj.get("exec_raw").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `exec_raw` to be a primitive type in the JSON string but got `%s`", jsonObj.get("exec_raw").toString())); } + // validate the optional field `result_format` + if (jsonObj.get("result_format") != null && !jsonObj.get("result_format").isJsonNull()) { + ResultFormat.validateJsonElement(jsonObj.get("result_format")); + } if ((jsonObj.get("task_name") != null && !jsonObj.get("task_name").isJsonNull()) && !jsonObj.get("task_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `task_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("task_name").toString())); } if ((jsonObj.get("argument") != null && !jsonObj.get("argument").isJsonNull()) && !jsonObj.get("argument").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `argument` to be a primitive type in the JSON string but got `%s`", jsonObj.get("argument").toString())); } - JsonArray jsonArrayargumentsJson = jsonObj.getAsJsonArray("arguments_json"); - if (jsonArrayargumentsJson != null) { - // ensure the json data is an array - if (!jsonObj.get("arguments_json").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `arguments_json` to be an array in the JSON string but got `%s`", jsonObj.get("arguments_json").toString())); + if (jsonObj.get("arguments_json") != null && !jsonObj.get("arguments_json").isJsonNull()) { + JsonArray jsonArrayargumentsJson = jsonObj.getAsJsonArray("arguments_json"); + if (jsonArrayargumentsJson != null) { + // ensure the json data is an array + if (!jsonObj.get("arguments_json").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `arguments_json` to be an array in the JSON string but got `%s`", jsonObj.get("arguments_json").toString())); + } + + // validate the optional field `arguments_json` (array) + for (int i = 0; i < jsonArrayargumentsJson.size(); i++) { + TGUDFArgument.validateJsonElement(jsonArrayargumentsJson.get(i)); + }; } - - // validate the optional field `arguments_json` (array) - for (int i = 0; i < jsonArrayargumentsJson.size(); i++) { - TGUDFArgument.validateJsonObject(jsonArrayargumentsJson.get(i).getAsJsonObject()); - }; } - // ensure the json data is an array - if ((jsonObj.get("stored_param_uuids") != null && !jsonObj.get("stored_param_uuids").isJsonNull()) && !jsonObj.get("stored_param_uuids").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("stored_param_uuids") != null && !jsonObj.get("stored_param_uuids").isJsonNull() && !jsonObj.get("stored_param_uuids").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `stored_param_uuids` to be an array in the JSON string but got `%s`", jsonObj.get("stored_param_uuids").toString())); } // validate the optional field `ranges` if (jsonObj.get("ranges") != null && !jsonObj.get("ranges").isJsonNull()) { - QueryRanges.validateJsonObject(jsonObj.getAsJsonObject("ranges")); + QueryRanges.validateJsonElement(jsonObj.get("ranges")); } // validate the optional field `subarray` if (jsonObj.get("subarray") != null && !jsonObj.get("subarray").isJsonNull()) { - UDFSubarray.validateJsonObject(jsonObj.getAsJsonObject("subarray")); + UDFSubarray.validateJsonElement(jsonObj.get("subarray")); } - // ensure the json data is an array - if ((jsonObj.get("buffers") != null && !jsonObj.get("buffers").isJsonNull()) && !jsonObj.get("buffers").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("buffers") != null && !jsonObj.get("buffers").isJsonNull() && !jsonObj.get("buffers").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `buffers` to be an array in the JSON string but got `%s`", jsonObj.get("buffers").toString())); } - JsonArray jsonArrayarrays = jsonObj.getAsJsonArray("arrays"); - if (jsonArrayarrays != null) { - // ensure the json data is an array - if (!jsonObj.get("arrays").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `arrays` to be an array in the JSON string but got `%s`", jsonObj.get("arrays").toString())); + if (jsonObj.get("arrays") != null && !jsonObj.get("arrays").isJsonNull()) { + JsonArray jsonArrayarrays = jsonObj.getAsJsonArray("arrays"); + if (jsonArrayarrays != null) { + // ensure the json data is an array + if (!jsonObj.get("arrays").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `arrays` to be an array in the JSON string but got `%s`", jsonObj.get("arrays").toString())); + } + + // validate the optional field `arrays` (array) + for (int i = 0; i < jsonArrayarrays.size(); i++) { + UDFArrayDetails.validateJsonElement(jsonArrayarrays.get(i)); + }; } - - // validate the optional field `arrays` (array) - for (int i = 0; i < jsonArrayarrays.size(); i++) { - UDFArrayDetails.validateJsonObject(jsonArrayarrays.get(i).getAsJsonObject()); - }; } if ((jsonObj.get("task_graph_uuid") != null && !jsonObj.get("task_graph_uuid").isJsonNull()) && !jsonObj.get("task_graph_uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `task_graph_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("task_graph_uuid").toString())); @@ -942,7 +888,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, MultiArrayUDF value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -954,7 +900,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -963,8 +914,9 @@ else if (entry.getValue() instanceof Character) @Override public MultiArrayUDF read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance MultiArrayUDF instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -978,8 +930,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -990,22 +944,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of MultiArrayUDF given an JSON string - * - * @param jsonString JSON string - * @return An instance of MultiArrayUDF - * @throws IOException if the JSON string is invalid with respect to MultiArrayUDF - */ + /** + * Create an instance of MultiArrayUDF given an JSON string + * + * @param jsonString JSON string + * @return An instance of MultiArrayUDF + * @throws IOException if the JSON string is invalid with respect to MultiArrayUDF + */ public static MultiArrayUDF fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, MultiArrayUDF.class); } - /** - * Convert an instance of MultiArrayUDF to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of MultiArrayUDF 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/NamespaceActions.java b/src/main/java/io/tiledb/cloud/rest_api/model/NamespaceActions.java index a83622d..91bc16d 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,8 +13,12 @@ package io.tiledb.cloud.rest_api.model; +import java.util.Objects; +import com.google.gson.annotations.SerializedName; + import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -85,5 +89,10 @@ public NamespaceActions read(final JsonReader jsonReader) throws IOException { return NamespaceActions.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + NamespaceActions.fromValue(value); + } } 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..d99b487 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,32 +14,43 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.DomainArray; import java.io.IOException; +import java.util.Arrays; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class NonEmptyDomain { public static final String SERIALIZED_NAME_NON_EMPTY_DOMAIN = "nonEmptyDomain"; @SerializedName(SERIALIZED_NAME_NON_EMPTY_DOMAIN) @@ -53,46 +64,38 @@ public NonEmptyDomain() { } public NonEmptyDomain nonEmptyDomain(DomainArray nonEmptyDomain) { - this.nonEmptyDomain = nonEmptyDomain; return this; } - /** + /** * Get nonEmptyDomain * @return nonEmptyDomain - **/ + */ @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") - public DomainArray getNonEmptyDomain() { return nonEmptyDomain; } - public void setNonEmptyDomain(DomainArray nonEmptyDomain) { this.nonEmptyDomain = nonEmptyDomain; } public NonEmptyDomain isEmpty(Boolean isEmpty) { - this.isEmpty = isEmpty; return this; } - /** + /** * Is non-empty domain really empty? * @return isEmpty - **/ + */ @javax.annotation.Nonnull - @ApiModelProperty(example = "false", required = true, value = "Is non-empty domain really empty?") - public Boolean getIsEmpty() { return isEmpty; } - public void setIsEmpty(Boolean isEmpty) { this.isEmpty = isEmpty; } @@ -107,6 +110,10 @@ public void setIsEmpty(Boolean isEmpty) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the NonEmptyDomain instance itself */ public NonEmptyDomain putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -118,6 +125,8 @@ public NonEmptyDomain putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -125,6 +134,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -191,31 +203,28 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("isEmpty"); } - /** - * 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 NonEmptyDomain - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (NonEmptyDomain.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to NonEmptyDomain + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!NonEmptyDomain.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in NonEmptyDomain is not found in the empty JSON string", NonEmptyDomain.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : NonEmptyDomain.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 (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } - // validate the optional field `nonEmptyDomain` - if (jsonObj.get("nonEmptyDomain") != null && !jsonObj.get("nonEmptyDomain").isJsonNull()) { - DomainArray.validateJsonObject(jsonObj.getAsJsonObject("nonEmptyDomain")); - } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `nonEmptyDomain` + DomainArray.validateJsonElement(jsonObj.get("nonEmptyDomain")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -234,7 +243,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, NonEmptyDomain value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -246,7 +255,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -255,8 +269,9 @@ else if (entry.getValue() instanceof Character) @Override public NonEmptyDomain read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance NonEmptyDomain instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -270,8 +285,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -282,22 +299,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of NonEmptyDomain given an JSON string - * - * @param jsonString JSON string - * @return An instance of NonEmptyDomain - * @throws IOException if the JSON string is invalid with respect to NonEmptyDomain - */ + /** + * Create an instance of NonEmptyDomain given an JSON string + * + * @param jsonString JSON string + * @return An instance of NonEmptyDomain + * @throws IOException if the JSON string is invalid with respect to NonEmptyDomain + */ public static NonEmptyDomain fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, NonEmptyDomain.class); } - /** - * Convert an instance of NonEmptyDomain to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of NonEmptyDomain 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/NotebookCopied.java b/src/main/java/io/tiledb/cloud/rest_api/model/NotebookCopied.java index dedf556..89e1edc 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,32 +14,42 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.Arrays; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class NotebookCopied { public static final String SERIALIZED_NAME_OUTPUT_URI = "output_uri"; @SerializedName(SERIALIZED_NAME_OUTPUT_URI) @@ -61,92 +71,76 @@ public NotebookCopied() { } public NotebookCopied outputUri(String outputUri) { - this.outputUri = outputUri; return this; } - /** + /** * output location of the TileDB Notebook * @return outputUri - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "output location of the TileDB Notebook") - public String getOutputUri() { return outputUri; } - public void setOutputUri(String outputUri) { this.outputUri = outputUri; } public NotebookCopied name(String name) { - this.name = name; return this; } - /** + /** * name of the notebook created * @return name - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "name of the notebook created") - public String getName() { return name; } - public void setName(String name) { this.name = name; } public NotebookCopied namespace(String namespace) { - this.namespace = namespace; return this; } - /** + /** * namespace copied to * @return namespace - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "namespace copied to") - public String getNamespace() { return namespace; } - public void setNamespace(String namespace) { this.namespace = namespace; } public NotebookCopied id(String id) { - this.id = id; return this; } - /** + /** * unique ID of the copied notebook * @return id - **/ + */ @javax.annotation.Nonnull - @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", required = true, value = "unique ID of the copied notebook") - public String getId() { return id; } - public void setId(String id) { this.id = id; } @@ -161,6 +155,10 @@ public void setId(String id) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the NotebookCopied instance itself */ public NotebookCopied putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -172,6 +170,8 @@ public NotebookCopied putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -179,6 +179,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -250,27 +253,26 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("id"); } - /** - * 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 NotebookCopied - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (NotebookCopied.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to NotebookCopied + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!NotebookCopied.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in NotebookCopied is not found in the empty JSON string", NotebookCopied.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : NotebookCopied.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 (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("output_uri") != null && !jsonObj.get("output_uri").isJsonNull()) && !jsonObj.get("output_uri").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `output_uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("output_uri").toString())); } @@ -280,7 +282,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { 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())); } - if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { + if (!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())); } } @@ -301,7 +303,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, NotebookCopied value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -313,7 +315,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -322,8 +329,9 @@ else if (entry.getValue() instanceof Character) @Override public NotebookCopied read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance NotebookCopied instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -337,8 +345,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -349,22 +359,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of NotebookCopied given an JSON string - * - * @param jsonString JSON string - * @return An instance of NotebookCopied - * @throws IOException if the JSON string is invalid with respect to NotebookCopied - */ + /** + * Create an instance of NotebookCopied given an JSON string + * + * @param jsonString JSON string + * @return An instance of NotebookCopied + * @throws IOException if the JSON string is invalid with respect to NotebookCopied + */ public static NotebookCopied fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, NotebookCopied.class); } - /** - * Convert an instance of NotebookCopied to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of NotebookCopied 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/NotebookCopy.java b/src/main/java/io/tiledb/cloud/rest_api/model/NotebookCopy.java index 069be7f..7eb2f72 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,32 +14,42 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.Arrays; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class NotebookCopy { public static final String SERIALIZED_NAME_OUTPUT_URI = "output_uri"; @SerializedName(SERIALIZED_NAME_OUTPUT_URI) @@ -57,69 +67,57 @@ public NotebookCopy() { } public NotebookCopy outputUri(String outputUri) { - this.outputUri = outputUri; return this; } - /** + /** * output location of the TileDB File * @return outputUri - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "output location of the TileDB File") - public String getOutputUri() { return outputUri; } - public void setOutputUri(String outputUri) { this.outputUri = outputUri; } public NotebookCopy name(String name) { - this.name = name; return this; } - /** + /** * name to set for registered notebook * @return name - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "name to set for registered notebook") - public String getName() { return name; } - public void setName(String name) { this.name = name; } public NotebookCopy namespace(String namespace) { - this.namespace = namespace; return this; } - /** + /** * namespace to copy to * @return namespace - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "namespace to copy to") - public String getNamespace() { return namespace; } - public void setNamespace(String namespace) { this.namespace = namespace; } @@ -134,6 +132,10 @@ public void setNamespace(String namespace) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the NotebookCopy instance itself */ public NotebookCopy putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -145,6 +147,8 @@ public NotebookCopy putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -152,6 +156,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -219,20 +226,19 @@ private String toIndentedString(Object o) { 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 NotebookCopy - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (NotebookCopy.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to NotebookCopy + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!NotebookCopy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in NotebookCopy is not found in the empty JSON string", NotebookCopy.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("output_uri") != null && !jsonObj.get("output_uri").isJsonNull()) && !jsonObj.get("output_uri").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `output_uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("output_uri").toString())); } @@ -260,7 +266,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, NotebookCopy value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -272,7 +278,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -281,8 +292,9 @@ else if (entry.getValue() instanceof Character) @Override public NotebookCopy read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance NotebookCopy instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -296,8 +308,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -308,22 +322,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of NotebookCopy given an JSON string - * - * @param jsonString JSON string - * @return An instance of NotebookCopy - * @throws IOException if the JSON string is invalid with respect to NotebookCopy - */ + /** + * Create an instance of NotebookCopy given an JSON string + * + * @param jsonString JSON string + * @return An instance of NotebookCopy + * @throws IOException if the JSON string is invalid with respect to NotebookCopy + */ public static NotebookCopy fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, NotebookCopy.class); } - /** - * Convert an instance of NotebookCopy to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of NotebookCopy 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/NotebookFavorite.java b/src/main/java/io/tiledb/cloud/rest_api/model/NotebookFavorite.java index 3523de4..6f08563 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,32 +14,42 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.Arrays; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class NotebookFavorite { public static final String SERIALIZED_NAME_NOTEBOOK_UUID = "notebook_uuid"; @SerializedName(SERIALIZED_NAME_NOTEBOOK_UUID) @@ -57,69 +67,57 @@ public NotebookFavorite() { } public NotebookFavorite notebookUuid(String notebookUuid) { - this.notebookUuid = notebookUuid; return this; } - /** + /** * unique UUID of the notebook * @return notebookUuid - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "unique UUID of the notebook") - public String getNotebookUuid() { return notebookUuid; } - public void setNotebookUuid(String notebookUuid) { this.notebookUuid = notebookUuid; } public NotebookFavorite namespace(String namespace) { - this.namespace = namespace; return this; } - /** + /** * the namespace of the notebook * @return namespace - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "the namespace of the notebook") - public String getNamespace() { return namespace; } - public void setNamespace(String namespace) { this.namespace = namespace; } public NotebookFavorite name(String name) { - this.name = name; return this; } - /** + /** * the name of the notebook * @return name - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "the name of the notebook") - public String getName() { return name; } - public void setName(String name) { this.name = name; } @@ -134,6 +132,10 @@ public void setName(String name) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the NotebookFavorite instance itself */ public NotebookFavorite putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -145,6 +147,8 @@ public NotebookFavorite putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -152,6 +156,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -219,20 +226,19 @@ private String toIndentedString(Object o) { 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 NotebookFavorite - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (NotebookFavorite.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to NotebookFavorite + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!NotebookFavorite.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in NotebookFavorite is not found in the empty JSON string", NotebookFavorite.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("notebook_uuid") != null && !jsonObj.get("notebook_uuid").isJsonNull()) && !jsonObj.get("notebook_uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `notebook_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("notebook_uuid").toString())); } @@ -260,7 +266,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, NotebookFavorite value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -272,7 +278,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -281,8 +292,9 @@ else if (entry.getValue() instanceof Character) @Override public NotebookFavorite read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance NotebookFavorite instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -296,8 +308,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -308,22 +322,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of NotebookFavorite given an JSON string - * - * @param jsonString JSON string - * @return An instance of NotebookFavorite - * @throws IOException if the JSON string is invalid with respect to NotebookFavorite - */ + /** + * Create an instance of NotebookFavorite given an JSON string + * + * @param jsonString JSON string + * @return An instance of NotebookFavorite + * @throws IOException if the JSON string is invalid with respect to NotebookFavorite + */ public static NotebookFavorite fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, NotebookFavorite.class); } - /** - * Convert an instance of NotebookFavorite to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of NotebookFavorite 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/NotebookFavoritesData.java b/src/main/java/io/tiledb/cloud/rest_api/model/NotebookFavoritesData.java index e31b860..fe6fba2 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,40 +14,50 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.ArrayInfo; +import io.tiledb.cloud.rest_api.model.PaginationMetadata; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class NotebookFavoritesData { public static final String SERIALIZED_NAME_NOTEBOOKS = "notebooks"; @SerializedName(SERIALIZED_NAME_NOTEBOOKS) - private List notebooks = null; + private List notebooks = new ArrayList<>(); public static final String SERIALIZED_NAME_PAGINATION_METADATA = "pagination_metadata"; @SerializedName(SERIALIZED_NAME_PAGINATION_METADATA) @@ -57,7 +67,6 @@ public NotebookFavoritesData() { } public NotebookFavoritesData notebooks(List notebooks) { - this.notebooks = notebooks; return this; } @@ -70,41 +79,34 @@ public NotebookFavoritesData addNotebooksItem(ArrayInfo notebooksItem) { return this; } - /** + /** * List of notebook infos * @return notebooks - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "List of notebook infos") - public List getNotebooks() { return notebooks; } - public void setNotebooks(List notebooks) { this.notebooks = notebooks; } public NotebookFavoritesData 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; } @@ -119,6 +121,10 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the NotebookFavoritesData instance itself */ public NotebookFavoritesData putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -130,6 +136,8 @@ public NotebookFavoritesData putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -137,6 +145,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -201,35 +212,36 @@ private String toIndentedString(Object o) { 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 NotebookFavoritesData - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (NotebookFavoritesData.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to NotebookFavoritesData + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!NotebookFavoritesData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in NotebookFavoritesData is not found in the empty JSON string", NotebookFavoritesData.openapiRequiredFields.toString())); } } - JsonArray jsonArraynotebooks = jsonObj.getAsJsonArray("notebooks"); - if (jsonArraynotebooks != null) { - // ensure the json data is an array - if (!jsonObj.get("notebooks").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `notebooks` to be an array in the JSON string but got `%s`", jsonObj.get("notebooks").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("notebooks") != null && !jsonObj.get("notebooks").isJsonNull()) { + JsonArray jsonArraynotebooks = jsonObj.getAsJsonArray("notebooks"); + if (jsonArraynotebooks != null) { + // ensure the json data is an array + if (!jsonObj.get("notebooks").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `notebooks` to be an array in the JSON string but got `%s`", jsonObj.get("notebooks").toString())); + } + + // validate the optional field `notebooks` (array) + for (int i = 0; i < jsonArraynotebooks.size(); i++) { + ArrayInfo.validateJsonElement(jsonArraynotebooks.get(i)); + }; } - - // validate the optional field `notebooks` (array) - for (int i = 0; i < jsonArraynotebooks.size(); i++) { - ArrayInfo.validateJsonObject(jsonArraynotebooks.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")); + PaginationMetadata.validateJsonElement(jsonObj.get("pagination_metadata")); } } @@ -249,7 +261,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, NotebookFavoritesData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -261,7 +273,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -270,8 +287,9 @@ else if (entry.getValue() instanceof Character) @Override public NotebookFavoritesData read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance NotebookFavoritesData instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -285,8 +303,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -297,22 +317,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of NotebookFavoritesData given an JSON string - * - * @param jsonString JSON string - * @return An instance of NotebookFavoritesData - * @throws IOException if the JSON string is invalid with respect to NotebookFavoritesData - */ + /** + * Create an instance of NotebookFavoritesData given an JSON string + * + * @param jsonString JSON string + * @return An instance of NotebookFavoritesData + * @throws IOException if the JSON string is invalid with respect to NotebookFavoritesData + */ public static NotebookFavoritesData fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, NotebookFavoritesData.class); } - /** - * Convert an instance of NotebookFavoritesData to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of NotebookFavoritesData 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/NotebookStatus.java b/src/main/java/io/tiledb/cloud/rest_api/model/NotebookStatus.java index 8a9f708..9b2c461 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). @@ -14,33 +14,44 @@ 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.JsonAdapter; 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 io.tiledb.cloud.rest_api.model.PodStatus; import java.io.IOException; - -import io.tiledb.cloud.rest_api.JSON; +import java.util.Arrays; import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; + +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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class NotebookStatus { public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; @SerializedName(SERIALIZED_NAME_NAMESPACE) @@ -86,261 +97,240 @@ 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() { } public NotebookStatus namespace(String namespace) { - this.namespace = namespace; return this; } - /** + /** * namespace of notebook * @return namespace - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "namespace of notebook") - public String getNamespace() { return namespace; } - public void setNamespace(String namespace) { this.namespace = namespace; } public NotebookStatus uptime(Integer uptime) { - this.uptime = uptime; return this; } - /** + /** * duration notebook has been running in seconds * @return uptime - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "120", value = "duration notebook has been running in seconds") - public Integer getUptime() { return uptime; } - public void setUptime(Integer uptime) { this.uptime = uptime; } public NotebookStatus cpuUsage(Integer cpuUsage) { - this.cpuUsage = cpuUsage; return this; } - /** + /** * current cpu usage in millicpu * @return cpuUsage - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "4000", value = "current cpu usage in millicpu") - public Integer getCpuUsage() { return cpuUsage; } - public void setCpuUsage(Integer cpuUsage) { this.cpuUsage = cpuUsage; } public NotebookStatus gpuUsage(Integer gpuUsage) { - this.gpuUsage = gpuUsage; return this; } - /** + /** * gpu usage in milligpu * @return gpuUsage - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "4000", value = "gpu usage in milligpu") - public Integer getGpuUsage() { return gpuUsage; } - public void setGpuUsage(Integer gpuUsage) { this.gpuUsage = gpuUsage; } public NotebookStatus memoryUsage(Integer memoryUsage) { - this.memoryUsage = memoryUsage; return this; } - /** + /** * memory usage in bytes * @return memoryUsage - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "1073741824", value = "memory usage in bytes") - public Integer getMemoryUsage() { return memoryUsage; } - public void setMemoryUsage(Integer memoryUsage) { this.memoryUsage = memoryUsage; } public NotebookStatus gpuLimit(Integer gpuLimit) { - this.gpuLimit = gpuLimit; return this; } - /** + /** * gpu limit in milligpu * @return gpuLimit - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "1073741824", value = "gpu limit in milligpu") - public Integer getGpuLimit() { return gpuLimit; } - public void setGpuLimit(Integer gpuLimit) { this.gpuLimit = gpuLimit; } public NotebookStatus memoryLimit(Integer memoryLimit) { - this.memoryLimit = memoryLimit; return this; } - /** + /** * memory allocated to notebook server in bytes * @return memoryLimit - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "1073741824", value = "memory allocated to notebook server in bytes") - public Integer getMemoryLimit() { return memoryLimit; } - public void setMemoryLimit(Integer memoryLimit) { this.memoryLimit = memoryLimit; } public NotebookStatus storageUsage(Integer storageUsage) { - this.storageUsage = storageUsage; return this; } - /** + /** * storage usage in bytes * @return storageUsage - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "1073741824", value = "storage usage in bytes") - public Integer getStorageUsage() { return storageUsage; } - public void setStorageUsage(Integer storageUsage) { this.storageUsage = storageUsage; } public NotebookStatus storageLimit(Integer storageLimit) { - this.storageLimit = storageLimit; return this; } - /** + /** * storage allocated to notebook server in bytes * @return storageLimit - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "1073741824", value = "storage allocated to notebook server in bytes") - public Integer getStorageLimit() { return storageLimit; } - public void setStorageLimit(Integer storageLimit) { this.storageLimit = storageLimit; } public NotebookStatus cpuCount(Integer cpuCount) { - this.cpuCount = cpuCount; return this; } - /** + /** * millicpu allocated to notebook server * @return cpuCount - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "4000", value = "millicpu allocated to notebook server") - public Integer getCpuCount() { return cpuCount; } - public void setCpuCount(Integer cpuCount) { this.cpuCount = cpuCount; } public NotebookStatus cost(Double cost) { - this.cost = cost; return this; } - /** + /** * cost in USD for the current notebook session * @return cost - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "0.27", value = "cost in USD for the current notebook session") - public Double getCost() { return cost; } - 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 + 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 @@ -351,6 +341,10 @@ public void setCost(Double cost) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the NotebookStatus instance itself */ public NotebookStatus putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -362,6 +356,8 @@ public NotebookStatus putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -369,6 +365,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -397,7 +396,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 +407,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 +432,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,28 +467,32 @@ 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(); } - /** - * 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 NotebookStatus - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (NotebookStatus.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to NotebookStatus + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!NotebookStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in NotebookStatus is not found in the empty JSON string", NotebookStatus.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); } + // validate the optional field `pod_status` + if (jsonObj.get("pod_status") != null && !jsonObj.get("pod_status").isJsonNull()) { + PodStatus.validateJsonElement(jsonObj.get("pod_status")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -506,7 +511,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, NotebookStatus value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -518,7 +523,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -527,8 +537,9 @@ else if (entry.getValue() instanceof Character) @Override public NotebookStatus read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance NotebookStatus instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -542,8 +553,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -554,22 +567,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of NotebookStatus given an JSON string - * - * @param jsonString JSON string - * @return An instance of NotebookStatus - * @throws IOException if the JSON string is invalid with respect to NotebookStatus - */ + /** + * Create an instance of NotebookStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of NotebookStatus + * @throws IOException if the JSON string is invalid with respect to NotebookStatus + */ public static NotebookStatus fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, NotebookStatus.class); } - /** - * Convert an instance of NotebookStatus to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of NotebookStatus 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/Organization.java b/src/main/java/io/tiledb/cloud/rest_api/model/Organization.java index 5837ce6..d5a4402 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). @@ -14,39 +14,51 @@ 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.JsonAdapter; 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 io.tiledb.cloud.rest_api.model.AssetLocations; +import io.tiledb.cloud.rest_api.model.NamespaceActions; +import io.tiledb.cloud.rest_api.model.OrganizationRoles; +import io.tiledb.cloud.rest_api.model.OrganizationUser; import java.io.IOException; import java.math.BigDecimal; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.Arrays; 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.GsonBuilder; import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; + +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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class Organization { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -78,11 +90,11 @@ public class Organization { public static final String SERIALIZED_NAME_USERS = "users"; @SerializedName(SERIALIZED_NAME_USERS) - private List users = null; + private List users = new ArrayList<>(); public static final String SERIALIZED_NAME_ALLOWED_ACTIONS = "allowed_actions"; @SerializedName(SERIALIZED_NAME_ALLOWED_ACTIONS) - private List allowedActions = null; + private List allowedActions = new ArrayList<>(); public static final String SERIALIZED_NAME_NUM_OF_ARRAYS = "num_of_arrays"; @SerializedName(SERIALIZED_NAME_NUM_OF_ARRAYS) @@ -90,7 +102,7 @@ public class Organization { public static final String SERIALIZED_NAME_ENABLED_FEATURES = "enabled_features"; @SerializedName(SERIALIZED_NAME_ENABLED_FEATURES) - private List enabledFeatures = null; + private List enabledFeatures = new ArrayList<>(); public static final String SERIALIZED_NAME_UNPAID_SUBSCRIPTION = "unpaid_subscription"; @SerializedName(SERIALIZED_NAME_UNPAID_SUBSCRIPTION) @@ -112,10 +124,13 @@ 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() { } - public Organization( List enabledFeatures, Boolean unpaidSubscription, @@ -128,168 +143,139 @@ public Organization( } public Organization id(String id) { - this.id = id; return this; } - /** + /** * unique ID of organization * @return id - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", value = "unique ID of organization") - public String getId() { return id; } - public void setId(String id) { this.id = id; } public Organization role(OrganizationRoles role) { - this.role = role; return this; } - /** + /** * Get role * @return role - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public OrganizationRoles getRole() { return role; } - public void setRole(OrganizationRoles role) { this.role = role; } public Organization name(String name) { - this.name = name; return this; } - /** + /** * organization name must be unique * @return name - **/ + */ @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "organization name must be unique") - public String getName() { return name; } - public void setName(String name) { this.name = name; } public Organization createdAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; return this; } - /** + /** * Datetime organization was created in UTC * @return createdAt - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Datetime organization was created in UTC") - public OffsetDateTime getCreatedAt() { return createdAt; } - public void setCreatedAt(OffsetDateTime createdAt) { this.createdAt = createdAt; } public Organization updatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; return this; } - /** + /** * Datetime organization was updated in UTC * @return updatedAt - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Datetime organization was updated in UTC") - public OffsetDateTime getUpdatedAt() { return updatedAt; } - public void setUpdatedAt(OffsetDateTime updatedAt) { this.updatedAt = updatedAt; } public Organization 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 Organization 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 Organization users(List users) { - this.users = users; return this; } @@ -302,25 +288,21 @@ public Organization addUsersItem(OrganizationUser usersItem) { return this; } - /** + /** * Get users * @return users - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public List getUsers() { return users; } - public void setUsers(List users) { this.users = users; } public Organization allowedActions(List allowedActions) { - this.allowedActions = allowedActions; return this; } @@ -333,156 +315,147 @@ public Organization addAllowedActionsItem(NamespaceActions allowedActionsItem) { return this; } - /** + /** * list of actions user is allowed to do on this organization * @return allowedActions - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "list of actions user is allowed to do on this organization") - public List getAllowedActions() { return allowedActions; } - public void setAllowedActions(List allowedActions) { this.allowedActions = allowedActions; } public Organization numOfArrays(BigDecimal numOfArrays) { - this.numOfArrays = numOfArrays; return this; } - /** + /** * number of registered arrays for this organization * @return numOfArrays - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "number of registered arrays for this organization") - public BigDecimal getNumOfArrays() { return numOfArrays; } - public void setNumOfArrays(BigDecimal numOfArrays) { this.numOfArrays = numOfArrays; } - /** + /** * List of extra/optional/beta features to enable for namespace * @return enabledFeatures - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "List of extra/optional/beta features to enable for namespace") - public List getEnabledFeatures() { return enabledFeatures; } - - /** + /** * A notice that the user has an unpaid subscription * @return unpaidSubscription - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "A notice that the user has an unpaid subscription") - public Boolean getUnpaidSubscription() { return unpaidSubscription; } - public Organization 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 Organization 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 Organization 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; } - /** + /** * Denotes that the organization is able to apply pricing to arrays by means of Stripe Connect * @return stripeConnect - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "false", value = "Denotes that the organization is able to apply pricing to arrays by means of Stripe Connect") - public Boolean getStripeConnect() { return stripeConnect; } + 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 + 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 @@ -493,6 +466,10 @@ public Boolean getStripeConnect() { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the Organization instance itself */ public Organization putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -504,6 +481,8 @@ public Organization putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -511,6 +490,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -544,7 +526,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 +537,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 +567,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,37 +607,41 @@ 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(); openapiRequiredFields.add("name"); } - /** - * 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 Organization - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (Organization.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to Organization + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!Organization.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in Organization is not found in the empty JSON string", Organization.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : Organization.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 (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("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()) { + // validate the optional field `role` + if (jsonObj.get("role") != null && !jsonObj.get("role").isJsonNull()) { + OrganizationRoles.validateJsonElement(jsonObj.get("role")); + } + if (!jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if ((jsonObj.get("logo") != null && !jsonObj.get("logo").isJsonNull()) && !jsonObj.get("logo").isJsonPrimitive()) { @@ -662,24 +650,26 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { 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())); } - JsonArray jsonArrayusers = jsonObj.getAsJsonArray("users"); - if (jsonArrayusers != null) { - // ensure the json data is an array - if (!jsonObj.get("users").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `users` to be an array in the JSON string but got `%s`", jsonObj.get("users").toString())); + if (jsonObj.get("users") != null && !jsonObj.get("users").isJsonNull()) { + JsonArray jsonArrayusers = jsonObj.getAsJsonArray("users"); + if (jsonArrayusers != null) { + // ensure the json data is an array + if (!jsonObj.get("users").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `users` to be an array in the JSON string but got `%s`", jsonObj.get("users").toString())); + } + + // validate the optional field `users` (array) + for (int i = 0; i < jsonArrayusers.size(); i++) { + OrganizationUser.validateJsonElement(jsonArrayusers.get(i)); + }; } - - // validate the optional field `users` (array) - for (int i = 0; i < jsonArrayusers.size(); i++) { - OrganizationUser.validateJsonObject(jsonArrayusers.get(i).getAsJsonObject()); - }; } - // ensure the json data is an array - if ((jsonObj.get("allowed_actions") != null && !jsonObj.get("allowed_actions").isJsonNull()) && !jsonObj.get("allowed_actions").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("allowed_actions") != null && !jsonObj.get("allowed_actions").isJsonNull() && !jsonObj.get("allowed_actions").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `allowed_actions` to be an array in the JSON string but got `%s`", jsonObj.get("allowed_actions").toString())); } - // ensure the json data is an array - if ((jsonObj.get("enabled_features") != null && !jsonObj.get("enabled_features").isJsonNull()) && !jsonObj.get("enabled_features").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("enabled_features") != null && !jsonObj.get("enabled_features").isJsonNull() && !jsonObj.get("enabled_features").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `enabled_features` to be an array in the JSON string but got `%s`", jsonObj.get("enabled_features").toString())); } if ((jsonObj.get("default_s3_path") != null && !jsonObj.get("default_s3_path").isJsonNull()) && !jsonObj.get("default_s3_path").isJsonPrimitive()) { @@ -690,7 +680,10 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { } // validate the optional field `asset_locations` if (jsonObj.get("asset_locations") != null && !jsonObj.get("asset_locations").isJsonNull()) { - AssetLocations.validateJsonObject(jsonObj.getAsJsonObject("asset_locations")); + AssetLocations.validateJsonElement(jsonObj.get("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())); } } @@ -710,7 +703,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, Organization value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -722,7 +715,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -731,8 +729,9 @@ else if (entry.getValue() instanceof Character) @Override public Organization read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance Organization instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -746,8 +745,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -758,22 +759,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of Organization given an JSON string - * - * @param jsonString JSON string - * @return An instance of Organization - * @throws IOException if the JSON string is invalid with respect to Organization - */ + /** + * Create an instance of Organization given an JSON string + * + * @param jsonString JSON string + * @return An instance of Organization + * @throws IOException if the JSON string is invalid with respect to Organization + */ public static Organization fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, Organization.class); } - /** - * Convert an instance of Organization to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of Organization 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/OrganizationRoles.java b/src/main/java/io/tiledb/cloud/rest_api/model/OrganizationRoles.java index 167d012..c8af163 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,8 +13,12 @@ package io.tiledb.cloud.rest_api.model; +import java.util.Objects; +import com.google.gson.annotations.SerializedName; + import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -69,5 +73,10 @@ public OrganizationRoles read(final JsonReader jsonReader) throws IOException { return OrganizationRoles.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + OrganizationRoles.fromValue(value); + } } 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..06aea63 --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/OrganizationUpdate.java @@ -0,0 +1,446 @@ +/* + * 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.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.AssetLocations; +import java.io.IOException; +import java.util.Arrays; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.tiledb.cloud.rest_api.JSON; + +/** + * OrganizationUpdate + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +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 + 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 + 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 + 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 + 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 + 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 + 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. + * + * @param key name of the property + * @param value value of the property + * @return the OrganizationUpdate instance itself + */ + 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. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + 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 Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to OrganizationUpdate + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!OrganizationUpdate.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in OrganizationUpdate is not found in the empty JSON string", OrganizationUpdate.openapiRequiredFields.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + 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.validateJsonElement(jsonObj.get("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 additional 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 { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public OrganizationUpdate read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // 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 if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + 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..14b2330 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,34 +14,46 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.NamespaceActions; +import io.tiledb.cloud.rest_api.model.OrganizationRoles; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class OrganizationUser { public static final String SERIALIZED_NAME_USER_ID = "user_id"; @SerializedName(SERIALIZED_NAME_USER_ID) @@ -55,6 +67,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; @@ -65,128 +85,145 @@ public class OrganizationUser { public static final String SERIALIZED_NAME_ALLOWED_ACTIONS = "allowed_actions"; @SerializedName(SERIALIZED_NAME_ALLOWED_ACTIONS) - private List allowedActions = null; + private List allowedActions = new ArrayList<>(); public OrganizationUser() { } public OrganizationUser userId(String userId) { - this.userId = userId; return this; } - /** + /** * unique ID of user * @return userId - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", value = "unique ID of user") - public String getUserId() { return userId; } - public void setUserId(String userId) { this.userId = userId; } public OrganizationUser organizationId(String organizationId) { - this.organizationId = organizationId; return this; } - /** + /** * unique ID of organization * @return organizationId - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", value = "unique ID of organization") - public String getOrganizationId() { return organizationId; } - public void setOrganizationId(String organizationId) { this.organizationId = organizationId; } public OrganizationUser username(String username) { - this.username = username; return this; } - /** + /** * username for user * @return username - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "username", value = "username for user") - public String getUsername() { return username; } - public void setUsername(String username) { this.username = 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 + 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 + public String getUserEmail() { + return userEmail; + } + + public void setUserEmail(String userEmail) { + this.userEmail = userEmail; + } + + public OrganizationUser organizationName(String organizationName) { - this.organizationName = organizationName; return this; } - /** + /** * name of organization * @return organizationName - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "MyOrganization", value = "name of organization") - public String getOrganizationName() { return organizationName; } - public void setOrganizationName(String organizationName) { this.organizationName = organizationName; } public OrganizationUser role(OrganizationRoles role) { - this.role = role; return this; } - /** + /** * Get role * @return role - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public OrganizationRoles getRole() { return role; } - public void setRole(OrganizationRoles role) { this.role = role; } public OrganizationUser allowedActions(List allowedActions) { - this.allowedActions = allowedActions; return this; } @@ -199,18 +236,15 @@ public OrganizationUser addAllowedActionsItem(NamespaceActions allowedActionsIte return this; } - /** + /** * list of actions user is allowed to do on this organization * @return allowedActions - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "list of actions user is allowed to do on this organization") - public List getAllowedActions() { return allowedActions; } - public void setAllowedActions(List allowedActions) { this.allowedActions = allowedActions; } @@ -225,6 +259,10 @@ public void setAllowedActions(List allowedActions) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the OrganizationUser instance itself */ public OrganizationUser putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -236,6 +274,8 @@ public OrganizationUser putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -243,6 +283,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -264,6 +307,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 +317,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 +327,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 +358,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"); @@ -319,20 +368,19 @@ private String toIndentedString(Object o) { 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 OrganizationUser - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (OrganizationUser.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to OrganizationUser + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!OrganizationUser.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in OrganizationUser is not found in the empty JSON string", OrganizationUser.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("user_id") != null && !jsonObj.get("user_id").isJsonNull()) && !jsonObj.get("user_id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `user_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("user_id").toString())); } @@ -342,11 +390,21 @@ 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())); } - // ensure the json data is an array - if ((jsonObj.get("allowed_actions") != null && !jsonObj.get("allowed_actions").isJsonNull()) && !jsonObj.get("allowed_actions").isJsonArray()) { + // validate the optional field `role` + if (jsonObj.get("role") != null && !jsonObj.get("role").isJsonNull()) { + OrganizationRoles.validateJsonElement(jsonObj.get("role")); + } + // ensure the optional json data is an array if present + if (jsonObj.get("allowed_actions") != null && !jsonObj.get("allowed_actions").isJsonNull() && !jsonObj.get("allowed_actions").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `allowed_actions` to be an array in the JSON string but got `%s`", jsonObj.get("allowed_actions").toString())); } } @@ -367,7 +425,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, OrganizationUser value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -379,7 +437,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -388,8 +451,9 @@ else if (entry.getValue() instanceof Character) @Override public OrganizationUser read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance OrganizationUser instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -403,8 +467,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -415,22 +481,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of OrganizationUser given an JSON string - * - * @param jsonString JSON string - * @return An instance of OrganizationUser - * @throws IOException if the JSON string is invalid with respect to OrganizationUser - */ + /** + * Create an instance of OrganizationUser given an JSON string + * + * @param jsonString JSON string + * @return An instance of OrganizationUser + * @throws IOException if the JSON string is invalid with respect to OrganizationUser + */ public static OrganizationUser fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, OrganizationUser.class); } - /** - * Convert an instance of OrganizationUser to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of OrganizationUser 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/PaginationMetadata.java b/src/main/java/io/tiledb/cloud/rest_api/model/PaginationMetadata.java index ac60f87..00d412d 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,31 +14,43 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.math.BigDecimal; +import java.util.Arrays; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class PaginationMetadata { public static final String SERIALIZED_NAME_PAGE = "page"; @SerializedName(SERIALIZED_NAME_PAGE) @@ -60,92 +72,76 @@ public PaginationMetadata() { } public PaginationMetadata page(BigDecimal page) { - this.page = page; return this; } - /** + /** * pagination offset. Use it to skip the first ((page - 1) * per_page) items * @return page - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "1.0", value = "pagination offset. Use it to skip the first ((page - 1) * per_page) items") - public BigDecimal getPage() { return page; } - public void setPage(BigDecimal page) { this.page = page; } public PaginationMetadata perPage(BigDecimal perPage) { - this.perPage = perPage; return this; } - /** + /** * pagination limit (page size) * @return perPage - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "10.0", value = "pagination limit (page size)") - public BigDecimal getPerPage() { return perPage; } - public void setPerPage(BigDecimal perPage) { this.perPage = perPage; } public PaginationMetadata totalPages(BigDecimal totalPages) { - this.totalPages = totalPages; return this; } - /** + /** * number of total pages with current limit * @return totalPages - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "14.0", value = "number of total pages with current limit") - public BigDecimal getTotalPages() { return totalPages; } - public void setTotalPages(BigDecimal totalPages) { this.totalPages = totalPages; } public PaginationMetadata totalItems(BigDecimal totalItems) { - this.totalItems = totalItems; return this; } - /** + /** * number of total available items * @return totalItems - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "138.0", value = "number of total available items") - public BigDecimal getTotalItems() { return totalItems; } - public void setTotalItems(BigDecimal totalItems) { this.totalItems = totalItems; } @@ -160,6 +156,10 @@ public void setTotalItems(BigDecimal totalItems) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the PaginationMetadata instance itself */ public PaginationMetadata putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -171,6 +171,8 @@ public PaginationMetadata putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -178,6 +180,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -248,20 +253,35 @@ private String toIndentedString(Object o) { 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 PaginationMetadata - */ + /** + * 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 PaginationMetadata + */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (PaginationMetadata.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + if (jsonObj == null) { + if (io.tiledb.cloud.rest_api.v2.model.PaginationMetadata.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in PaginationMetadata is not found in the empty JSON string", io.tiledb.cloud.rest_api.v2.model.PaginationMetadata.openapiRequiredFields.toString())); + } + } + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to PaginationMetadata + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!PaginationMetadata.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in PaginationMetadata is not found in the empty JSON string", PaginationMetadata.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -280,7 +300,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, PaginationMetadata value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -292,7 +312,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -301,8 +326,9 @@ else if (entry.getValue() instanceof Character) @Override public PaginationMetadata read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance PaginationMetadata instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -316,8 +342,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -328,22 +356,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of PaginationMetadata given an JSON string - * - * @param jsonString JSON string - * @return An instance of PaginationMetadata - * @throws IOException if the JSON string is invalid with respect to PaginationMetadata - */ + /** + * Create an instance of PaginationMetadata given an JSON string + * + * @param jsonString JSON string + * @return An instance of PaginationMetadata + * @throws IOException if the JSON string is invalid with respect to PaginationMetadata + */ public static PaginationMetadata fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, PaginationMetadata.class); } - /** - * Convert an instance of PaginationMetadata to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of PaginationMetadata 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/PodStatus.java b/src/main/java/io/tiledb/cloud/rest_api/model/PodStatus.java new file mode 100644 index 0000000..66f7c27 --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/PodStatus.java @@ -0,0 +1,80 @@ +/* + * 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.annotations.SerializedName; + +import java.io.IOException; +import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; +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); + } + } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + 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..5f87230 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,32 +14,47 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.PricingAggregateUsage; +import io.tiledb.cloud.rest_api.model.PricingCurrency; +import io.tiledb.cloud.rest_api.model.PricingInterval; +import io.tiledb.cloud.rest_api.model.PricingType; +import io.tiledb.cloud.rest_api.model.PricingUnitLabel; import java.io.IOException; +import java.util.Arrays; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class Pricing { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -97,299 +112,247 @@ public Pricing() { } public Pricing id(String id) { - this.id = id; return this; } - /** + /** * Unique ID of plan as defined by Stripe * @return id - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "planID", value = "Unique ID of plan as defined by Stripe") - public String getId() { return id; } - public void setId(String id) { this.id = id; } public Pricing arrayUuid(String arrayUuid) { - this.arrayUuid = arrayUuid; return this; } - /** + /** * Unique ID of registered array * @return arrayUuid - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", value = "Unique ID of registered array") - public String getArrayUuid() { return arrayUuid; } - public void setArrayUuid(String arrayUuid) { this.arrayUuid = arrayUuid; } public Pricing pricingName(String pricingName) { - this.pricingName = pricingName; return this; } - /** + /** * Name of pricing * @return pricingName - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Name of pricing") - public String getPricingName() { return pricingName; } - public void setPricingName(String pricingName) { this.pricingName = pricingName; } public Pricing pricingType(PricingType pricingType) { - this.pricingType = pricingType; return this; } - /** + /** * Get pricingType * @return pricingType - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public PricingType getPricingType() { return pricingType; } - public void setPricingType(PricingType pricingType) { this.pricingType = pricingType; } public Pricing productName(String productName) { - this.productName = productName; return this; } - /** + /** * Name of product * @return productName - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Name of product") - public String getProductName() { return productName; } - public void setProductName(String productName) { this.productName = productName; } public Pricing productStatementDescriptor(String productStatementDescriptor) { - this.productStatementDescriptor = productStatementDescriptor; return this; } - /** + /** * Extra information about a product which will appear on the credit card statement of the customer * @return productStatementDescriptor - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Extra information about a product which will appear on the credit card statement of the customer") - public String getProductStatementDescriptor() { return productStatementDescriptor; } - public void setProductStatementDescriptor(String productStatementDescriptor) { this.productStatementDescriptor = productStatementDescriptor; } public Pricing productUnitLabel(PricingUnitLabel productUnitLabel) { - this.productUnitLabel = productUnitLabel; return this; } - /** + /** * Get productUnitLabel * @return productUnitLabel - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public PricingUnitLabel getProductUnitLabel() { return productUnitLabel; } - public void setProductUnitLabel(PricingUnitLabel productUnitLabel) { this.productUnitLabel = productUnitLabel; } public Pricing currency(PricingCurrency currency) { - this.currency = currency; return this; } - /** + /** * Get currency * @return currency - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public PricingCurrency getCurrency() { return currency; } - public void setCurrency(PricingCurrency currency) { this.currency = currency; } public Pricing aggregateUsage(PricingAggregateUsage aggregateUsage) { - this.aggregateUsage = aggregateUsage; return this; } - /** + /** * Get aggregateUsage * @return aggregateUsage - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public PricingAggregateUsage getAggregateUsage() { return aggregateUsage; } - public void setAggregateUsage(PricingAggregateUsage aggregateUsage) { this.aggregateUsage = aggregateUsage; } public Pricing interval(PricingInterval interval) { - this.interval = interval; return this; } - /** + /** * Get interval * @return interval - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public PricingInterval getInterval() { return interval; } - public void setInterval(PricingInterval interval) { this.interval = interval; } public Pricing dividedBy(Long dividedBy) { - this.dividedBy = dividedBy; return this; } - /** + /** * Group of n product unit labels * @return dividedBy - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "1048576", value = "Group of n product unit labels") - public Long getDividedBy() { return dividedBy; } - public void setDividedBy(Long dividedBy) { this.dividedBy = dividedBy; } public Pricing charge(Double charge) { - this.charge = charge; return this; } - /** + /** * Price in cents (decimal) per unitlabel * @return charge - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Price in cents (decimal) per unitlabel") - public Double getCharge() { return charge; } - public void setCharge(Double charge) { this.charge = charge; } public Pricing activated(Boolean activated) { - this.activated = activated; return this; } - /** + /** * If pricing is activated * @return activated - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "false", value = "If pricing is activated") - public Boolean getActivated() { return activated; } - public void setActivated(Boolean activated) { this.activated = activated; } @@ -404,6 +367,10 @@ public void setActivated(Boolean activated) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the Pricing instance itself */ public Pricing putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -415,6 +382,8 @@ public Pricing putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -422,6 +391,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -519,20 +491,19 @@ private String toIndentedString(Object o) { 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 Pricing - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (Pricing.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to Pricing + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!Pricing.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in Pricing is not found in the empty JSON string", Pricing.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); } @@ -542,12 +513,32 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if ((jsonObj.get("pricing_name") != null && !jsonObj.get("pricing_name").isJsonNull()) && !jsonObj.get("pricing_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `pricing_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("pricing_name").toString())); } + // validate the optional field `pricing_type` + if (jsonObj.get("pricing_type") != null && !jsonObj.get("pricing_type").isJsonNull()) { + PricingType.validateJsonElement(jsonObj.get("pricing_type")); + } if ((jsonObj.get("product_name") != null && !jsonObj.get("product_name").isJsonNull()) && !jsonObj.get("product_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `product_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("product_name").toString())); } if ((jsonObj.get("product_statement_descriptor") != null && !jsonObj.get("product_statement_descriptor").isJsonNull()) && !jsonObj.get("product_statement_descriptor").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `product_statement_descriptor` to be a primitive type in the JSON string but got `%s`", jsonObj.get("product_statement_descriptor").toString())); } + // validate the optional field `product_unit_label` + if (jsonObj.get("product_unit_label") != null && !jsonObj.get("product_unit_label").isJsonNull()) { + PricingUnitLabel.validateJsonElement(jsonObj.get("product_unit_label")); + } + // validate the optional field `currency` + if (jsonObj.get("currency") != null && !jsonObj.get("currency").isJsonNull()) { + PricingCurrency.validateJsonElement(jsonObj.get("currency")); + } + // validate the optional field `aggregate_usage` + if (jsonObj.get("aggregate_usage") != null && !jsonObj.get("aggregate_usage").isJsonNull()) { + PricingAggregateUsage.validateJsonElement(jsonObj.get("aggregate_usage")); + } + // validate the optional field `interval` + if (jsonObj.get("interval") != null && !jsonObj.get("interval").isJsonNull()) { + PricingInterval.validateJsonElement(jsonObj.get("interval")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -566,7 +557,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, Pricing value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -578,7 +569,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -587,8 +583,9 @@ else if (entry.getValue() instanceof Character) @Override public Pricing read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance Pricing instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -602,8 +599,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -614,22 +613,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of Pricing given an JSON string - * - * @param jsonString JSON string - * @return An instance of Pricing - * @throws IOException if the JSON string is invalid with respect to Pricing - */ + /** + * Create an instance of Pricing given an JSON string + * + * @param jsonString JSON string + * @return An instance of Pricing + * @throws IOException if the JSON string is invalid with respect to Pricing + */ public static Pricing fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, Pricing.class); } - /** - * Convert an instance of Pricing to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of Pricing 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/PricingAggregateUsage.java b/src/main/java/io/tiledb/cloud/rest_api/model/PricingAggregateUsage.java index b80ac94..52676b8 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,8 +13,12 @@ package io.tiledb.cloud.rest_api.model; +import java.util.Objects; +import com.google.gson.annotations.SerializedName; + import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -63,5 +67,10 @@ public PricingAggregateUsage read(final JsonReader jsonReader) throws IOExceptio return PricingAggregateUsage.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + PricingAggregateUsage.fromValue(value); + } } 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..c9dc5d0 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,8 +13,12 @@ package io.tiledb.cloud.rest_api.model; +import java.util.Objects; +import com.google.gson.annotations.SerializedName; + import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -63,5 +67,10 @@ public PricingCurrency read(final JsonReader jsonReader) throws IOException { return PricingCurrency.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + PricingCurrency.fromValue(value); + } } 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..ee267ac 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,8 +13,12 @@ package io.tiledb.cloud.rest_api.model; +import java.util.Objects; +import com.google.gson.annotations.SerializedName; + import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -63,5 +67,10 @@ public PricingInterval read(final JsonReader jsonReader) throws IOException { return PricingInterval.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + PricingInterval.fromValue(value); + } } 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..1606108 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,8 +13,12 @@ package io.tiledb.cloud.rest_api.model; +import java.util.Objects; +import com.google.gson.annotations.SerializedName; + import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -65,5 +69,10 @@ public PricingType read(final JsonReader jsonReader) throws IOException { return PricingType.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + PricingType.fromValue(value); + } } 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..82edb1a 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,8 +13,12 @@ package io.tiledb.cloud.rest_api.model; +import java.util.Objects; +import com.google.gson.annotations.SerializedName; + import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -65,5 +69,10 @@ public PricingUnitLabel read(final JsonReader jsonReader) throws IOException { return PricingUnitLabel.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + PricingUnitLabel.fromValue(value); + } } 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..b7ee8e1 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,8 +13,12 @@ package io.tiledb.cloud.rest_api.model; +import java.util.Objects; +import com.google.gson.annotations.SerializedName; + import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -65,5 +69,10 @@ public PublicShareFilter read(final JsonReader jsonReader) throws IOException { return PublicShareFilter.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + PublicShareFilter.fromValue(value); + } } 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..98c8469 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,34 +14,50 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.AttributeBufferHeader; +import io.tiledb.cloud.rest_api.model.Layout; +import io.tiledb.cloud.rest_api.model.QueryReader; +import io.tiledb.cloud.rest_api.model.Querystatus; +import io.tiledb.cloud.rest_api.model.Querytype; +import io.tiledb.cloud.rest_api.model.Writer; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class Query { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -83,212 +99,179 @@ public Query() { } public Query type(Querytype type) { - this.type = type; return this; } - /** + /** * Get type * @return type - **/ + */ @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") - public Querytype getType() { return type; } - public void setType(Querytype type) { this.type = type; } public Query layout(Layout layout) { - this.layout = layout; return this; } - /** + /** * Get layout * @return layout - **/ + */ @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") - public Layout getLayout() { return layout; } - public void setLayout(Layout layout) { this.layout = layout; } public Query status(Querystatus status) { - this.status = status; return this; } - /** + /** * Get status * @return status - **/ + */ @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") - public Querystatus getStatus() { return status; } - public void setStatus(Querystatus status) { this.status = status; } public Query attributeBufferHeaders(List attributeBufferHeaders) { - this.attributeBufferHeaders = attributeBufferHeaders; return this; } public Query addAttributeBufferHeadersItem(AttributeBufferHeader attributeBufferHeadersItem) { + if (this.attributeBufferHeaders == null) { + this.attributeBufferHeaders = new ArrayList<>(); + } this.attributeBufferHeaders.add(attributeBufferHeadersItem); return this; } - /** + /** * List of attribute buffer headers * @return attributeBufferHeaders - **/ + */ @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "List of attribute buffer headers") - public List getAttributeBufferHeaders() { return attributeBufferHeaders; } - public void setAttributeBufferHeaders(List attributeBufferHeaders) { this.attributeBufferHeaders = attributeBufferHeaders; } public Query writer(Writer writer) { - this.writer = writer; return this; } - /** + /** * Get writer * @return writer - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public Writer getWriter() { return writer; } - public void setWriter(Writer writer) { this.writer = writer; } public Query reader(QueryReader reader) { - this.reader = reader; return this; } - /** + /** * Get reader * @return reader - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public QueryReader getReader() { return reader; } - public void setReader(QueryReader reader) { this.reader = reader; } public Query array(Array array) { - this.array = array; return this; } - /** + /** * Get array * @return array - **/ + */ @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") - public Array getArray() { return array; } - public void setArray(Array array) { this.array = array; } public Query totalFixedLengthBufferBytes(Integer totalFixedLengthBufferBytes) { - this.totalFixedLengthBufferBytes = totalFixedLengthBufferBytes; return this; } - /** + /** * Total number of bytes in fixed size attribute buffers. * @return totalFixedLengthBufferBytes - **/ + */ @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "Total number of bytes in fixed size attribute buffers.") - public Integer getTotalFixedLengthBufferBytes() { return totalFixedLengthBufferBytes; } - public void setTotalFixedLengthBufferBytes(Integer totalFixedLengthBufferBytes) { this.totalFixedLengthBufferBytes = totalFixedLengthBufferBytes; } public Query totalVarLenBufferBytes(Integer totalVarLenBufferBytes) { - this.totalVarLenBufferBytes = totalVarLenBufferBytes; return this; } - /** + /** * Total number of bytes in variable size attribute buffers. * @return totalVarLenBufferBytes - **/ + */ @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "Total number of bytes in variable size attribute buffers.") - public Integer getTotalVarLenBufferBytes() { return totalVarLenBufferBytes; } - public void setTotalVarLenBufferBytes(Integer totalVarLenBufferBytes) { this.totalVarLenBufferBytes = totalVarLenBufferBytes; } @@ -303,6 +286,10 @@ public void setTotalVarLenBufferBytes(Integer totalVarLenBufferBytes) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the Query instance itself */ public Query putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -314,6 +301,8 @@ public Query putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -321,6 +310,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -413,51 +405,52 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("totalVarLenBufferBytes"); } - /** - * 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 Query - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (Query.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to Query + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!Query.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in Query is not found in the empty JSON string", Query.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : Query.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 (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } - JsonArray jsonArrayattributeBufferHeaders = jsonObj.getAsJsonArray("attributeBufferHeaders"); - if (jsonArrayattributeBufferHeaders != null) { - // ensure the json data is an array - if (!jsonObj.get("attributeBufferHeaders").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `attributeBufferHeaders` to be an array in the JSON string but got `%s`", jsonObj.get("attributeBufferHeaders").toString())); - } - - // validate the optional field `attributeBufferHeaders` (array) - for (int i = 0; i < jsonArrayattributeBufferHeaders.size(); i++) { - AttributeBufferHeader.validateJsonObject(jsonArrayattributeBufferHeaders.get(i).getAsJsonObject()); - }; + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the required field `type` + Querytype.validateJsonElement(jsonObj.get("type")); + // validate the required field `layout` + Layout.validateJsonElement(jsonObj.get("layout")); + // validate the required field `status` + Querystatus.validateJsonElement(jsonObj.get("status")); + // ensure the json data is an array + if (!jsonObj.get("attributeBufferHeaders").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `attributeBufferHeaders` to be an array in the JSON string but got `%s`", jsonObj.get("attributeBufferHeaders").toString())); } + + JsonArray jsonArrayattributeBufferHeaders = jsonObj.getAsJsonArray("attributeBufferHeaders"); + // validate the required field `attributeBufferHeaders` (array) + for (int i = 0; i < jsonArrayattributeBufferHeaders.size(); i++) { + AttributeBufferHeader.validateJsonElement(jsonArrayattributeBufferHeaders.get(i)); + }; // validate the optional field `writer` if (jsonObj.get("writer") != null && !jsonObj.get("writer").isJsonNull()) { - Writer.validateJsonObject(jsonObj.getAsJsonObject("writer")); + Writer.validateJsonElement(jsonObj.get("writer")); } // validate the optional field `reader` if (jsonObj.get("reader") != null && !jsonObj.get("reader").isJsonNull()) { - QueryReader.validateJsonObject(jsonObj.getAsJsonObject("reader")); - } - // validate the optional field `array` - if (jsonObj.get("array") != null && !jsonObj.get("array").isJsonNull()) { - Array.validateJsonObject(jsonObj.getAsJsonObject("array")); + QueryReader.validateJsonElement(jsonObj.get("reader")); } + // validate the required field `array` + Array.validateJsonElement(jsonObj.get("array")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -476,7 +469,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, Query value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -488,7 +481,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -497,8 +495,9 @@ else if (entry.getValue() instanceof Character) @Override public Query read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance Query instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -512,8 +511,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -524,22 +525,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of Query given an JSON string - * - * @param jsonString JSON string - * @return An instance of Query - * @throws IOException if the JSON string is invalid with respect to Query - */ + /** + * Create an instance of Query given an JSON string + * + * @param jsonString JSON string + * @return An instance of Query + * @throws IOException if the JSON string is invalid with respect to Query + */ public static Query fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, Query.class); } - /** - * Convert an instance of Query to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of Query 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/QueryJson.java b/src/main/java/io/tiledb/cloud/rest_api/model/QueryJson.java index 824c792..6af759a 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,35 +14,45 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.QueryRanges; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class QueryJson { public static final String SERIALIZED_NAME_QUERY_RANGES = "query_ranges"; @SerializedName(SERIALIZED_NAME_QUERY_RANGES) @@ -50,36 +60,31 @@ public class QueryJson { public static final String SERIALIZED_NAME_FIELDS = "fields"; @SerializedName(SERIALIZED_NAME_FIELDS) - private List fields = null; + private List fields = new ArrayList<>(); public QueryJson() { } public QueryJson queryRanges(QueryRanges queryRanges) { - this.queryRanges = queryRanges; return this; } - /** + /** * Get queryRanges * @return queryRanges - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public QueryRanges getQueryRanges() { return queryRanges; } - public void setQueryRanges(QueryRanges queryRanges) { this.queryRanges = queryRanges; } public QueryJson fields(List fields) { - this.fields = fields; return this; } @@ -92,18 +97,15 @@ public QueryJson addFieldsItem(String fieldsItem) { return this; } - /** + /** * List of fields to return data from, empty means return data for all fields * @return fields - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "List of fields to return data from, empty means return data for all fields") - public List getFields() { return fields; } - public void setFields(List fields) { this.fields = fields; } @@ -118,6 +120,10 @@ public void setFields(List fields) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the QueryJson instance itself */ public QueryJson putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -129,6 +135,8 @@ public QueryJson putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -136,6 +144,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -200,26 +211,25 @@ private String toIndentedString(Object o) { 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 QueryJson - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (QueryJson.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to QueryJson + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!QueryJson.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in QueryJson is not found in the empty JSON string", QueryJson.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `query_ranges` if (jsonObj.get("query_ranges") != null && !jsonObj.get("query_ranges").isJsonNull()) { - QueryRanges.validateJsonObject(jsonObj.getAsJsonObject("query_ranges")); + QueryRanges.validateJsonElement(jsonObj.get("query_ranges")); } - // ensure the json data is an array - if ((jsonObj.get("fields") != null && !jsonObj.get("fields").isJsonNull()) && !jsonObj.get("fields").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("fields") != null && !jsonObj.get("fields").isJsonNull() && !jsonObj.get("fields").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `fields` to be an array in the JSON string but got `%s`", jsonObj.get("fields").toString())); } } @@ -240,7 +250,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, QueryJson value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -252,7 +262,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -261,8 +276,9 @@ else if (entry.getValue() instanceof Character) @Override public QueryJson read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance QueryJson instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -276,8 +292,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -288,22 +306,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of QueryJson given an JSON string - * - * @param jsonString JSON string - * @return An instance of QueryJson - * @throws IOException if the JSON string is invalid with respect to QueryJson - */ + /** + * Create an instance of QueryJson given an JSON string + * + * @param jsonString JSON string + * @return An instance of QueryJson + * @throws IOException if the JSON string is invalid with respect to QueryJson + */ public static QueryJson fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, QueryJson.class); } - /** - * Convert an instance of QueryJson to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of QueryJson 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/QueryRanges.java b/src/main/java/io/tiledb/cloud/rest_api/model/QueryRanges.java index dd96261..db2e909 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,36 +14,46 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.Layout; import java.io.IOException; import java.math.BigDecimal; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class QueryRanges { public static final String SERIALIZED_NAME_LAYOUT = "layout"; @SerializedName(SERIALIZED_NAME_LAYOUT) @@ -51,36 +61,31 @@ public class QueryRanges { public static final String SERIALIZED_NAME_RANGES = "ranges"; @SerializedName(SERIALIZED_NAME_RANGES) - private List> ranges = null; + private List> ranges = new ArrayList<>(); public QueryRanges() { } public QueryRanges layout(Layout layout) { - this.layout = layout; return this; } - /** + /** * Get layout * @return layout - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public Layout getLayout() { return layout; } - public void setLayout(Layout layout) { this.layout = layout; } public QueryRanges ranges(List> ranges) { - this.ranges = ranges; return this; } @@ -93,18 +98,15 @@ public QueryRanges addRangesItem(List rangesItem) { return this; } - /** + /** * List of ranges, * @return ranges - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "List of ranges,") - public List> getRanges() { return ranges; } - public void setRanges(List> ranges) { this.ranges = ranges; } @@ -119,6 +121,10 @@ public void setRanges(List> ranges) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the QueryRanges instance itself */ public QueryRanges putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -130,6 +136,8 @@ public QueryRanges putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -137,6 +145,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -201,22 +212,25 @@ private String toIndentedString(Object o) { 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 QueryRanges - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (QueryRanges.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to QueryRanges + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!QueryRanges.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in QueryRanges is not found in the empty JSON string", QueryRanges.openapiRequiredFields.toString())); } } - // ensure the json data is an array - if ((jsonObj.get("ranges") != null && !jsonObj.get("ranges").isJsonNull()) && !jsonObj.get("ranges").isJsonArray()) { + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `layout` + if (jsonObj.get("layout") != null && !jsonObj.get("layout").isJsonNull()) { + Layout.validateJsonElement(jsonObj.get("layout")); + } + // ensure the optional json data is an array if present + if (jsonObj.get("ranges") != null && !jsonObj.get("ranges").isJsonNull() && !jsonObj.get("ranges").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `ranges` to be an array in the JSON string but got `%s`", jsonObj.get("ranges").toString())); } } @@ -237,7 +251,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, QueryRanges value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -249,7 +263,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -258,8 +277,9 @@ else if (entry.getValue() instanceof Character) @Override public QueryRanges read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance QueryRanges instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -273,8 +293,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -285,22 +307,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of QueryRanges given an JSON string - * - * @param jsonString JSON string - * @return An instance of QueryRanges - * @throws IOException if the JSON string is invalid with respect to QueryRanges - */ + /** + * Create an instance of QueryRanges given an JSON string + * + * @param jsonString JSON string + * @return An instance of QueryRanges + * @throws IOException if the JSON string is invalid with respect to QueryRanges + */ public static QueryRanges fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, QueryRanges.class); } - /** - * Convert an instance of QueryRanges to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of QueryRanges 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/QueryReader.java b/src/main/java/io/tiledb/cloud/rest_api/model/QueryReader.java index 932117c..52a4d8a 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,33 +14,45 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.Layout; +import io.tiledb.cloud.rest_api.model.ReadState; +import io.tiledb.cloud.rest_api.model.Subarray; import java.io.IOException; +import java.util.Arrays; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class QueryReader { public static final String SERIALIZED_NAME_LAYOUT = "layout"; @SerializedName(SERIALIZED_NAME_LAYOUT) @@ -70,138 +82,114 @@ public QueryReader() { } public QueryReader layout(Layout layout) { - this.layout = layout; return this; } - /** + /** * Get layout * @return layout - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public Layout getLayout() { return layout; } - public void setLayout(Layout layout) { this.layout = layout; } public QueryReader subarray(Subarray subarray) { - this.subarray = subarray; return this; } - /** + /** * Get subarray * @return subarray - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public Subarray getSubarray() { return subarray; } - public void setSubarray(Subarray subarray) { this.subarray = subarray; } public QueryReader readState(ReadState readState) { - this.readState = readState; return this; } - /** + /** * Get readState * @return readState - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public ReadState getReadState() { return readState; } - public void setReadState(ReadState readState) { this.readState = readState; } public QueryReader varOffsetsMode(String varOffsetsMode) { - this.varOffsetsMode = varOffsetsMode; return this; } - /** + /** * The offsets format (bytes or elements) to be used. * @return varOffsetsMode - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The offsets format (bytes or elements) to be used.") - public String getVarOffsetsMode() { return varOffsetsMode; } - public void setVarOffsetsMode(String varOffsetsMode) { this.varOffsetsMode = varOffsetsMode; } public QueryReader varOffsetsAddExtraElement(Boolean varOffsetsAddExtraElement) { - this.varOffsetsAddExtraElement = varOffsetsAddExtraElement; return this; } - /** + /** * True if an extra element will be added to the end of the offsets buffer. * @return varOffsetsAddExtraElement - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "True if an extra element will be added to the end of the offsets buffer.") - public Boolean getVarOffsetsAddExtraElement() { return varOffsetsAddExtraElement; } - public void setVarOffsetsAddExtraElement(Boolean varOffsetsAddExtraElement) { this.varOffsetsAddExtraElement = varOffsetsAddExtraElement; } public QueryReader varOffsetsBitsize(Integer varOffsetsBitsize) { - this.varOffsetsBitsize = varOffsetsBitsize; return this; } - /** + /** * The offsets bitsize (32 or 64) to be used. * @return varOffsetsBitsize - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The offsets bitsize (32 or 64) to be used.") - public Integer getVarOffsetsBitsize() { return varOffsetsBitsize; } - public void setVarOffsetsBitsize(Integer varOffsetsBitsize) { this.varOffsetsBitsize = varOffsetsBitsize; } @@ -216,6 +204,10 @@ public void setVarOffsetsBitsize(Integer varOffsetsBitsize) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the QueryReader instance itself */ public QueryReader putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -227,6 +219,8 @@ public QueryReader putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -234,6 +228,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -310,27 +307,30 @@ private String toIndentedString(Object o) { 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 QueryReader - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (QueryReader.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to QueryReader + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!QueryReader.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in QueryReader is not found in the empty JSON string", QueryReader.openapiRequiredFields.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `layout` + if (jsonObj.get("layout") != null && !jsonObj.get("layout").isJsonNull()) { + Layout.validateJsonElement(jsonObj.get("layout")); } // validate the optional field `subarray` if (jsonObj.get("subarray") != null && !jsonObj.get("subarray").isJsonNull()) { - Subarray.validateJsonObject(jsonObj.getAsJsonObject("subarray")); + Subarray.validateJsonElement(jsonObj.get("subarray")); } // validate the optional field `readState` if (jsonObj.get("readState") != null && !jsonObj.get("readState").isJsonNull()) { - ReadState.validateJsonObject(jsonObj.getAsJsonObject("readState")); + ReadState.validateJsonElement(jsonObj.get("readState")); } if ((jsonObj.get("varOffsetsMode") != null && !jsonObj.get("varOffsetsMode").isJsonNull()) && !jsonObj.get("varOffsetsMode").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `varOffsetsMode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("varOffsetsMode").toString())); @@ -353,7 +353,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, QueryReader value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -365,7 +365,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -374,8 +379,9 @@ else if (entry.getValue() instanceof Character) @Override public QueryReader read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance QueryReader instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -389,8 +395,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -401,22 +409,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of QueryReader given an JSON string - * - * @param jsonString JSON string - * @return An instance of QueryReader - * @throws IOException if the JSON string is invalid with respect to QueryReader - */ + /** + * Create an instance of QueryReader given an JSON string + * + * @param jsonString JSON string + * @return An instance of QueryReader + * @throws IOException if the JSON string is invalid with respect to QueryReader + */ public static QueryReader fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, QueryReader.class); } - /** - * Convert an instance of QueryReader to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of QueryReader 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/Querystatus.java b/src/main/java/io/tiledb/cloud/rest_api/model/Querystatus.java index 081a679..8a07512 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,8 +13,12 @@ package io.tiledb.cloud.rest_api.model; +import java.util.Objects; +import com.google.gson.annotations.SerializedName; + import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -71,5 +75,10 @@ public Querystatus read(final JsonReader jsonReader) throws IOException { return Querystatus.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + Querystatus.fromValue(value); + } } 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..4ad6cc2 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,8 +13,12 @@ package io.tiledb.cloud.rest_api.model; +import java.util.Objects; +import com.google.gson.annotations.SerializedName; + import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -67,5 +71,10 @@ public Querytype read(final JsonReader jsonReader) throws IOException { return Querytype.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + Querytype.fromValue(value); + } } 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..8c5bd25 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,33 +14,43 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.SubarrayPartitioner; import java.io.IOException; +import java.util.Arrays; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class ReadState { public static final String SERIALIZED_NAME_INITIALIZED = "initialized"; @SerializedName(SERIALIZED_NAME_INITIALIZED) @@ -62,92 +72,76 @@ public ReadState() { } public ReadState initialized(Boolean initialized) { - this.initialized = initialized; return this; } - /** + /** * True if the reader has been initialized. * @return initialized - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "True if the reader has been initialized.") - public Boolean getInitialized() { return initialized; } - public void setInitialized(Boolean initialized) { this.initialized = initialized; } public ReadState overflowed(Boolean overflowed) { - this.overflowed = overflowed; return this; } - /** + /** * True if the query produced results that could not fit in some buffer. * @return overflowed - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "True if the query produced results that could not fit in some buffer.") - public Boolean getOverflowed() { return overflowed; } - public void setOverflowed(Boolean overflowed) { this.overflowed = overflowed; } public ReadState unsplittable(Boolean unsplittable) { - this.unsplittable = unsplittable; return this; } - /** + /** * True if the current subarray partition is unsplittable. * @return unsplittable - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "True if the current subarray partition is unsplittable.") - public Boolean getUnsplittable() { return unsplittable; } - public void setUnsplittable(Boolean unsplittable) { this.unsplittable = unsplittable; } public ReadState subarrayPartitioner(SubarrayPartitioner subarrayPartitioner) { - this.subarrayPartitioner = subarrayPartitioner; return this; } - /** + /** * Get subarrayPartitioner * @return subarrayPartitioner - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public SubarrayPartitioner getSubarrayPartitioner() { return subarrayPartitioner; } - public void setSubarrayPartitioner(SubarrayPartitioner subarrayPartitioner) { this.subarrayPartitioner = subarrayPartitioner; } @@ -162,6 +156,10 @@ public void setSubarrayPartitioner(SubarrayPartitioner subarrayPartitioner) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the ReadState instance itself */ public ReadState putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -173,6 +171,8 @@ public ReadState putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -180,6 +180,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -250,23 +253,22 @@ private String toIndentedString(Object o) { 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 ReadState - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (ReadState.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ReadState + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!ReadState.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in ReadState is not found in the empty JSON string", ReadState.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `subarrayPartitioner` if (jsonObj.get("subarrayPartitioner") != null && !jsonObj.get("subarrayPartitioner").isJsonNull()) { - SubarrayPartitioner.validateJsonObject(jsonObj.getAsJsonObject("subarrayPartitioner")); + SubarrayPartitioner.validateJsonElement(jsonObj.get("subarrayPartitioner")); } } @@ -286,7 +288,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, ReadState value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -298,7 +300,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -307,8 +314,9 @@ else if (entry.getValue() instanceof Character) @Override public ReadState read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance ReadState instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -322,8 +330,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -334,22 +344,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ReadState given an JSON string - * - * @param jsonString JSON string - * @return An instance of ReadState - * @throws IOException if the JSON string is invalid with respect to ReadState - */ + /** + * Create an instance of ReadState given an JSON string + * + * @param jsonString JSON string + * @return An instance of ReadState + * @throws IOException if the JSON string is invalid with respect to ReadState + */ public static ReadState fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ReadState.class); } - /** - * Convert an instance of ReadState to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ReadState 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/RegisteredTaskGraph.java b/src/main/java/io/tiledb/cloud/rest_api/model/RegisteredTaskGraph.java index 8a9dc4b..87dc568 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). @@ -14,37 +14,46 @@ 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.JsonAdapter; 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 io.tiledb.cloud.rest_api.model.TaskGraphNode; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; 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.GsonBuilder; import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; + +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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class RegisteredTaskGraph { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) @@ -72,155 +81,130 @@ public class RegisteredTaskGraph { public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) - private List tags = null; + private List tags = new ArrayList<>(); public static final String SERIALIZED_NAME_NODES = "nodes"; @SerializedName(SERIALIZED_NAME_NODES) - private List nodes = null; + private List nodes = new ArrayList<>(); public RegisteredTaskGraph() { } public RegisteredTaskGraph uuid(String uuid) { - this.uuid = uuid; return this; } - /** + /** * A server-assigned unique ID for the UDF, in UUID format. * @return uuid - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "A server-assigned unique ID for the UDF, in UUID format.") - public String getUuid() { return uuid; } - public void setUuid(String uuid) { this.uuid = uuid; } public RegisteredTaskGraph namespace(String namespace) { - this.namespace = namespace; return this; } - /** + /** * The namespace that owns this task graph log. * @return namespace - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The namespace that owns this task graph log.") - public String getNamespace() { return namespace; } - public void setNamespace(String namespace) { this.namespace = namespace; } public RegisteredTaskGraph name(String name) { - this.name = name; return this; } - /** + /** * The name of this graph, to appear in URLs. Must be unique per-namespace. * @return name - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The name of this graph, to appear in URLs. Must be unique per-namespace. ") - public String getName() { return name; } - public void setName(String name) { this.name = name; } public RegisteredTaskGraph readme(String readme) { - this.readme = readme; return this; } - /** + /** * Documentation for the task graph, in Markdown format. * @return readme - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Documentation for the task graph, in Markdown format.") - public String getReadme() { return readme; } - public void setReadme(String readme) { this.readme = readme; } public RegisteredTaskGraph licenseId(String licenseId) { - this.licenseId = licenseId; return this; } - /** + /** * SPDX license identifier. * @return licenseId - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "SPDX license identifier.") - public String getLicenseId() { return licenseId; } - public void setLicenseId(String licenseId) { this.licenseId = licenseId; } public RegisteredTaskGraph licenseText(String licenseText) { - this.licenseText = licenseText; return this; } - /** + /** * Full text of the license. * @return licenseText - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Full text of the license.") - public String getLicenseText() { return licenseText; } - public void setLicenseText(String licenseText) { this.licenseText = licenseText; } public RegisteredTaskGraph tags(List tags) { - this.tags = tags; return this; } @@ -233,25 +217,21 @@ public RegisteredTaskGraph addTagsItem(String tagsItem) { return this; } - /** + /** * Optional tags to classify the graph. * @return tags - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Optional tags to classify the graph.") - public List getTags() { return tags; } - public void setTags(List tags) { this.tags = tags; } public RegisteredTaskGraph nodes(List nodes) { - this.nodes = nodes; return this; } @@ -264,18 +244,15 @@ public RegisteredTaskGraph addNodesItem(TaskGraphNode nodesItem) { return this; } - /** + /** * The structure of the graph, in the form of the nodes that make it up. As with `TaskGraphLog`, nodes must topologically sorted, so that any node appears after all the nodes it depends on. * @return nodes - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The structure of the graph, in the form of the nodes that make it up. As with `TaskGraphLog`, nodes must topologically sorted, so that any node appears after all the nodes it depends on. ") - public List getNodes() { return nodes; } - public void setNodes(List nodes) { this.nodes = nodes; } @@ -290,6 +267,10 @@ public void setNodes(List nodes) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the RegisteredTaskGraph instance itself */ public RegisteredTaskGraph putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -301,6 +282,8 @@ public RegisteredTaskGraph putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -308,6 +291,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -401,20 +387,19 @@ private String toIndentedString(Object o) { 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 RegisteredTaskGraph - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (RegisteredTaskGraph.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to RegisteredTaskGraph + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!RegisteredTaskGraph.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in RegisteredTaskGraph is not found in the empty JSON string", RegisteredTaskGraph.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); } @@ -433,21 +418,23 @@ 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())); } - // ensure the json data is an array - if ((jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) && !jsonObj.get("tags").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull() && !jsonObj.get("tags").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); } - JsonArray jsonArraynodes = jsonObj.getAsJsonArray("nodes"); - if (jsonArraynodes != null) { - // ensure the json data is an array - if (!jsonObj.get("nodes").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `nodes` to be an array in the JSON string but got `%s`", jsonObj.get("nodes").toString())); + if (jsonObj.get("nodes") != null && !jsonObj.get("nodes").isJsonNull()) { + JsonArray jsonArraynodes = jsonObj.getAsJsonArray("nodes"); + if (jsonArraynodes != null) { + // ensure the json data is an array + if (!jsonObj.get("nodes").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `nodes` to be an array in the JSON string but got `%s`", jsonObj.get("nodes").toString())); + } + + // validate the optional field `nodes` (array) + for (int i = 0; i < jsonArraynodes.size(); i++) { + TaskGraphNode.validateJsonElement(jsonArraynodes.get(i)); + }; } - - // validate the optional field `nodes` (array) - for (int i = 0; i < jsonArraynodes.size(); i++) { - TaskGraphNode.validateJsonObject(jsonArraynodes.get(i).getAsJsonObject()); - }; } } @@ -467,7 +454,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, RegisteredTaskGraph value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -479,7 +466,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -488,8 +480,9 @@ else if (entry.getValue() instanceof Character) @Override public RegisteredTaskGraph read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance RegisteredTaskGraph instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -503,8 +496,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -515,22 +510,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of RegisteredTaskGraph given an JSON string - * - * @param jsonString JSON string - * @return An instance of RegisteredTaskGraph - * @throws IOException if the JSON string is invalid with respect to RegisteredTaskGraph - */ + /** + * Create an instance of RegisteredTaskGraph given an JSON string + * + * @param jsonString JSON string + * @return An instance of RegisteredTaskGraph + * @throws IOException if the JSON string is invalid with respect to RegisteredTaskGraph + */ public static RegisteredTaskGraph fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, RegisteredTaskGraph.class); } - /** - * Convert an instance of RegisteredTaskGraph to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of RegisteredTaskGraph 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/ResetUserPasswordRequest.java b/src/main/java/io/tiledb/cloud/rest_api/model/ResetUserPasswordRequest.java index 9fd739e..c0f1c46 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,33 +14,42 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.Arrays; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class ResetUserPasswordRequest { public static final String SERIALIZED_NAME_PASSWORD = "password"; @SerializedName(SERIALIZED_NAME_PASSWORD) @@ -50,23 +59,19 @@ public ResetUserPasswordRequest() { } public ResetUserPasswordRequest password(String password) { - this.password = password; return this; } - /** + /** * password * @return password - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "password", value = "password") - public String getPassword() { return password; } - public void setPassword(String password) { this.password = password; } @@ -81,6 +86,10 @@ public void setPassword(String password) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the ResetUserPasswordRequest instance itself */ public ResetUserPasswordRequest putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -92,6 +101,8 @@ public ResetUserPasswordRequest putAdditionalProperty(String key, Object value) /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -99,6 +110,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -160,20 +174,19 @@ private String toIndentedString(Object o) { 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 ResetUserPasswordRequest - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (ResetUserPasswordRequest.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ResetUserPasswordRequest + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!ResetUserPasswordRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in ResetUserPasswordRequest is not found in the empty JSON string", ResetUserPasswordRequest.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("password") != null && !jsonObj.get("password").isJsonNull()) && !jsonObj.get("password").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `password` to be a primitive type in the JSON string but got `%s`", jsonObj.get("password").toString())); } @@ -195,7 +208,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, ResetUserPasswordRequest value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -207,7 +220,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -216,8 +234,9 @@ else if (entry.getValue() instanceof Character) @Override public ResetUserPasswordRequest read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance ResetUserPasswordRequest instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -231,8 +250,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -243,22 +264,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ResetUserPasswordRequest given an JSON string - * - * @param jsonString JSON string - * @return An instance of ResetUserPasswordRequest - * @throws IOException if the JSON string is invalid with respect to ResetUserPasswordRequest - */ + /** + * Create an instance of ResetUserPasswordRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of ResetUserPasswordRequest + * @throws IOException if the JSON string is invalid with respect to ResetUserPasswordRequest + */ public static ResetUserPasswordRequest fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ResetUserPasswordRequest.class); } - /** - * Convert an instance of ResetUserPasswordRequest to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ResetUserPasswordRequest 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/ResultFormat.java b/src/main/java/io/tiledb/cloud/rest_api/model/ResultFormat.java index 3855536..fafbf1e 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,8 +13,12 @@ package io.tiledb.cloud.rest_api.model; +import java.util.Objects; +import com.google.gson.annotations.SerializedName; + import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -75,5 +79,10 @@ public ResultFormat read(final JsonReader jsonReader) throws IOException { return ResultFormat.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + ResultFormat.fromValue(value); + } } 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..49c833f 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,8 +13,12 @@ package io.tiledb.cloud.rest_api.model; +import java.util.Objects; +import com.google.gson.annotations.SerializedName; + import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -27,11 +31,11 @@ public enum RetryPolicy { ALWAYS("Always"), - ONFAILURE("OnFailure"), + ON_FAILURE("OnFailure"), - ONERROR("OnError"), + ON_ERROR("OnError"), - ONTRANSIENTERROR("OnTransientError"); + ON_TRANSIENT_ERROR("OnTransientError"); private String value; @@ -69,5 +73,10 @@ public RetryPolicy read(final JsonReader jsonReader) throws IOException { return RetryPolicy.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + RetryPolicy.fromValue(value); + } } 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..1d8acba 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,32 +14,44 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.Backoff; +import io.tiledb.cloud.rest_api.model.RetryPolicy; import java.io.IOException; +import java.util.Arrays; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class RetryStrategy { public static final String SERIALIZED_NAME_BACKOFF = "backoff"; @SerializedName(SERIALIZED_NAME_BACKOFF) @@ -61,92 +73,76 @@ public RetryStrategy() { } public RetryStrategy backoff(Backoff backoff) { - this.backoff = backoff; return this; } - /** + /** * Get backoff * @return backoff - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public Backoff getBackoff() { return backoff; } - public void setBackoff(Backoff backoff) { this.backoff = backoff; } public RetryStrategy expression(String expression) { - this.expression = expression; return this; } - /** + /** * Expression is a condition expression for when a node will be retried. If it evaluates to false, the node will not be retried and the retry strategy will be ignored * @return expression - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Expression is a condition expression for when a node will be retried. If it evaluates to false, the node will not be retried and the retry strategy will be ignored") - public String getExpression() { return expression; } - public void setExpression(String expression) { this.expression = expression; } public RetryStrategy limit(Integer limit) { - this.limit = limit; return this; } - /** + /** * Limit is the maximum number of retry attempts when retrying a container. It does not include the original container; the maximum number of total attempts will be `limit + 1`. * @return limit - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Limit is the maximum number of retry attempts when retrying a container. It does not include the original container; the maximum number of total attempts will be `limit + 1`.") - public Integer getLimit() { return limit; } - public void setLimit(Integer limit) { this.limit = limit; } public RetryStrategy retryPolicy(RetryPolicy retryPolicy) { - this.retryPolicy = retryPolicy; return this; } - /** + /** * Get retryPolicy * @return retryPolicy - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public RetryPolicy getRetryPolicy() { return retryPolicy; } - public void setRetryPolicy(RetryPolicy retryPolicy) { this.retryPolicy = retryPolicy; } @@ -161,6 +157,10 @@ public void setRetryPolicy(RetryPolicy retryPolicy) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the RetryStrategy instance itself */ public RetryStrategy putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -172,6 +172,8 @@ public RetryStrategy putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -179,6 +181,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -249,27 +254,30 @@ private String toIndentedString(Object o) { 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 RetryStrategy - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (RetryStrategy.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to RetryStrategy + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!RetryStrategy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in RetryStrategy is not found in the empty JSON string", RetryStrategy.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `backoff` if (jsonObj.get("backoff") != null && !jsonObj.get("backoff").isJsonNull()) { - Backoff.validateJsonObject(jsonObj.getAsJsonObject("backoff")); + Backoff.validateJsonElement(jsonObj.get("backoff")); } if ((jsonObj.get("expression") != null && !jsonObj.get("expression").isJsonNull()) && !jsonObj.get("expression").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `expression` to be a primitive type in the JSON string but got `%s`", jsonObj.get("expression").toString())); } + // validate the optional field `retryPolicy` + if (jsonObj.get("retryPolicy") != null && !jsonObj.get("retryPolicy").isJsonNull()) { + RetryPolicy.validateJsonElement(jsonObj.get("retryPolicy")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -288,7 +296,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, RetryStrategy value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -300,7 +308,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -309,8 +322,9 @@ else if (entry.getValue() instanceof Character) @Override public RetryStrategy read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance RetryStrategy instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -324,8 +338,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -336,22 +352,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of RetryStrategy given an JSON string - * - * @param jsonString JSON string - * @return An instance of RetryStrategy - * @throws IOException if the JSON string is invalid with respect to RetryStrategy - */ + /** + * Create an instance of RetryStrategy given an JSON string + * + * @param jsonString JSON string + * @return An instance of RetryStrategy + * @throws IOException if the JSON string is invalid with respect to RetryStrategy + */ public static RetryStrategy fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, RetryStrategy.class); } - /** - * Convert an instance of RetryStrategy to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of RetryStrategy 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/SQLParameters.java b/src/main/java/io/tiledb/cloud/rest_api/model/SQLParameters.java index 75ae1e7..4c63642 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,35 +14,45 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.ResultFormat; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class SQLParameters { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -74,11 +84,11 @@ public class SQLParameters { public static final String SERIALIZED_NAME_INIT_COMMANDS = "init_commands"; @SerializedName(SERIALIZED_NAME_INIT_COMMANDS) - private List initCommands = null; + private List initCommands = new ArrayList<>(); public static final String SERIALIZED_NAME_PARAMETERS = "parameters"; @SerializedName(SERIALIZED_NAME_PARAMETERS) - private List parameters = null; + private List parameters = new ArrayList<>(); public static final String SERIALIZED_NAME_TASK_GRAPH_UUID = "task_graph_uuid"; @SerializedName(SERIALIZED_NAME_TASK_GRAPH_UUID) @@ -92,168 +102,139 @@ public SQLParameters() { } public SQLParameters name(String name) { - this.name = name; return this; } - /** + /** * name of task, optional * @return name - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "name of task, optional") - public String getName() { return name; } - public void setName(String name) { this.name = name; } public SQLParameters query(String query) { - this.query = query; return this; } - /** + /** * query to run * @return query - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "query to run") - public String getQuery() { return query; } - public void setQuery(String query) { this.query = query; } public SQLParameters outputUri(String outputUri) { - this.outputUri = outputUri; return this; } - /** + /** * Output array uri * @return outputUri - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "s3://my_bucket/my_output_array", value = "Output array uri") - public String getOutputUri() { return outputUri; } - public void setOutputUri(String outputUri) { this.outputUri = outputUri; } public SQLParameters storeResults(Boolean storeResults) { - this.storeResults = storeResults; return this; } - /** + /** * store results for later retrieval * @return storeResults - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "store results for later retrieval") - public Boolean getStoreResults() { return storeResults; } - public void setStoreResults(Boolean storeResults) { this.storeResults = storeResults; } public SQLParameters dontDownloadResults(Boolean dontDownloadResults) { - this.dontDownloadResults = dontDownloadResults; return this; } - /** + /** * Set to true to avoid downloading the results of this UDF. Useful for intermediate nodes in a task graph where you will not be using the results of your function. Defaults to false (\"yes download results\"). * @return dontDownloadResults - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Set to true to avoid downloading the results of this UDF. Useful for intermediate nodes in a task graph where you will not be using the results of your function. Defaults to false (\"yes download results\").") - public Boolean getDontDownloadResults() { return dontDownloadResults; } - public void setDontDownloadResults(Boolean dontDownloadResults) { this.dontDownloadResults = dontDownloadResults; } public SQLParameters resourceClass(String resourceClass) { - this.resourceClass = resourceClass; return this; } - /** + /** * The resource class to use for the SQL execution. Resource classes define resource limits for memory and CPUs. If this is empty, then the SQL will execute in the standard resource class of the TileDB Cloud provider. * @return resourceClass - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "standard", value = "The resource class to use for the SQL execution. Resource classes define resource limits for memory and CPUs. If this is empty, then the SQL will execute in the standard resource class of the TileDB Cloud provider. ") - public String getResourceClass() { return resourceClass; } - public void setResourceClass(String resourceClass) { this.resourceClass = resourceClass; } public SQLParameters resultFormat(ResultFormat resultFormat) { - this.resultFormat = resultFormat; return this; } - /** + /** * Get resultFormat * @return resultFormat - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public ResultFormat getResultFormat() { return resultFormat; } - public void setResultFormat(ResultFormat resultFormat) { this.resultFormat = resultFormat; } public SQLParameters initCommands(List initCommands) { - this.initCommands = initCommands; return this; } @@ -266,25 +247,21 @@ public SQLParameters addInitCommandsItem(String initCommandsItem) { return this; } - /** + /** * Queries or commands to run before main query * @return initCommands - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Queries or commands to run before main query") - public List getInitCommands() { return initCommands; } - public void setInitCommands(List initCommands) { this.initCommands = initCommands; } public SQLParameters parameters(List parameters) { - this.parameters = parameters; return this; } @@ -297,64 +274,53 @@ public SQLParameters addParametersItem(Object parametersItem) { return this; } - /** + /** * SQL query parameters * @return parameters - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "SQL query parameters") - public List getParameters() { return parameters; } - public void setParameters(List parameters) { this.parameters = parameters; } public SQLParameters taskGraphUuid(String taskGraphUuid) { - this.taskGraphUuid = taskGraphUuid; return this; } - /** + /** * If set, the ID of the log for the task graph that this was part of. * @return taskGraphUuid - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "If set, the ID of the log for the task graph that this was part of. ") - public String getTaskGraphUuid() { return taskGraphUuid; } - public void setTaskGraphUuid(String taskGraphUuid) { this.taskGraphUuid = taskGraphUuid; } public SQLParameters clientNodeUuid(String clientNodeUuid) { - this.clientNodeUuid = clientNodeUuid; return this; } - /** + /** * If set, the client-defined ID of the node within this task's graph. * @return clientNodeUuid - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "If set, the client-defined ID of the node within this task's graph. ") - public String getClientNodeUuid() { return clientNodeUuid; } - public void setClientNodeUuid(String clientNodeUuid) { this.clientNodeUuid = clientNodeUuid; } @@ -369,6 +335,10 @@ public void setClientNodeUuid(String clientNodeUuid) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the SQLParameters instance itself */ public SQLParameters putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -380,6 +350,8 @@ public SQLParameters putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -387,6 +359,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -478,20 +453,19 @@ private String toIndentedString(Object o) { 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 SQLParameters - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (SQLParameters.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to SQLParameters + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!SQLParameters.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in SQLParameters is not found in the empty JSON string", SQLParameters.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); } @@ -504,12 +478,16 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if ((jsonObj.get("resource_class") != null && !jsonObj.get("resource_class").isJsonNull()) && !jsonObj.get("resource_class").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `resource_class` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resource_class").toString())); } - // ensure the json data is an array - if ((jsonObj.get("init_commands") != null && !jsonObj.get("init_commands").isJsonNull()) && !jsonObj.get("init_commands").isJsonArray()) { + // validate the optional field `result_format` + if (jsonObj.get("result_format") != null && !jsonObj.get("result_format").isJsonNull()) { + ResultFormat.validateJsonElement(jsonObj.get("result_format")); + } + // ensure the optional json data is an array if present + if (jsonObj.get("init_commands") != null && !jsonObj.get("init_commands").isJsonNull() && !jsonObj.get("init_commands").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `init_commands` to be an array in the JSON string but got `%s`", jsonObj.get("init_commands").toString())); } - // ensure the json data is an array - if ((jsonObj.get("parameters") != null && !jsonObj.get("parameters").isJsonNull()) && !jsonObj.get("parameters").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("parameters") != null && !jsonObj.get("parameters").isJsonNull() && !jsonObj.get("parameters").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `parameters` to be an array in the JSON string but got `%s`", jsonObj.get("parameters").toString())); } if ((jsonObj.get("task_graph_uuid") != null && !jsonObj.get("task_graph_uuid").isJsonNull()) && !jsonObj.get("task_graph_uuid").isJsonPrimitive()) { @@ -536,7 +514,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, SQLParameters value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -548,7 +526,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -557,8 +540,9 @@ else if (entry.getValue() instanceof Character) @Override public SQLParameters read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance SQLParameters instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -572,8 +556,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -584,22 +570,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of SQLParameters given an JSON string - * - * @param jsonString JSON string - * @return An instance of SQLParameters - * @throws IOException if the JSON string is invalid with respect to SQLParameters - */ + /** + * Create an instance of SQLParameters given an JSON string + * + * @param jsonString JSON string + * @return An instance of SQLParameters + * @throws IOException if the JSON string is invalid with respect to SQLParameters + */ public static SQLParameters fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, SQLParameters.class); } - /** - * Convert an instance of SQLParameters to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of SQLParameters 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/SSODomainConfig.java b/src/main/java/io/tiledb/cloud/rest_api/model/SSODomainConfig.java index 2aa1220..38d0496 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). @@ -14,38 +14,48 @@ 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.JsonAdapter; 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 io.tiledb.cloud.rest_api.model.DomainCheckResult; +import io.tiledb.cloud.rest_api.model.DomainVerificationStatus; +import io.tiledb.cloud.rest_api.model.SSODomainSetup; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; - import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class SSODomainConfig { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) @@ -77,174 +87,145 @@ public class SSODomainConfig { public static final String SERIALIZED_NAME_CHECK_RESULTS = "check_results"; @SerializedName(SERIALIZED_NAME_CHECK_RESULTS) - private List checkResults = null; + private List checkResults = new ArrayList<>(); public SSODomainConfig() { } public SSODomainConfig uuid(String uuid) { - this.uuid = uuid; return this; } - /** + /** * A server-generated ID for the configuration. * @return uuid - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "A server-generated ID for the configuration.") - public String getUuid() { return uuid; } - public void setUuid(String uuid) { this.uuid = uuid; } public SSODomainConfig domain(String domain) { - this.domain = domain; return this; } - /** + /** * The fully-qualified domain (but with no trailing dot) to connect for single sign-on. This may not be changed after creation. * @return domain - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The fully-qualified domain (but with no trailing dot) to connect for single sign-on. This may not be changed after creation. ") - public String getDomain() { return domain; } - public void setDomain(String domain) { this.domain = domain; } public SSODomainConfig oidcIssuer(String oidcIssuer) { - this.oidcIssuer = oidcIssuer; return this; } - /** + /** * The URL of the OpenID Connect issuer that can be used to authenticate this domain's users. The prefix where the `/.well-known/openid-configuration` file can be found; usually without a trailing slash. * @return oidcIssuer - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The URL of the OpenID Connect issuer that can be used to authenticate this domain's users. The prefix where the `/.well-known/openid-configuration` file can be found; usually without a trailing slash. ") - public String getOidcIssuer() { return oidcIssuer; } - public void setOidcIssuer(String oidcIssuer) { this.oidcIssuer = oidcIssuer; } public SSODomainConfig oidcClientId(String oidcClientId) { - this.oidcClientId = oidcClientId; return this; } - /** + /** * The OpenID Connect client ID for this SSO instance. * @return oidcClientId - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The OpenID Connect client ID for this SSO instance.") - public String getOidcClientId() { return oidcClientId; } - public void setOidcClientId(String oidcClientId) { this.oidcClientId = oidcClientId; } public SSODomainConfig oidcClientSecret(String oidcClientSecret) { - this.oidcClientSecret = oidcClientSecret; return this; } - /** + /** * The OpenID Connect client secret for this SSO instance. * @return oidcClientSecret - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The OpenID Connect client secret for this SSO instance.") - public String getOidcClientSecret() { return oidcClientSecret; } - public void setOidcClientSecret(String oidcClientSecret) { this.oidcClientSecret = oidcClientSecret; } public SSODomainConfig domainSetup(SSODomainSetup domainSetup) { - this.domainSetup = domainSetup; return this; } - /** + /** * Get domainSetup * @return domainSetup - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public SSODomainSetup getDomainSetup() { return domainSetup; } - public void setDomainSetup(SSODomainSetup domainSetup) { this.domainSetup = domainSetup; } public SSODomainConfig verificationStatus(DomainVerificationStatus verificationStatus) { - this.verificationStatus = verificationStatus; return this; } - /** + /** * Get verificationStatus * @return verificationStatus - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public DomainVerificationStatus getVerificationStatus() { return verificationStatus; } - public void setVerificationStatus(DomainVerificationStatus verificationStatus) { this.verificationStatus = verificationStatus; } public SSODomainConfig checkResults(List checkResults) { - this.checkResults = checkResults; return this; } @@ -257,18 +238,15 @@ public SSODomainConfig addCheckResultsItem(DomainCheckResult checkResultsItem) { return this; } - /** + /** * A list of the results of recent attempts to verify this domain. * @return checkResults - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "A list of the results of recent attempts to verify this domain. ") - public List getCheckResults() { return checkResults; } - public void setCheckResults(List checkResults) { this.checkResults = checkResults; } @@ -283,6 +261,10 @@ public void setCheckResults(List checkResults) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the SSODomainConfig instance itself */ public SSODomainConfig putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -294,6 +276,8 @@ public SSODomainConfig putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -301,6 +285,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -394,20 +381,19 @@ private String toIndentedString(Object o) { 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 SSODomainConfig - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (SSODomainConfig.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to SSODomainConfig + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!SSODomainConfig.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in SSODomainConfig is not found in the empty JSON string", SSODomainConfig.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); } @@ -425,19 +411,25 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { } // validate the optional field `domain_setup` if (jsonObj.get("domain_setup") != null && !jsonObj.get("domain_setup").isJsonNull()) { - SSODomainSetup.validateJsonObject(jsonObj.getAsJsonObject("domain_setup")); + SSODomainSetup.validateJsonElement(jsonObj.get("domain_setup")); } - JsonArray jsonArraycheckResults = jsonObj.getAsJsonArray("check_results"); - if (jsonArraycheckResults != null) { - // ensure the json data is an array - if (!jsonObj.get("check_results").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `check_results` to be an array in the JSON string but got `%s`", jsonObj.get("check_results").toString())); + // validate the optional field `verification_status` + if (jsonObj.get("verification_status") != null && !jsonObj.get("verification_status").isJsonNull()) { + DomainVerificationStatus.validateJsonElement(jsonObj.get("verification_status")); + } + if (jsonObj.get("check_results") != null && !jsonObj.get("check_results").isJsonNull()) { + JsonArray jsonArraycheckResults = jsonObj.getAsJsonArray("check_results"); + if (jsonArraycheckResults != null) { + // ensure the json data is an array + if (!jsonObj.get("check_results").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `check_results` to be an array in the JSON string but got `%s`", jsonObj.get("check_results").toString())); + } + + // validate the optional field `check_results` (array) + for (int i = 0; i < jsonArraycheckResults.size(); i++) { + DomainCheckResult.validateJsonElement(jsonArraycheckResults.get(i)); + }; } - - // validate the optional field `check_results` (array) - for (int i = 0; i < jsonArraycheckResults.size(); i++) { - DomainCheckResult.validateJsonObject(jsonArraycheckResults.get(i).getAsJsonObject()); - }; } } @@ -457,7 +449,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, SSODomainConfig value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -469,7 +461,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -478,8 +475,9 @@ else if (entry.getValue() instanceof Character) @Override public SSODomainConfig read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance SSODomainConfig instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -493,8 +491,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -505,22 +505,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of SSODomainConfig given an JSON string - * - * @param jsonString JSON string - * @return An instance of SSODomainConfig - * @throws IOException if the JSON string is invalid with respect to SSODomainConfig - */ + /** + * Create an instance of SSODomainConfig given an JSON string + * + * @param jsonString JSON string + * @return An instance of SSODomainConfig + * @throws IOException if the JSON string is invalid with respect to SSODomainConfig + */ public static SSODomainConfig fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, SSODomainConfig.class); } - /** - * Convert an instance of SSODomainConfig to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of SSODomainConfig 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/SSODomainConfigResponse.java b/src/main/java/io/tiledb/cloud/rest_api/model/SSODomainConfigResponse.java index 52259f7..4e2cdfc 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,46 +14,54 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.SSODomainConfig; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class SSODomainConfigResponse { public static final String SERIALIZED_NAME_DOMAIN_CONFIGS = "domain_configs"; @SerializedName(SERIALIZED_NAME_DOMAIN_CONFIGS) - private List domainConfigs = null; + private List domainConfigs = new ArrayList<>(); public SSODomainConfigResponse() { } public SSODomainConfigResponse domainConfigs(List domainConfigs) { - this.domainConfigs = domainConfigs; return this; } @@ -66,18 +74,15 @@ public SSODomainConfigResponse addDomainConfigsItem(SSODomainConfig domainConfig return this; } - /** + /** * Get domainConfigs * @return domainConfigs - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public List getDomainConfigs() { return domainConfigs; } - public void setDomainConfigs(List domainConfigs) { this.domainConfigs = domainConfigs; } @@ -92,6 +97,10 @@ public void setDomainConfigs(List domainConfigs) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the SSODomainConfigResponse instance itself */ public SSODomainConfigResponse putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -103,6 +112,8 @@ public SSODomainConfigResponse putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -110,6 +121,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -171,31 +185,32 @@ private String toIndentedString(Object o) { 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 SSODomainConfigResponse - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (SSODomainConfigResponse.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to SSODomainConfigResponse + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!SSODomainConfigResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in SSODomainConfigResponse is not found in the empty JSON string", SSODomainConfigResponse.openapiRequiredFields.toString())); } } - JsonArray jsonArraydomainConfigs = jsonObj.getAsJsonArray("domain_configs"); - if (jsonArraydomainConfigs != null) { - // ensure the json data is an array - if (!jsonObj.get("domain_configs").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `domain_configs` to be an array in the JSON string but got `%s`", jsonObj.get("domain_configs").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("domain_configs") != null && !jsonObj.get("domain_configs").isJsonNull()) { + JsonArray jsonArraydomainConfigs = jsonObj.getAsJsonArray("domain_configs"); + if (jsonArraydomainConfigs != null) { + // ensure the json data is an array + if (!jsonObj.get("domain_configs").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `domain_configs` to be an array in the JSON string but got `%s`", jsonObj.get("domain_configs").toString())); + } + + // validate the optional field `domain_configs` (array) + for (int i = 0; i < jsonArraydomainConfigs.size(); i++) { + SSODomainConfig.validateJsonElement(jsonArraydomainConfigs.get(i)); + }; } - - // validate the optional field `domain_configs` (array) - for (int i = 0; i < jsonArraydomainConfigs.size(); i++) { - SSODomainConfig.validateJsonObject(jsonArraydomainConfigs.get(i).getAsJsonObject()); - }; } } @@ -215,7 +230,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, SSODomainConfigResponse value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -227,7 +242,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -236,8 +256,9 @@ else if (entry.getValue() instanceof Character) @Override public SSODomainConfigResponse read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance SSODomainConfigResponse instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -251,8 +272,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -263,22 +286,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of SSODomainConfigResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of SSODomainConfigResponse - * @throws IOException if the JSON string is invalid with respect to SSODomainConfigResponse - */ + /** + * Create an instance of SSODomainConfigResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of SSODomainConfigResponse + * @throws IOException if the JSON string is invalid with respect to SSODomainConfigResponse + */ public static SSODomainConfigResponse fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, SSODomainConfigResponse.class); } - /** - * Convert an instance of SSODomainConfigResponse to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of SSODomainConfigResponse 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/SSODomainSetup.java b/src/main/java/io/tiledb/cloud/rest_api/model/SSODomainSetup.java index d0f4d4c..94d9127 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,33 +14,42 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.Arrays; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class SSODomainSetup { public static final String SERIALIZED_NAME_TXT = "txt"; @SerializedName(SERIALIZED_NAME_TXT) @@ -58,69 +67,57 @@ public SSODomainSetup() { } public SSODomainSetup txt(String txt) { - this.txt = txt; return this; } - /** + /** * a DNS TXT record to set on the domain to claim. * @return txt - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "a DNS TXT record to set on the domain to claim.") - public String getTxt() { return txt; } - public void setTxt(String txt) { this.txt = txt; } public SSODomainSetup cnameSrc(String cnameSrc) { - this.cnameSrc = cnameSrc; return this; } - /** + /** * a DNS name to set a CNAME record on * @return cnameSrc - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "a DNS name to set a CNAME record on") - public String getCnameSrc() { return cnameSrc; } - public void setCnameSrc(String cnameSrc) { this.cnameSrc = cnameSrc; } public SSODomainSetup cnameDst(String cnameDst) { - this.cnameDst = cnameDst; return this; } - /** + /** * the CNAME target of `cname_src`. * @return cnameDst - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "the CNAME target of `cname_src`.") - public String getCnameDst() { return cnameDst; } - public void setCnameDst(String cnameDst) { this.cnameDst = cnameDst; } @@ -135,6 +132,10 @@ public void setCnameDst(String cnameDst) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the SSODomainSetup instance itself */ public SSODomainSetup putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -146,6 +147,8 @@ public SSODomainSetup putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -153,6 +156,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -220,20 +226,19 @@ private String toIndentedString(Object o) { 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 SSODomainSetup - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (SSODomainSetup.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to SSODomainSetup + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!SSODomainSetup.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in SSODomainSetup is not found in the empty JSON string", SSODomainSetup.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("txt") != null && !jsonObj.get("txt").isJsonNull()) && !jsonObj.get("txt").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `txt` to be a primitive type in the JSON string but got `%s`", jsonObj.get("txt").toString())); } @@ -261,7 +266,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, SSODomainSetup value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -273,7 +278,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -282,8 +292,9 @@ else if (entry.getValue() instanceof Character) @Override public SSODomainSetup read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance SSODomainSetup instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -297,8 +308,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -309,22 +322,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of SSODomainSetup given an JSON string - * - * @param jsonString JSON string - * @return An instance of SSODomainSetup - * @throws IOException if the JSON string is invalid with respect to SSODomainSetup - */ + /** + * Create an instance of SSODomainSetup given an JSON string + * + * @param jsonString JSON string + * @return An instance of SSODomainSetup + * @throws IOException if the JSON string is invalid with respect to SSODomainSetup + */ public static SSODomainSetup fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, SSODomainSetup.class); } - /** - * Convert an instance of SSODomainSetup to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of SSODomainSetup 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/SSOProvider.java b/src/main/java/io/tiledb/cloud/rest_api/model/SSOProvider.java index 5e7e300..c71a9aa 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,8 +13,12 @@ package io.tiledb.cloud.rest_api.model; +import java.util.Objects; +import com.google.gson.annotations.SerializedName; + import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -31,7 +35,11 @@ public enum SSOProvider { STRIPE("stripe"), - OKTA("okta"); + OKTA("okta"), + + PERDOMAIN("perdomain"), + + SCIM("scim"); private String value; @@ -69,5 +77,10 @@ public SSOProvider read(final JsonReader jsonReader) throws IOException { return SSOProvider.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + SSOProvider.fromValue(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..f3c175d --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/SharePaymentRequest.java @@ -0,0 +1,298 @@ +/* + * 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.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.tiledb.cloud.rest_api.JSON; + +/** + * SharePaymentRequest + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +public class SharePaymentRequest { + public static final String SERIALIZED_NAME_NAMESPACES = "namespaces"; + @SerializedName(SERIALIZED_NAME_NAMESPACES) + private List namespaces = new ArrayList<>(); + + 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 + 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. + * + * @param key name of the property + * @param value value of the property + * @return the SharePaymentRequest instance itself + */ + 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. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + 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 Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to SharePaymentRequest + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!SharePaymentRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in SharePaymentRequest is not found in the empty JSON string", SharePaymentRequest.openapiRequiredFields.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + 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 additional 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 { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public SharePaymentRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // 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 if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + 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..bc5fa0d 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,33 +14,43 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.FragmentMetadata; import java.io.IOException; +import java.util.Arrays; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class SingleFragmentInfo { public static final String SERIALIZED_NAME_ARRAY_SCHEMA_NAME = "ArraySchemaName"; @SerializedName(SERIALIZED_NAME_ARRAY_SCHEMA_NAME) @@ -54,46 +64,38 @@ public SingleFragmentInfo() { } public SingleFragmentInfo arraySchemaName(String arraySchemaName) { - this.arraySchemaName = arraySchemaName; return this; } - /** + /** * array schema name * @return arraySchemaName - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "array schema name") - public String getArraySchemaName() { return arraySchemaName; } - public void setArraySchemaName(String arraySchemaName) { this.arraySchemaName = arraySchemaName; } public SingleFragmentInfo meta(FragmentMetadata meta) { - this.meta = meta; return this; } - /** + /** * Get meta * @return meta - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public FragmentMetadata getMeta() { return meta; } - public void setMeta(FragmentMetadata meta) { this.meta = meta; } @@ -108,6 +110,10 @@ public void setMeta(FragmentMetadata meta) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the SingleFragmentInfo instance itself */ public SingleFragmentInfo putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -119,6 +125,8 @@ public SingleFragmentInfo putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -126,6 +134,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -190,26 +201,25 @@ private String toIndentedString(Object o) { 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 SingleFragmentInfo - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (SingleFragmentInfo.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to SingleFragmentInfo + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!SingleFragmentInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in SingleFragmentInfo is not found in the empty JSON string", SingleFragmentInfo.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("ArraySchemaName") != null && !jsonObj.get("ArraySchemaName").isJsonNull()) && !jsonObj.get("ArraySchemaName").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `ArraySchemaName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ArraySchemaName").toString())); } // validate the optional field `meta` if (jsonObj.get("meta") != null && !jsonObj.get("meta").isJsonNull()) { - FragmentMetadata.validateJsonObject(jsonObj.getAsJsonObject("meta")); + FragmentMetadata.validateJsonElement(jsonObj.get("meta")); } } @@ -229,7 +239,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, SingleFragmentInfo value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -241,7 +251,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -250,8 +265,9 @@ else if (entry.getValue() instanceof Character) @Override public SingleFragmentInfo read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance SingleFragmentInfo instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -265,8 +281,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -277,22 +295,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of SingleFragmentInfo given an JSON string - * - * @param jsonString JSON string - * @return An instance of SingleFragmentInfo - * @throws IOException if the JSON string is invalid with respect to SingleFragmentInfo - */ + /** + * Create an instance of SingleFragmentInfo given an JSON string + * + * @param jsonString JSON string + * @return An instance of SingleFragmentInfo + * @throws IOException if the JSON string is invalid with respect to SingleFragmentInfo + */ public static SingleFragmentInfo fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, SingleFragmentInfo.class); } - /** - * Convert an instance of SingleFragmentInfo to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of SingleFragmentInfo 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/StorageLocation.java b/src/main/java/io/tiledb/cloud/rest_api/model/StorageLocation.java index ac0ec01..938bdea 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). @@ -14,34 +14,43 @@ 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.JsonAdapter; 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 io.tiledb.cloud.rest_api.JSON; +import java.util.Arrays; import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; + +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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class StorageLocation { public static final String SERIALIZED_NAME_PATH = "path"; @SerializedName(SERIALIZED_NAME_PATH) @@ -55,46 +64,38 @@ public StorageLocation() { } public StorageLocation path(String path) { - this.path = path; return this; } - /** + /** * The path to store this asset type. If unset, a suffix of the user's `default_s3_path` is used. When updating, explicitly set to `\"\"`, the empty string, to clear this path; leaving it `null` (or absent) will leave the path unchanged. * @return path - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The path to store this asset type. If unset, a suffix of the user's `default_s3_path` is used. When updating, explicitly set to `\"\"`, the empty string, to clear this path; leaving it `null` (or absent) will leave the path unchanged. ") - public String getPath() { return path; } - public void setPath(String path) { this.path = path; } public StorageLocation credentialsName(String credentialsName) { - this.credentialsName = credentialsName; return this; } - /** + /** * The name of the credentials used to acess this storage path. If unset, the `default_s3_path_credentials_name` is used. When updating, explicitly set to `\"\"`, the empty string, to clear this name; leaving it `null` (or absent) will leave the name unchanged. * @return credentialsName - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The name of the credentials used to acess this storage path. If unset, the `default_s3_path_credentials_name` is used. When updating, explicitly set to `\"\"`, the empty string, to clear this name; leaving it `null` (or absent) will leave the name unchanged. ") - public String getCredentialsName() { return credentialsName; } - public void setCredentialsName(String credentialsName) { this.credentialsName = credentialsName; } @@ -109,6 +110,10 @@ public void setCredentialsName(String credentialsName) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the StorageLocation instance itself */ public StorageLocation putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -120,6 +125,8 @@ public StorageLocation putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -127,6 +134,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -202,20 +212,19 @@ private String toIndentedString(Object o) { 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 StorageLocation - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (StorageLocation.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to StorageLocation + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!StorageLocation.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in StorageLocation is not found in the empty JSON string", StorageLocation.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); } @@ -240,7 +249,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, StorageLocation value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -252,7 +261,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -261,8 +275,9 @@ else if (entry.getValue() instanceof Character) @Override public StorageLocation read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance StorageLocation instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -276,8 +291,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -288,22 +305,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of StorageLocation given an JSON string - * - * @param jsonString JSON string - * @return An instance of StorageLocation - * @throws IOException if the JSON string is invalid with respect to StorageLocation - */ + /** + * Create an instance of StorageLocation given an JSON string + * + * @param jsonString JSON string + * @return An instance of StorageLocation + * @throws IOException if the JSON string is invalid with respect to StorageLocation + */ public static StorageLocation fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, StorageLocation.class); } - /** - * Convert an instance of StorageLocation to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of StorageLocation 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/Subarray.java b/src/main/java/io/tiledb/cloud/rest_api/model/Subarray.java index 627f307..a29f6b2 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,36 +14,46 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.Layout; +import io.tiledb.cloud.rest_api.model.SubarrayRanges; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class Subarray { public static final String SERIALIZED_NAME_LAYOUT = "layout"; @SerializedName(SERIALIZED_NAME_LAYOUT) @@ -51,36 +61,31 @@ public class Subarray { public static final String SERIALIZED_NAME_RANGES = "ranges"; @SerializedName(SERIALIZED_NAME_RANGES) - private List ranges = null; + private List ranges = new ArrayList<>(); public Subarray() { } public Subarray layout(Layout layout) { - this.layout = layout; return this; } - /** + /** * Get layout * @return layout - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public Layout getLayout() { return layout; } - public void setLayout(Layout layout) { this.layout = layout; } public Subarray ranges(List ranges) { - this.ranges = ranges; return this; } @@ -93,18 +98,15 @@ public Subarray addRangesItem(SubarrayRanges rangesItem) { return this; } - /** + /** * List of 1D ranges, one per dimension * @return ranges - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "List of 1D ranges, one per dimension") - public List getRanges() { return ranges; } - public void setRanges(List ranges) { this.ranges = ranges; } @@ -119,6 +121,10 @@ public void setRanges(List ranges) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the Subarray instance itself */ public Subarray putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -130,6 +136,8 @@ public Subarray putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -137,6 +145,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -201,31 +212,36 @@ private String toIndentedString(Object o) { 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 Subarray - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (Subarray.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to Subarray + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!Subarray.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in Subarray is not found in the empty JSON string", Subarray.openapiRequiredFields.toString())); } } - JsonArray jsonArrayranges = jsonObj.getAsJsonArray("ranges"); - if (jsonArrayranges != null) { - // ensure the json data is an array - if (!jsonObj.get("ranges").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `ranges` to be an array in the JSON string but got `%s`", jsonObj.get("ranges").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `layout` + if (jsonObj.get("layout") != null && !jsonObj.get("layout").isJsonNull()) { + Layout.validateJsonElement(jsonObj.get("layout")); + } + if (jsonObj.get("ranges") != null && !jsonObj.get("ranges").isJsonNull()) { + JsonArray jsonArrayranges = jsonObj.getAsJsonArray("ranges"); + if (jsonArrayranges != null) { + // ensure the json data is an array + if (!jsonObj.get("ranges").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `ranges` to be an array in the JSON string but got `%s`", jsonObj.get("ranges").toString())); + } + + // validate the optional field `ranges` (array) + for (int i = 0; i < jsonArrayranges.size(); i++) { + SubarrayRanges.validateJsonElement(jsonArrayranges.get(i)); + }; } - - // validate the optional field `ranges` (array) - for (int i = 0; i < jsonArrayranges.size(); i++) { - SubarrayRanges.validateJsonObject(jsonArrayranges.get(i).getAsJsonObject()); - }; } } @@ -245,7 +261,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, Subarray value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -257,7 +273,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -266,8 +287,9 @@ else if (entry.getValue() instanceof Character) @Override public Subarray read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance Subarray instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -281,8 +303,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -293,22 +317,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of Subarray given an JSON string - * - * @param jsonString JSON string - * @return An instance of Subarray - * @throws IOException if the JSON string is invalid with respect to Subarray - */ + /** + * Create an instance of Subarray given an JSON string + * + * @param jsonString JSON string + * @return An instance of Subarray + * @throws IOException if the JSON string is invalid with respect to Subarray + */ public static Subarray fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, Subarray.class); } - /** - * Convert an instance of Subarray to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of Subarray 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/SubarrayPartitioner.java b/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayPartitioner.java index 45b3a74..bd1aefc 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,36 +14,48 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.AttributeBufferSize; +import io.tiledb.cloud.rest_api.model.Subarray; +import io.tiledb.cloud.rest_api.model.SubarrayPartitionerCurrent; +import io.tiledb.cloud.rest_api.model.SubarrayPartitionerState; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class SubarrayPartitioner { public static final String SERIALIZED_NAME_SUBARRAY = "subarray"; @SerializedName(SERIALIZED_NAME_SUBARRAY) @@ -51,7 +63,7 @@ public class SubarrayPartitioner { public static final String SERIALIZED_NAME_BUDGET = "budget"; @SerializedName(SERIALIZED_NAME_BUDGET) - private List budget = null; + private List budget = new ArrayList<>(); public static final String SERIALIZED_NAME_CURRENT = "current"; @SerializedName(SERIALIZED_NAME_CURRENT) @@ -73,30 +85,25 @@ public SubarrayPartitioner() { } public SubarrayPartitioner subarray(Subarray subarray) { - this.subarray = subarray; return this; } - /** + /** * Get subarray * @return subarray - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public Subarray getSubarray() { return subarray; } - public void setSubarray(Subarray subarray) { this.subarray = subarray; } public SubarrayPartitioner budget(List budget) { - this.budget = budget; return this; } @@ -109,110 +116,91 @@ public SubarrayPartitioner addBudgetItem(AttributeBufferSize budgetItem) { return this; } - /** + /** * Result size budget (in bytes) for all attributes. * @return budget - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Result size budget (in bytes) for all attributes.") - public List getBudget() { return budget; } - public void setBudget(List budget) { this.budget = budget; } public SubarrayPartitioner current(SubarrayPartitionerCurrent current) { - this.current = current; return this; } - /** + /** * Get current * @return current - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public SubarrayPartitionerCurrent getCurrent() { return current; } - public void setCurrent(SubarrayPartitionerCurrent current) { this.current = current; } public SubarrayPartitioner state(SubarrayPartitionerState state) { - this.state = state; return this; } - /** + /** * Get state * @return state - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public SubarrayPartitionerState getState() { return state; } - public void setState(SubarrayPartitionerState state) { this.state = state; } public SubarrayPartitioner memoryBudget(Integer memoryBudget) { - this.memoryBudget = memoryBudget; return this; } - /** + /** * The memory budget for the fixed-sized attributes and the offsets of the var-sized attributes * @return memoryBudget - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The memory budget for the fixed-sized attributes and the offsets of the var-sized attributes") - public Integer getMemoryBudget() { return memoryBudget; } - public void setMemoryBudget(Integer memoryBudget) { this.memoryBudget = memoryBudget; } public SubarrayPartitioner memoryBudgetVar(Integer memoryBudgetVar) { - this.memoryBudgetVar = memoryBudgetVar; return this; } - /** + /** * The memory budget for the var-sized attributes * @return memoryBudgetVar - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The memory budget for the var-sized attributes") - public Integer getMemoryBudgetVar() { return memoryBudgetVar; } - public void setMemoryBudgetVar(Integer memoryBudgetVar) { this.memoryBudgetVar = memoryBudgetVar; } @@ -227,6 +215,10 @@ public void setMemoryBudgetVar(Integer memoryBudgetVar) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the SubarrayPartitioner instance itself */ public SubarrayPartitioner putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -238,6 +230,8 @@ public SubarrayPartitioner putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -245,6 +239,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -321,43 +318,44 @@ private String toIndentedString(Object o) { 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 SubarrayPartitioner - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (SubarrayPartitioner.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to SubarrayPartitioner + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!SubarrayPartitioner.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in SubarrayPartitioner is not found in the empty JSON string", SubarrayPartitioner.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `subarray` if (jsonObj.get("subarray") != null && !jsonObj.get("subarray").isJsonNull()) { - Subarray.validateJsonObject(jsonObj.getAsJsonObject("subarray")); + Subarray.validateJsonElement(jsonObj.get("subarray")); } - JsonArray jsonArraybudget = jsonObj.getAsJsonArray("budget"); - if (jsonArraybudget != null) { - // ensure the json data is an array - if (!jsonObj.get("budget").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `budget` to be an array in the JSON string but got `%s`", jsonObj.get("budget").toString())); + if (jsonObj.get("budget") != null && !jsonObj.get("budget").isJsonNull()) { + JsonArray jsonArraybudget = jsonObj.getAsJsonArray("budget"); + if (jsonArraybudget != null) { + // ensure the json data is an array + if (!jsonObj.get("budget").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `budget` to be an array in the JSON string but got `%s`", jsonObj.get("budget").toString())); + } + + // validate the optional field `budget` (array) + for (int i = 0; i < jsonArraybudget.size(); i++) { + AttributeBufferSize.validateJsonElement(jsonArraybudget.get(i)); + }; } - - // validate the optional field `budget` (array) - for (int i = 0; i < jsonArraybudget.size(); i++) { - AttributeBufferSize.validateJsonObject(jsonArraybudget.get(i).getAsJsonObject()); - }; } // validate the optional field `current` if (jsonObj.get("current") != null && !jsonObj.get("current").isJsonNull()) { - SubarrayPartitionerCurrent.validateJsonObject(jsonObj.getAsJsonObject("current")); + SubarrayPartitionerCurrent.validateJsonElement(jsonObj.get("current")); } // validate the optional field `state` if (jsonObj.get("state") != null && !jsonObj.get("state").isJsonNull()) { - SubarrayPartitionerState.validateJsonObject(jsonObj.getAsJsonObject("state")); + SubarrayPartitionerState.validateJsonElement(jsonObj.get("state")); } } @@ -377,7 +375,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, SubarrayPartitioner value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -389,7 +387,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -398,8 +401,9 @@ else if (entry.getValue() instanceof Character) @Override public SubarrayPartitioner read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance SubarrayPartitioner instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -413,8 +417,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -425,22 +431,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of SubarrayPartitioner given an JSON string - * - * @param jsonString JSON string - * @return An instance of SubarrayPartitioner - * @throws IOException if the JSON string is invalid with respect to SubarrayPartitioner - */ + /** + * Create an instance of SubarrayPartitioner given an JSON string + * + * @param jsonString JSON string + * @return An instance of SubarrayPartitioner + * @throws IOException if the JSON string is invalid with respect to SubarrayPartitioner + */ public static SubarrayPartitioner fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, SubarrayPartitioner.class); } - /** - * Convert an instance of SubarrayPartitioner to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of SubarrayPartitioner 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/SubarrayPartitionerCurrent.java b/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerCurrent.java index bcc0725..fe2fc02 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,33 +14,43 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.Subarray; import java.io.IOException; +import java.util.Arrays; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class SubarrayPartitionerCurrent { public static final String SERIALIZED_NAME_SUBARRAY = "subarray"; @SerializedName(SERIALIZED_NAME_SUBARRAY) @@ -62,92 +72,76 @@ public SubarrayPartitionerCurrent() { } public SubarrayPartitionerCurrent subarray(Subarray subarray) { - this.subarray = subarray; return this; } - /** + /** * Get subarray * @return subarray - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public Subarray getSubarray() { return subarray; } - public void setSubarray(Subarray subarray) { this.subarray = subarray; } public SubarrayPartitionerCurrent start(Integer start) { - this.start = start; return this; } - /** + /** * PartitionInfo start * @return start - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "PartitionInfo start") - public Integer getStart() { return start; } - public void setStart(Integer start) { this.start = start; } public SubarrayPartitionerCurrent end(Integer end) { - this.end = end; return this; } - /** + /** * PartitionInfo end * @return end - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "PartitionInfo end") - public Integer getEnd() { return end; } - public void setEnd(Integer end) { this.end = end; } public SubarrayPartitionerCurrent splitMultiRange(Boolean splitMultiRange) { - this.splitMultiRange = splitMultiRange; return this; } - /** + /** * PartitionInfo splitMultiRange * @return splitMultiRange - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "PartitionInfo splitMultiRange") - public Boolean getSplitMultiRange() { return splitMultiRange; } - public void setSplitMultiRange(Boolean splitMultiRange) { this.splitMultiRange = splitMultiRange; } @@ -162,6 +156,10 @@ public void setSplitMultiRange(Boolean splitMultiRange) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the SubarrayPartitionerCurrent instance itself */ public SubarrayPartitionerCurrent putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -173,6 +171,8 @@ public SubarrayPartitionerCurrent putAdditionalProperty(String key, Object value /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -180,6 +180,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -250,23 +253,22 @@ private String toIndentedString(Object o) { 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 SubarrayPartitionerCurrent - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (SubarrayPartitionerCurrent.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to SubarrayPartitionerCurrent + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!SubarrayPartitionerCurrent.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in SubarrayPartitionerCurrent is not found in the empty JSON string", SubarrayPartitionerCurrent.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `subarray` if (jsonObj.get("subarray") != null && !jsonObj.get("subarray").isJsonNull()) { - Subarray.validateJsonObject(jsonObj.getAsJsonObject("subarray")); + Subarray.validateJsonElement(jsonObj.get("subarray")); } } @@ -286,7 +288,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, SubarrayPartitionerCurrent value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -298,7 +300,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -307,8 +314,9 @@ else if (entry.getValue() instanceof Character) @Override public SubarrayPartitionerCurrent read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance SubarrayPartitionerCurrent instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -322,8 +330,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -334,22 +344,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of SubarrayPartitionerCurrent given an JSON string - * - * @param jsonString JSON string - * @return An instance of SubarrayPartitionerCurrent - * @throws IOException if the JSON string is invalid with respect to SubarrayPartitionerCurrent - */ + /** + * Create an instance of SubarrayPartitionerCurrent given an JSON string + * + * @param jsonString JSON string + * @return An instance of SubarrayPartitionerCurrent + * @throws IOException if the JSON string is invalid with respect to SubarrayPartitionerCurrent + */ public static SubarrayPartitionerCurrent fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, SubarrayPartitionerCurrent.class); } - /** - * Convert an instance of SubarrayPartitionerCurrent to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of SubarrayPartitionerCurrent 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/SubarrayPartitionerState.java b/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerState.java index 13ced4d..f8712ee 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,36 +14,45 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.Subarray; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class SubarrayPartitionerState { public static final String SERIALIZED_NAME_START = "start"; @SerializedName(SERIALIZED_NAME_START) @@ -55,63 +64,54 @@ public class SubarrayPartitionerState { public static final String SERIALIZED_NAME_SINGLE_RANGE = "singleRange"; @SerializedName(SERIALIZED_NAME_SINGLE_RANGE) - private List singleRange = null; + private List singleRange = new ArrayList<>(); public static final String SERIALIZED_NAME_MULTI_RANGE = "multiRange"; @SerializedName(SERIALIZED_NAME_MULTI_RANGE) - private List multiRange = null; + private List multiRange = new ArrayList<>(); public SubarrayPartitionerState() { } public SubarrayPartitionerState start(Integer start) { - this.start = start; return this; } - /** + /** * State start * @return start - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "State start") - public Integer getStart() { return start; } - public void setStart(Integer start) { this.start = start; } public SubarrayPartitionerState end(Integer end) { - this.end = end; return this; } - /** + /** * State end * @return end - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "State end") - public Integer getEnd() { return end; } - public void setEnd(Integer end) { this.end = end; } public SubarrayPartitionerState singleRange(List singleRange) { - this.singleRange = singleRange; return this; } @@ -124,25 +124,21 @@ public SubarrayPartitionerState addSingleRangeItem(Subarray singleRangeItem) { return this; } - /** + /** * State singleRange * @return singleRange - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "State singleRange") - public List getSingleRange() { return singleRange; } - public void setSingleRange(List singleRange) { this.singleRange = singleRange; } public SubarrayPartitionerState multiRange(List multiRange) { - this.multiRange = multiRange; return this; } @@ -155,18 +151,15 @@ public SubarrayPartitionerState addMultiRangeItem(Subarray multiRangeItem) { return this; } - /** + /** * State multiRange * @return multiRange - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "State multiRange") - public List getMultiRange() { return multiRange; } - public void setMultiRange(List multiRange) { this.multiRange = multiRange; } @@ -181,6 +174,10 @@ public void setMultiRange(List multiRange) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the SubarrayPartitionerState instance itself */ public SubarrayPartitionerState putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -192,6 +189,8 @@ public SubarrayPartitionerState putAdditionalProperty(String key, Object value) /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -199,6 +198,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -269,43 +271,46 @@ private String toIndentedString(Object o) { 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 SubarrayPartitionerState - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (SubarrayPartitionerState.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to SubarrayPartitionerState + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!SubarrayPartitionerState.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in SubarrayPartitionerState is not found in the empty JSON string", SubarrayPartitionerState.openapiRequiredFields.toString())); } } - JsonArray jsonArraysingleRange = jsonObj.getAsJsonArray("singleRange"); - if (jsonArraysingleRange != null) { - // ensure the json data is an array - if (!jsonObj.get("singleRange").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `singleRange` to be an array in the JSON string but got `%s`", jsonObj.get("singleRange").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("singleRange") != null && !jsonObj.get("singleRange").isJsonNull()) { + JsonArray jsonArraysingleRange = jsonObj.getAsJsonArray("singleRange"); + if (jsonArraysingleRange != null) { + // ensure the json data is an array + if (!jsonObj.get("singleRange").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `singleRange` to be an array in the JSON string but got `%s`", jsonObj.get("singleRange").toString())); + } + + // validate the optional field `singleRange` (array) + for (int i = 0; i < jsonArraysingleRange.size(); i++) { + Subarray.validateJsonElement(jsonArraysingleRange.get(i)); + }; } - - // validate the optional field `singleRange` (array) - for (int i = 0; i < jsonArraysingleRange.size(); i++) { - Subarray.validateJsonObject(jsonArraysingleRange.get(i).getAsJsonObject()); - }; } - JsonArray jsonArraymultiRange = jsonObj.getAsJsonArray("multiRange"); - if (jsonArraymultiRange != null) { - // ensure the json data is an array - if (!jsonObj.get("multiRange").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `multiRange` to be an array in the JSON string but got `%s`", jsonObj.get("multiRange").toString())); + if (jsonObj.get("multiRange") != null && !jsonObj.get("multiRange").isJsonNull()) { + JsonArray jsonArraymultiRange = jsonObj.getAsJsonArray("multiRange"); + if (jsonArraymultiRange != null) { + // ensure the json data is an array + if (!jsonObj.get("multiRange").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `multiRange` to be an array in the JSON string but got `%s`", jsonObj.get("multiRange").toString())); + } + + // validate the optional field `multiRange` (array) + for (int i = 0; i < jsonArraymultiRange.size(); i++) { + Subarray.validateJsonElement(jsonArraymultiRange.get(i)); + }; } - - // validate the optional field `multiRange` (array) - for (int i = 0; i < jsonArraymultiRange.size(); i++) { - Subarray.validateJsonObject(jsonArraymultiRange.get(i).getAsJsonObject()); - }; } } @@ -325,7 +330,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, SubarrayPartitionerState value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -337,7 +342,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -346,8 +356,9 @@ else if (entry.getValue() instanceof Character) @Override public SubarrayPartitionerState read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance SubarrayPartitionerState instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -361,8 +372,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -373,22 +386,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of SubarrayPartitionerState given an JSON string - * - * @param jsonString JSON string - * @return An instance of SubarrayPartitionerState - * @throws IOException if the JSON string is invalid with respect to SubarrayPartitionerState - */ + /** + * Create an instance of SubarrayPartitionerState given an JSON string + * + * @param jsonString JSON string + * @return An instance of SubarrayPartitionerState + * @throws IOException if the JSON string is invalid with respect to SubarrayPartitionerState + */ public static SubarrayPartitionerState fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, SubarrayPartitionerState.class); } - /** - * Convert an instance of SubarrayPartitionerState to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of SubarrayPartitionerState 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/SubarrayRanges.java b/src/main/java/io/tiledb/cloud/rest_api/model/SubarrayRanges.java index ce5aff3..023d9fd 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,35 +14,45 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.Datatype; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class SubarrayRanges { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -54,59 +64,50 @@ public class SubarrayRanges { public static final String SERIALIZED_NAME_BUFFER = "buffer"; @SerializedName(SERIALIZED_NAME_BUFFER) - private List buffer = null; + private List buffer = new ArrayList<>(); public SubarrayRanges() { } public SubarrayRanges type(Datatype type) { - this.type = type; return this; } - /** + /** * Get type * @return type - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public Datatype getType() { return type; } - public void setType(Datatype type) { this.type = type; } public SubarrayRanges hasDefaultRange(Boolean hasDefaultRange) { - this.hasDefaultRange = hasDefaultRange; return this; } - /** + /** * True if the range is the default range * @return hasDefaultRange - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "True if the range is the default range") - public Boolean getHasDefaultRange() { return hasDefaultRange; } - public void setHasDefaultRange(Boolean hasDefaultRange) { this.hasDefaultRange = hasDefaultRange; } public SubarrayRanges buffer(List buffer) { - this.buffer = buffer; return this; } @@ -119,18 +120,15 @@ public SubarrayRanges addBufferItem(Integer bufferItem) { return this; } - /** + /** * The bytes of the ranges * @return buffer - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The bytes of the ranges") - public List getBuffer() { return buffer; } - public void setBuffer(List buffer) { this.buffer = buffer; } @@ -145,6 +143,10 @@ public void setBuffer(List buffer) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the SubarrayRanges instance itself */ public SubarrayRanges putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -156,6 +158,8 @@ public SubarrayRanges putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -163,6 +167,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -230,22 +237,25 @@ private String toIndentedString(Object o) { 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 SubarrayRanges - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (SubarrayRanges.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to SubarrayRanges + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!SubarrayRanges.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in SubarrayRanges is not found in the empty JSON string", SubarrayRanges.openapiRequiredFields.toString())); } } - // ensure the json data is an array - if ((jsonObj.get("buffer") != null && !jsonObj.get("buffer").isJsonNull()) && !jsonObj.get("buffer").isJsonArray()) { + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `type` + if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { + Datatype.validateJsonElement(jsonObj.get("type")); + } + // ensure the optional json data is an array if present + if (jsonObj.get("buffer") != null && !jsonObj.get("buffer").isJsonNull() && !jsonObj.get("buffer").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `buffer` to be an array in the JSON string but got `%s`", jsonObj.get("buffer").toString())); } } @@ -266,7 +276,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, SubarrayRanges value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -278,7 +288,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -287,8 +302,9 @@ else if (entry.getValue() instanceof Character) @Override public SubarrayRanges read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance SubarrayRanges instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -302,8 +318,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -314,22 +332,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of SubarrayRanges given an JSON string - * - * @param jsonString JSON string - * @return An instance of SubarrayRanges - * @throws IOException if the JSON string is invalid with respect to SubarrayRanges - */ + /** + * Create an instance of SubarrayRanges given an JSON string + * + * @param jsonString JSON string + * @return An instance of SubarrayRanges + * @throws IOException if the JSON string is invalid with respect to SubarrayRanges + */ public static SubarrayRanges fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, SubarrayRanges.class); } - /** - * Convert an instance of SubarrayRanges to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of SubarrayRanges 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/Subscription.java b/src/main/java/io/tiledb/cloud/rest_api/model/Subscription.java index 1463005..b4558e4 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,36 +14,45 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.Pricing; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class Subscription { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -59,82 +68,69 @@ public class Subscription { public static final String SERIALIZED_NAME_PRICING = "pricing"; @SerializedName(SERIALIZED_NAME_PRICING) - private List pricing = null; + private List pricing = new ArrayList<>(); public Subscription() { } public Subscription id(String id) { - this.id = id; return this; } - /** + /** * Unique ID of subscription as defined by Stripe * @return id - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "subscriptionID", value = "Unique ID of subscription as defined by Stripe") - public String getId() { return id; } - public void setId(String id) { this.id = id; } public Subscription ownerNamespaceUuid(String ownerNamespaceUuid) { - this.ownerNamespaceUuid = ownerNamespaceUuid; return this; } - /** + /** * Unique ID of the array (product) owner * @return ownerNamespaceUuid - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", value = "Unique ID of the array (product) owner") - public String getOwnerNamespaceUuid() { return ownerNamespaceUuid; } - public void setOwnerNamespaceUuid(String ownerNamespaceUuid) { this.ownerNamespaceUuid = ownerNamespaceUuid; } public Subscription customerNamespaceUuid(String customerNamespaceUuid) { - this.customerNamespaceUuid = customerNamespaceUuid; return this; } - /** + /** * Unique ID of the array (product) user (customer) * @return customerNamespaceUuid - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", value = "Unique ID of the array (product) user (customer)") - public String getCustomerNamespaceUuid() { return customerNamespaceUuid; } - public void setCustomerNamespaceUuid(String customerNamespaceUuid) { this.customerNamespaceUuid = customerNamespaceUuid; } public Subscription pricing(List pricing) { - this.pricing = pricing; return this; } @@ -147,18 +143,15 @@ public Subscription addPricingItem(Pricing pricingItem) { return this; } - /** + /** * list of pricing used by this subscription * @return pricing - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "list of pricing used by this subscription") - public List getPricing() { return pricing; } - public void setPricing(List pricing) { this.pricing = pricing; } @@ -173,6 +166,10 @@ public void setPricing(List pricing) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the Subscription instance itself */ public Subscription putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -184,6 +181,8 @@ public Subscription putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -191,6 +190,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -261,20 +263,19 @@ private String toIndentedString(Object o) { 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 Subscription - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (Subscription.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to Subscription + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!Subscription.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in Subscription is not found in the empty JSON string", Subscription.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); } @@ -284,17 +285,19 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if ((jsonObj.get("customer_namespace_uuid") != null && !jsonObj.get("customer_namespace_uuid").isJsonNull()) && !jsonObj.get("customer_namespace_uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `customer_namespace_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("customer_namespace_uuid").toString())); } - JsonArray jsonArraypricing = jsonObj.getAsJsonArray("pricing"); - if (jsonArraypricing != null) { - // ensure the json data is an array - if (!jsonObj.get("pricing").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `pricing` to be an array in the JSON string but got `%s`", jsonObj.get("pricing").toString())); + if (jsonObj.get("pricing") != null && !jsonObj.get("pricing").isJsonNull()) { + JsonArray jsonArraypricing = jsonObj.getAsJsonArray("pricing"); + if (jsonArraypricing != null) { + // ensure the json data is an array + if (!jsonObj.get("pricing").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `pricing` to be an array in the JSON string but got `%s`", jsonObj.get("pricing").toString())); + } + + // validate the optional field `pricing` (array) + for (int i = 0; i < jsonArraypricing.size(); i++) { + Pricing.validateJsonElement(jsonArraypricing.get(i)); + }; } - - // validate the optional field `pricing` (array) - for (int i = 0; i < jsonArraypricing.size(); i++) { - Pricing.validateJsonObject(jsonArraypricing.get(i).getAsJsonObject()); - }; } } @@ -314,7 +317,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, Subscription value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -326,7 +329,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -335,8 +343,9 @@ else if (entry.getValue() instanceof Character) @Override public Subscription read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance Subscription instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -350,8 +359,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -362,22 +373,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of Subscription given an JSON string - * - * @param jsonString JSON string - * @return An instance of Subscription - * @throws IOException if the JSON string is invalid with respect to Subscription - */ + /** + * Create an instance of Subscription given an JSON string + * + * @param jsonString JSON string + * @return An instance of Subscription + * @throws IOException if the JSON string is invalid with respect to Subscription + */ public static Subscription fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, Subscription.class); } - /** - * Convert an instance of Subscription to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of Subscription 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/TGArrayNodeData.java b/src/main/java/io/tiledb/cloud/rest_api/model/TGArrayNodeData.java index 6a9eb9e..99f5119 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,33 +14,43 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.TGQueryRanges; import java.io.IOException; +import java.util.Arrays; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class TGArrayNodeData { public static final String SERIALIZED_NAME_URI = "uri"; @SerializedName(SERIALIZED_NAME_URI) @@ -58,69 +68,57 @@ public TGArrayNodeData() { } public TGArrayNodeData uri(Object uri) { - this.uri = uri; return this; } - /** + /** * An argument provided to a node. This is one of a direct value (i.e., a raw JSON value) or a `TGSentinel`. For example this Python value: {\"a\": [1, \"pipe\", range(30), None], \"b\": b\"bytes\"} is encoded thusly (with included comments): { // A dictionary with string keys is JSON-encodable. \"a\": [ // As is a list. 1, \"pipe\", { // A `range` is replaced with its pickle. \"__tdbudf__\": \"immediate\", \"format\": \"python_pickle\", \"base64_data\": \"gASVIAAAAAAAAACMCGJ1aWx0aW5zlIwFcmFuZ2WUk5RLAEseSwGHlFKULg==\" }, null ], \"b\": { // Raw binary data is encoded into base64. \"__tdbudf__\": \"immediate\" \"format\": \"bytes\", \"base64_data\": \"Ynl0ZXM=\" } } * @return uri - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "An argument provided to a node. This is one of a direct value (i.e., a raw JSON value) or a `TGSentinel`. For example this Python value: {\"a\": [1, \"pipe\", range(30), None], \"b\": b\"bytes\"} is encoded thusly (with included comments): { // A dictionary with string keys is JSON-encodable. \"a\": [ // As is a list. 1, \"pipe\", { // A `range` is replaced with its pickle. \"__tdbudf__\": \"immediate\", \"format\": \"python_pickle\", \"base64_data\": \"gASVIAAAAAAAAACMCGJ1aWx0aW5zlIwFcmFuZ2WUk5RLAEseSwGHlFKULg==\" }, null ], \"b\": { // Raw binary data is encoded into base64. \"__tdbudf__\": \"immediate\" \"format\": \"bytes\", \"base64_data\": \"Ynl0ZXM=\" } } ") - public Object getUri() { return uri; } - public void setUri(Object uri) { this.uri = uri; } public TGArrayNodeData ranges(TGQueryRanges ranges) { - this.ranges = ranges; return this; } - /** + /** * Get ranges * @return ranges - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public TGQueryRanges getRanges() { return ranges; } - public void setRanges(TGQueryRanges ranges) { this.ranges = ranges; } public TGArrayNodeData buffers(Object buffers) { - this.buffers = buffers; return this; } - /** + /** * An argument provided to a node. This is one of a direct value (i.e., a raw JSON value) or a `TGSentinel`. For example this Python value: {\"a\": [1, \"pipe\", range(30), None], \"b\": b\"bytes\"} is encoded thusly (with included comments): { // A dictionary with string keys is JSON-encodable. \"a\": [ // As is a list. 1, \"pipe\", { // A `range` is replaced with its pickle. \"__tdbudf__\": \"immediate\", \"format\": \"python_pickle\", \"base64_data\": \"gASVIAAAAAAAAACMCGJ1aWx0aW5zlIwFcmFuZ2WUk5RLAEseSwGHlFKULg==\" }, null ], \"b\": { // Raw binary data is encoded into base64. \"__tdbudf__\": \"immediate\" \"format\": \"bytes\", \"base64_data\": \"Ynl0ZXM=\" } } * @return buffers - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "An argument provided to a node. This is one of a direct value (i.e., a raw JSON value) or a `TGSentinel`. For example this Python value: {\"a\": [1, \"pipe\", range(30), None], \"b\": b\"bytes\"} is encoded thusly (with included comments): { // A dictionary with string keys is JSON-encodable. \"a\": [ // As is a list. 1, \"pipe\", { // A `range` is replaced with its pickle. \"__tdbudf__\": \"immediate\", \"format\": \"python_pickle\", \"base64_data\": \"gASVIAAAAAAAAACMCGJ1aWx0aW5zlIwFcmFuZ2WUk5RLAEseSwGHlFKULg==\" }, null ], \"b\": { // Raw binary data is encoded into base64. \"__tdbudf__\": \"immediate\" \"format\": \"bytes\", \"base64_data\": \"Ynl0ZXM=\" } } ") - public Object getBuffers() { return buffers; } - public void setBuffers(Object buffers) { this.buffers = buffers; } @@ -135,6 +133,10 @@ public void setBuffers(Object buffers) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the TGArrayNodeData instance itself */ public TGArrayNodeData putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -146,6 +148,8 @@ public TGArrayNodeData putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -153,6 +157,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -220,23 +227,22 @@ private String toIndentedString(Object o) { 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 TGArrayNodeData - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (TGArrayNodeData.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to TGArrayNodeData + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!TGArrayNodeData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in TGArrayNodeData is not found in the empty JSON string", TGArrayNodeData.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `ranges` if (jsonObj.get("ranges") != null && !jsonObj.get("ranges").isJsonNull()) { - TGQueryRanges.validateJsonObject(jsonObj.getAsJsonObject("ranges")); + TGQueryRanges.validateJsonElement(jsonObj.get("ranges")); } } @@ -256,7 +262,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, TGArrayNodeData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -268,7 +274,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -277,8 +288,9 @@ else if (entry.getValue() instanceof Character) @Override public TGArrayNodeData read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance TGArrayNodeData instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -292,8 +304,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -304,22 +318,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of TGArrayNodeData given an JSON string - * - * @param jsonString JSON string - * @return An instance of TGArrayNodeData - * @throws IOException if the JSON string is invalid with respect to TGArrayNodeData - */ + /** + * Create an instance of TGArrayNodeData given an JSON string + * + * @param jsonString JSON string + * @return An instance of TGArrayNodeData + * @throws IOException if the JSON string is invalid with respect to TGArrayNodeData + */ public static TGArrayNodeData fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, TGArrayNodeData.class); } - /** - * Convert an instance of TGArrayNodeData to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of TGArrayNodeData 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/TGInputNodeData.java b/src/main/java/io/tiledb/cloud/rest_api/model/TGInputNodeData.java index 73c28c4..453929a 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). @@ -14,34 +14,43 @@ 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.JsonAdapter; 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.Arrays; import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class TGInputNodeData { public static final String SERIALIZED_NAME_DEFAULT_VALUE = "default_value"; @SerializedName(SERIALIZED_NAME_DEFAULT_VALUE) @@ -55,46 +64,38 @@ public TGInputNodeData() { } public TGInputNodeData defaultValue(Object defaultValue) { - this.defaultValue = defaultValue; return this; } - /** + /** * An argument provided to a node. This is one of a direct value (i.e., a raw JSON value) or a `TGSentinel`. For example this Python value: {\"a\": [1, \"pipe\", range(30), None], \"b\": b\"bytes\"} is encoded thusly (with included comments): { // A dictionary with string keys is JSON-encodable. \"a\": [ // As is a list. 1, \"pipe\", { // A `range` is replaced with its pickle. \"__tdbudf__\": \"immediate\", \"format\": \"python_pickle\", \"base64_data\": \"gASVIAAAAAAAAACMCGJ1aWx0aW5zlIwFcmFuZ2WUk5RLAEseSwGHlFKULg==\" }, null ], \"b\": { // Raw binary data is encoded into base64. \"__tdbudf__\": \"immediate\" \"format\": \"bytes\", \"base64_data\": \"Ynl0ZXM=\" } } * @return defaultValue - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "An argument provided to a node. This is one of a direct value (i.e., a raw JSON value) or a `TGSentinel`. For example this Python value: {\"a\": [1, \"pipe\", range(30), None], \"b\": b\"bytes\"} is encoded thusly (with included comments): { // A dictionary with string keys is JSON-encodable. \"a\": [ // As is a list. 1, \"pipe\", { // A `range` is replaced with its pickle. \"__tdbudf__\": \"immediate\", \"format\": \"python_pickle\", \"base64_data\": \"gASVIAAAAAAAAACMCGJ1aWx0aW5zlIwFcmFuZ2WUk5RLAEseSwGHlFKULg==\" }, null ], \"b\": { // Raw binary data is encoded into base64. \"__tdbudf__\": \"immediate\" \"format\": \"bytes\", \"base64_data\": \"Ynl0ZXM=\" } } ") - public Object getDefaultValue() { return defaultValue; } - public void setDefaultValue(Object defaultValue) { this.defaultValue = defaultValue; } public TGInputNodeData datatype(String datatype) { - this.datatype = datatype; return this; } - /** + /** * An annotation of what datatype this node is supposed to be. Conventionally, this is a Python-format type annotation, but it’s purely for documentation purposes and not validated. * @return datatype - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "An annotation of what datatype this node is supposed to be. Conventionally, this is a Python-format type annotation, but it’s purely for documentation purposes and not validated. ") - public String getDatatype() { return datatype; } - public void setDatatype(String datatype) { this.datatype = datatype; } @@ -109,6 +110,10 @@ public void setDatatype(String datatype) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the TGInputNodeData instance itself */ public TGInputNodeData putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -120,6 +125,8 @@ public TGInputNodeData putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -127,6 +134,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -202,20 +212,19 @@ private String toIndentedString(Object o) { 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 TGInputNodeData - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (TGInputNodeData.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to TGInputNodeData + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!TGInputNodeData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in TGInputNodeData is not found in the empty JSON string", TGInputNodeData.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("datatype") != null && !jsonObj.get("datatype").isJsonNull()) && !jsonObj.get("datatype").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `datatype` to be a primitive type in the JSON string but got `%s`", jsonObj.get("datatype").toString())); } @@ -237,7 +246,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, TGInputNodeData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -249,7 +258,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -258,8 +272,9 @@ else if (entry.getValue() instanceof Character) @Override public TGInputNodeData read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance TGInputNodeData instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -273,8 +288,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -285,22 +302,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of TGInputNodeData given an JSON string - * - * @param jsonString JSON string - * @return An instance of TGInputNodeData - * @throws IOException if the JSON string is invalid with respect to TGInputNodeData - */ + /** + * Create an instance of TGInputNodeData given an JSON string + * + * @param jsonString JSON string + * @return An instance of TGInputNodeData + * @throws IOException if the JSON string is invalid with respect to TGInputNodeData + */ public static TGInputNodeData fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, TGInputNodeData.class); } - /** - * Convert an instance of TGInputNodeData to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of TGInputNodeData 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/TGQueryRanges.java b/src/main/java/io/tiledb/cloud/rest_api/model/TGQueryRanges.java index 3738a69..30ef336 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,32 +14,43 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.Layout; import java.io.IOException; +import java.util.Arrays; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class TGQueryRanges { public static final String SERIALIZED_NAME_LAYOUT = "layout"; @SerializedName(SERIALIZED_NAME_LAYOUT) @@ -57,69 +68,57 @@ public TGQueryRanges() { } public TGQueryRanges layout(Layout layout) { - this.layout = layout; return this; } - /** + /** * Get layout * @return layout - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public Layout getLayout() { return layout; } - public void setLayout(Layout layout) { this.layout = layout; } public TGQueryRanges friendlyRanges(Object friendlyRanges) { - this.friendlyRanges = friendlyRanges; return this; } - /** + /** * An argument provided to a node. This is one of a direct value (i.e., a raw JSON value) or a `TGSentinel`. For example this Python value: {\"a\": [1, \"pipe\", range(30), None], \"b\": b\"bytes\"} is encoded thusly (with included comments): { // A dictionary with string keys is JSON-encodable. \"a\": [ // As is a list. 1, \"pipe\", { // A `range` is replaced with its pickle. \"__tdbudf__\": \"immediate\", \"format\": \"python_pickle\", \"base64_data\": \"gASVIAAAAAAAAACMCGJ1aWx0aW5zlIwFcmFuZ2WUk5RLAEseSwGHlFKULg==\" }, null ], \"b\": { // Raw binary data is encoded into base64. \"__tdbudf__\": \"immediate\" \"format\": \"bytes\", \"base64_data\": \"Ynl0ZXM=\" } } * @return friendlyRanges - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "An argument provided to a node. This is one of a direct value (i.e., a raw JSON value) or a `TGSentinel`. For example this Python value: {\"a\": [1, \"pipe\", range(30), None], \"b\": b\"bytes\"} is encoded thusly (with included comments): { // A dictionary with string keys is JSON-encodable. \"a\": [ // As is a list. 1, \"pipe\", { // A `range` is replaced with its pickle. \"__tdbudf__\": \"immediate\", \"format\": \"python_pickle\", \"base64_data\": \"gASVIAAAAAAAAACMCGJ1aWx0aW5zlIwFcmFuZ2WUk5RLAEseSwGHlFKULg==\" }, null ], \"b\": { // Raw binary data is encoded into base64. \"__tdbudf__\": \"immediate\" \"format\": \"bytes\", \"base64_data\": \"Ynl0ZXM=\" } } ") - public Object getFriendlyRanges() { return friendlyRanges; } - public void setFriendlyRanges(Object friendlyRanges) { this.friendlyRanges = friendlyRanges; } public TGQueryRanges ranges(Object ranges) { - this.ranges = ranges; return this; } - /** + /** * An argument provided to a node. This is one of a direct value (i.e., a raw JSON value) or a `TGSentinel`. For example this Python value: {\"a\": [1, \"pipe\", range(30), None], \"b\": b\"bytes\"} is encoded thusly (with included comments): { // A dictionary with string keys is JSON-encodable. \"a\": [ // As is a list. 1, \"pipe\", { // A `range` is replaced with its pickle. \"__tdbudf__\": \"immediate\", \"format\": \"python_pickle\", \"base64_data\": \"gASVIAAAAAAAAACMCGJ1aWx0aW5zlIwFcmFuZ2WUk5RLAEseSwGHlFKULg==\" }, null ], \"b\": { // Raw binary data is encoded into base64. \"__tdbudf__\": \"immediate\" \"format\": \"bytes\", \"base64_data\": \"Ynl0ZXM=\" } } * @return ranges - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "An argument provided to a node. This is one of a direct value (i.e., a raw JSON value) or a `TGSentinel`. For example this Python value: {\"a\": [1, \"pipe\", range(30), None], \"b\": b\"bytes\"} is encoded thusly (with included comments): { // A dictionary with string keys is JSON-encodable. \"a\": [ // As is a list. 1, \"pipe\", { // A `range` is replaced with its pickle. \"__tdbudf__\": \"immediate\", \"format\": \"python_pickle\", \"base64_data\": \"gASVIAAAAAAAAACMCGJ1aWx0aW5zlIwFcmFuZ2WUk5RLAEseSwGHlFKULg==\" }, null ], \"b\": { // Raw binary data is encoded into base64. \"__tdbudf__\": \"immediate\" \"format\": \"bytes\", \"base64_data\": \"Ynl0ZXM=\" } } ") - public Object getRanges() { return ranges; } - public void setRanges(Object ranges) { this.ranges = ranges; } @@ -134,6 +133,10 @@ public void setRanges(Object ranges) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the TGQueryRanges instance itself */ public TGQueryRanges putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -145,6 +148,8 @@ public TGQueryRanges putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -152,6 +157,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -219,20 +227,23 @@ private String toIndentedString(Object o) { 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 TGQueryRanges - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (TGQueryRanges.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to TGQueryRanges + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!TGQueryRanges.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in TGQueryRanges is not found in the empty JSON string", TGQueryRanges.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `layout` + if (jsonObj.get("layout") != null && !jsonObj.get("layout").isJsonNull()) { + Layout.validateJsonElement(jsonObj.get("layout")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -251,7 +262,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, TGQueryRanges value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -263,7 +274,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -272,8 +288,9 @@ else if (entry.getValue() instanceof Character) @Override public TGQueryRanges read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance TGQueryRanges instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -287,8 +304,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -299,22 +318,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of TGQueryRanges given an JSON string - * - * @param jsonString JSON string - * @return An instance of TGQueryRanges - * @throws IOException if the JSON string is invalid with respect to TGQueryRanges - */ + /** + * Create an instance of TGQueryRanges given an JSON string + * + * @param jsonString JSON string + * @return An instance of TGQueryRanges + * @throws IOException if the JSON string is invalid with respect to TGQueryRanges + */ public static TGQueryRanges fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, TGQueryRanges.class); } - /** - * Convert an instance of TGQueryRanges to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of TGQueryRanges 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/TGSQLNodeData.java b/src/main/java/io/tiledb/cloud/rest_api/model/TGSQLNodeData.java index 0c100b0..283243e 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). @@ -14,40 +14,50 @@ 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.JsonAdapter; 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 io.tiledb.cloud.rest_api.model.ResultFormat; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; 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.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; + +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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class TGSQLNodeData { public static final String SERIALIZED_NAME_INIT_COMMANDS = "init_commands"; @SerializedName(SERIALIZED_NAME_INIT_COMMANDS) - private List initCommands = null; + private List initCommands = new ArrayList<>(); public static final String SERIALIZED_NAME_QUERY = "query"; @SerializedName(SERIALIZED_NAME_QUERY) @@ -55,7 +65,7 @@ public class TGSQLNodeData { public static final String SERIALIZED_NAME_PARAMETERS = "parameters"; @SerializedName(SERIALIZED_NAME_PARAMETERS) - private List parameters = null; + private List parameters = new ArrayList<>(); public static final String SERIALIZED_NAME_RESULT_FORMAT = "result_format"; @SerializedName(SERIALIZED_NAME_RESULT_FORMAT) @@ -69,7 +79,6 @@ public TGSQLNodeData() { } public TGSQLNodeData initCommands(List initCommands) { - this.initCommands = initCommands; return this; } @@ -82,48 +91,40 @@ public TGSQLNodeData addInitCommandsItem(String initCommandsItem) { return this; } - /** + /** * The commands to execute before running the query itself. * @return initCommands - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The commands to execute before running the query itself.") - public List getInitCommands() { return initCommands; } - public void setInitCommands(List initCommands) { this.initCommands = initCommands; } public TGSQLNodeData query(String query) { - this.query = query; return this; } - /** + /** * The text of the SQL query to execute. Parameters are substituted in for `?`s, just as in a regular MariaDB query. * @return query - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The text of the SQL query to execute. Parameters are substituted in for `?`s, just as in a regular MariaDB query. ") - public String getQuery() { return query; } - public void setQuery(String query) { this.query = query; } public TGSQLNodeData parameters(List parameters) { - this.parameters = parameters; return this; } @@ -136,64 +137,53 @@ public TGSQLNodeData addParametersItem(Object parametersItem) { return this; } - /** + /** * The parameters to substitute in for arguments in the `query`. Fixed-length. Arguments must be in JSON format. * @return parameters - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The parameters to substitute in for arguments in the `query`. Fixed-length. Arguments must be in JSON format. ") - public List getParameters() { return parameters; } - public void setParameters(List parameters) { this.parameters = parameters; } public TGSQLNodeData resultFormat(ResultFormat resultFormat) { - this.resultFormat = resultFormat; return this; } - /** + /** * Get resultFormat * @return resultFormat - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public ResultFormat getResultFormat() { return resultFormat; } - public void setResultFormat(ResultFormat resultFormat) { this.resultFormat = resultFormat; } public TGSQLNodeData namespace(String namespace) { - this.namespace = namespace; return this; } - /** + /** * If set, the non-default namespace to execute this SQL query under. * @return namespace - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "If set, the non-default namespace to execute this SQL query under. ") - public String getNamespace() { return namespace; } - public void setNamespace(String namespace) { this.namespace = namespace; } @@ -208,6 +198,10 @@ public void setNamespace(String namespace) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the TGSQLNodeData instance itself */ public TGSQLNodeData putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -219,6 +213,8 @@ public TGSQLNodeData putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -226,6 +222,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -310,31 +309,34 @@ private String toIndentedString(Object o) { 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 TGSQLNodeData - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (TGSQLNodeData.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to TGSQLNodeData + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!TGSQLNodeData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in TGSQLNodeData is not found in the empty JSON string", TGSQLNodeData.openapiRequiredFields.toString())); } } - // ensure the json data is an array - if ((jsonObj.get("init_commands") != null && !jsonObj.get("init_commands").isJsonNull()) && !jsonObj.get("init_commands").isJsonArray()) { + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("init_commands") != null && !jsonObj.get("init_commands").isJsonNull() && !jsonObj.get("init_commands").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `init_commands` to be an array in the JSON string but got `%s`", jsonObj.get("init_commands").toString())); } if ((jsonObj.get("query") != null && !jsonObj.get("query").isJsonNull()) && !jsonObj.get("query").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `query` to be a primitive type in the JSON string but got `%s`", jsonObj.get("query").toString())); } - // ensure the json data is an array - if ((jsonObj.get("parameters") != null && !jsonObj.get("parameters").isJsonNull()) && !jsonObj.get("parameters").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("parameters") != null && !jsonObj.get("parameters").isJsonNull() && !jsonObj.get("parameters").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `parameters` to be an array in the JSON string but got `%s`", jsonObj.get("parameters").toString())); } + // validate the optional field `result_format` + if (jsonObj.get("result_format") != null && !jsonObj.get("result_format").isJsonNull()) { + ResultFormat.validateJsonElement(jsonObj.get("result_format")); + } 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())); } @@ -356,7 +358,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, TGSQLNodeData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -368,7 +370,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -377,8 +384,9 @@ else if (entry.getValue() instanceof Character) @Override public TGSQLNodeData read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance TGSQLNodeData instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -392,8 +400,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -404,22 +414,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of TGSQLNodeData given an JSON string - * - * @param jsonString JSON string - * @return An instance of TGSQLNodeData - * @throws IOException if the JSON string is invalid with respect to TGSQLNodeData - */ + /** + * Create an instance of TGSQLNodeData given an JSON string + * + * @param jsonString JSON string + * @return An instance of TGSQLNodeData + * @throws IOException if the JSON string is invalid with respect to TGSQLNodeData + */ public static TGSQLNodeData fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, TGSQLNodeData.class); } - /** - * Convert an instance of TGSQLNodeData to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of TGSQLNodeData 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/TGUDFArgument.java b/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFArgument.java index 5ee6ce5..1209bb1 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). @@ -14,34 +14,43 @@ 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.JsonAdapter; 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 io.tiledb.cloud.rest_api.JSON; +import java.util.Arrays; import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; + +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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class TGUDFArgument { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -55,46 +64,38 @@ public TGUDFArgument() { } public TGUDFArgument name(String name) { - this.name = name; return this; } - /** + /** * The name of the argument, if present. * @return name - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The name of the argument, if present.") - public String getName() { return name; } - public void setName(String name) { this.name = name; } public TGUDFArgument value(Object value) { - this.value = value; return this; } - /** + /** * An argument provided to a node. This is one of a direct value (i.e., a raw JSON value) or a `TGSentinel`. For example this Python value: {\"a\": [1, \"pipe\", range(30), None], \"b\": b\"bytes\"} is encoded thusly (with included comments): { // A dictionary with string keys is JSON-encodable. \"a\": [ // As is a list. 1, \"pipe\", { // A `range` is replaced with its pickle. \"__tdbudf__\": \"immediate\", \"format\": \"python_pickle\", \"base64_data\": \"gASVIAAAAAAAAACMCGJ1aWx0aW5zlIwFcmFuZ2WUk5RLAEseSwGHlFKULg==\" }, null ], \"b\": { // Raw binary data is encoded into base64. \"__tdbudf__\": \"immediate\" \"format\": \"bytes\", \"base64_data\": \"Ynl0ZXM=\" } } * @return value - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "An argument provided to a node. This is one of a direct value (i.e., a raw JSON value) or a `TGSentinel`. For example this Python value: {\"a\": [1, \"pipe\", range(30), None], \"b\": b\"bytes\"} is encoded thusly (with included comments): { // A dictionary with string keys is JSON-encodable. \"a\": [ // As is a list. 1, \"pipe\", { // A `range` is replaced with its pickle. \"__tdbudf__\": \"immediate\", \"format\": \"python_pickle\", \"base64_data\": \"gASVIAAAAAAAAACMCGJ1aWx0aW5zlIwFcmFuZ2WUk5RLAEseSwGHlFKULg==\" }, null ], \"b\": { // Raw binary data is encoded into base64. \"__tdbudf__\": \"immediate\" \"format\": \"bytes\", \"base64_data\": \"Ynl0ZXM=\" } } ") - public Object getValue() { return value; } - public void setValue(Object value) { this.value = value; } @@ -109,6 +110,10 @@ public void setValue(Object value) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the TGUDFArgument instance itself */ public TGUDFArgument putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -120,6 +125,8 @@ public TGUDFArgument putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -127,6 +134,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -202,20 +212,19 @@ private String toIndentedString(Object o) { 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 TGUDFArgument - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (TGUDFArgument.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to TGUDFArgument + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!TGUDFArgument.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in TGUDFArgument is not found in the empty JSON string", TGUDFArgument.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); } @@ -237,7 +246,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, TGUDFArgument value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -249,7 +258,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -258,8 +272,9 @@ else if (entry.getValue() instanceof Character) @Override public TGUDFArgument read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance TGUDFArgument instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -273,8 +288,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -285,22 +302,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of TGUDFArgument given an JSON string - * - * @param jsonString JSON string - * @return An instance of TGUDFArgument - * @throws IOException if the JSON string is invalid with respect to TGUDFArgument - */ + /** + * Create an instance of TGUDFArgument given an JSON string + * + * @param jsonString JSON string + * @return An instance of TGUDFArgument + * @throws IOException if the JSON string is invalid with respect to TGUDFArgument + */ public static TGUDFArgument fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, TGUDFArgument.class); } - /** - * Convert an instance of TGUDFArgument to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of TGUDFArgument 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/TGUDFEnvironment.java b/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironment.java index 7b0a305..456d59b 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). @@ -14,35 +14,48 @@ 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.JsonAdapter; 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 io.tiledb.cloud.rest_api.model.TGUDFEnvironmentResources; +import io.tiledb.cloud.rest_api.model.UDFLanguage; import java.io.IOException; import java.math.BigDecimal; - -import io.tiledb.cloud.rest_api.JSON; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; + +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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class TGUDFEnvironment { public static final String SERIALIZED_NAME_LANGUAGE = "language"; @SerializedName(SERIALIZED_NAME_LANGUAGE) @@ -80,215 +93,210 @@ public class TGUDFEnvironment { @SerializedName(SERIALIZED_NAME_TIMEOUT) private BigDecimal timeout; + public static final String SERIALIZED_NAME_PATHS = "paths"; + @SerializedName(SERIALIZED_NAME_PATHS) + private List paths = new ArrayList<>(); + public TGUDFEnvironment() { } public TGUDFEnvironment language(UDFLanguage language) { - this.language = language; return this; } - /** + /** * Get language * @return language - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public UDFLanguage getLanguage() { return language; } - public void setLanguage(UDFLanguage language) { this.language = language; } public TGUDFEnvironment languageVersion(String languageVersion) { - this.languageVersion = languageVersion; return this; } - /** + /** * The language version used to execute this UDF. Neither this nor `language` needs to be set for registered UDFs, since the language and version are stored server-side with the UDF itself. * @return languageVersion - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The language version used to execute this UDF. Neither this nor `language` needs to be set for registered UDFs, since the language and version are stored server-side with the UDF itself. ") - public String getLanguageVersion() { return languageVersion; } - public void setLanguageVersion(String languageVersion) { this.languageVersion = languageVersion; } public TGUDFEnvironment imageName(String imageName) { - this.imageName = imageName; return this; } - /** + /** * The name of the image to use for the execution environment. * @return imageName - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The name of the image to use for the execution environment. ") - public String getImageName() { return imageName; } - public void setImageName(String imageName) { this.imageName = imageName; } public TGUDFEnvironment accessCredentialsName(String accessCredentialsName) { - this.accessCredentialsName = accessCredentialsName; return this; } - /** + /** * The name of the access credentials to use. if unset, no credentials will be configured in the environment. * @return accessCredentialsName - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The name of the access credentials to use. if unset, no credentials will be configured in the environment. ") - public String getAccessCredentialsName() { return accessCredentialsName; } - public void setAccessCredentialsName(String accessCredentialsName) { this.accessCredentialsName = accessCredentialsName; } public TGUDFEnvironment namespace(String namespace) { - this.namespace = namespace; return this; } - /** + /** * If set, the non-default namespace to execute this UDF under (and to query any Array Nodes that are used as inputs to this UDF). * @return namespace - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "If set, the non-default namespace to execute this UDF under (and to query any Array Nodes that are used as inputs to this UDF). ") - public String getNamespace() { return namespace; } - public void setNamespace(String namespace) { this.namespace = namespace; } public TGUDFEnvironment resourceClass(String resourceClass) { - this.resourceClass = resourceClass; return this; } - /** + /** * The resource class to use for the UDF execution. Resource classes define resource limits for memory and CPUs. If this is empty, then the UDF will execute in the standard resource class of the TileDB Cloud provider. * @return resourceClass - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The resource class to use for the UDF execution. Resource classes define resource limits for memory and CPUs. If this is empty, then the UDF will execute in the standard resource class of the TileDB Cloud provider. ") - public String getResourceClass() { return resourceClass; } - public void setResourceClass(String resourceClass) { this.resourceClass = resourceClass; } public TGUDFEnvironment resources(TGUDFEnvironmentResources resources) { - this.resources = resources; return this; } - /** + /** * Get resources * @return resources - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public TGUDFEnvironmentResources getResources() { return resources; } - public void setResources(TGUDFEnvironmentResources resources) { this.resources = resources; } public TGUDFEnvironment runClientSide(Boolean runClientSide) { - this.runClientSide = runClientSide; return this; } - /** + /** * 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. * @return runClientSide - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "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. ") - public Boolean getRunClientSide() { return runClientSide; } - public void setRunClientSide(Boolean runClientSide) { this.runClientSide = runClientSide; } public TGUDFEnvironment timeout(BigDecimal timeout) { - this.timeout = timeout; return this; } - /** + /** * 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). * @return timeout - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "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). ") - public BigDecimal getTimeout() { return timeout; } - public void setTimeout(BigDecimal timeout) { this.timeout = timeout; } + + public TGUDFEnvironment paths(List paths) { + this.paths = paths; + return this; + } + + public TGUDFEnvironment addPathsItem(Object pathsItem) { + if (this.paths == null) { + this.paths = new ArrayList<>(); + } + this.paths.add(pathsItem); + return this; + } + + /** + * Mapping for storage paths to mount + * @return paths + */ + @javax.annotation.Nullable + public List getPaths() { + return paths; + } + + public void setPaths(List paths) { + this.paths = paths; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -299,6 +307,10 @@ public void setTimeout(BigDecimal timeout) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the TGUDFEnvironment instance itself */ public TGUDFEnvironment putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -310,6 +322,8 @@ public TGUDFEnvironment putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -317,6 +331,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -343,7 +360,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.paths, tgUDFEnvironment.paths)&& Objects.equals(this.additionalProperties, tgUDFEnvironment.additionalProperties); } @@ -353,7 +371,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, paths, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -376,6 +394,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(" paths: ").append(toIndentedString(paths)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -408,24 +427,28 @@ private String toIndentedString(Object o) { openapiFields.add("resources"); openapiFields.add("run_client_side"); openapiFields.add("timeout"); + openapiFields.add("paths"); // 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 TGUDFEnvironment - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (TGUDFEnvironment.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to TGUDFEnvironment + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!TGUDFEnvironment.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in TGUDFEnvironment is not found in the empty JSON string", TGUDFEnvironment.openapiRequiredFields.toString())); } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `language` + if (jsonObj.get("language") != null && !jsonObj.get("language").isJsonNull()) { + UDFLanguage.validateJsonElement(jsonObj.get("language")); } if ((jsonObj.get("language_version") != null && !jsonObj.get("language_version").isJsonNull()) && !jsonObj.get("language_version").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `language_version` to be a primitive type in the JSON string but got `%s`", jsonObj.get("language_version").toString())); @@ -444,7 +467,11 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { } // validate the optional field `resources` if (jsonObj.get("resources") != null && !jsonObj.get("resources").isJsonNull()) { - TGUDFEnvironmentResources.validateJsonObject(jsonObj.getAsJsonObject("resources")); + TGUDFEnvironmentResources.validateJsonElement(jsonObj.get("resources")); + } + // ensure the optional json data is an array if present + if (jsonObj.get("paths") != null && !jsonObj.get("paths").isJsonNull() && !jsonObj.get("paths").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `paths` to be an array in the JSON string but got `%s`", jsonObj.get("paths").toString())); } } @@ -464,7 +491,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, TGUDFEnvironment value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -476,7 +503,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -485,8 +517,9 @@ else if (entry.getValue() instanceof Character) @Override public TGUDFEnvironment read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance TGUDFEnvironment instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -500,8 +533,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -512,22 +547,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of TGUDFEnvironment given an JSON string - * - * @param jsonString JSON string - * @return An instance of TGUDFEnvironment - * @throws IOException if the JSON string is invalid with respect to TGUDFEnvironment - */ + /** + * Create an instance of TGUDFEnvironment given an JSON string + * + * @param jsonString JSON string + * @return An instance of TGUDFEnvironment + * @throws IOException if the JSON string is invalid with respect to TGUDFEnvironment + */ public static TGUDFEnvironment fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, TGUDFEnvironment.class); } - /** - * Convert an instance of TGUDFEnvironment to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of TGUDFEnvironment 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/TGUDFEnvironmentResources.java b/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironmentResources.java index 07233d7..26b8868 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,33 +14,42 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.Arrays; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; 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]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class TGUDFEnvironmentResources { public static final String SERIALIZED_NAME_CPU = "cpu"; @SerializedName(SERIALIZED_NAME_CPU) @@ -58,69 +67,57 @@ public TGUDFEnvironmentResources() { } public TGUDFEnvironmentResources cpu(String cpu) { - this.cpu = cpu; return this; } - /** + /** * Get cpu * @return cpu - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "500m", value = "") - public String getCpu() { return cpu; } - public void setCpu(String cpu) { this.cpu = cpu; } public TGUDFEnvironmentResources memory(String memory) { - this.memory = memory; return this; } - /** + /** * Get memory * @return memory - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "8Gi", value = "") - public String getMemory() { return memory; } - public void setMemory(String memory) { this.memory = memory; } public TGUDFEnvironmentResources gpu(Integer gpu) { - this.gpu = gpu; return this; } - /** + /** * Get gpu * @return gpu - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "1", value = "") - public Integer getGpu() { return gpu; } - public void setGpu(Integer gpu) { this.gpu = gpu; } @@ -135,6 +132,10 @@ public void setGpu(Integer gpu) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the TGUDFEnvironmentResources instance itself */ public TGUDFEnvironmentResources putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -146,6 +147,8 @@ public TGUDFEnvironmentResources putAdditionalProperty(String key, Object value) /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -153,6 +156,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -220,20 +226,19 @@ private String toIndentedString(Object o) { 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 TGUDFEnvironmentResources - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (TGUDFEnvironmentResources.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to TGUDFEnvironmentResources + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!TGUDFEnvironmentResources.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in TGUDFEnvironmentResources is not found in the empty JSON string", TGUDFEnvironmentResources.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("cpu") != null && !jsonObj.get("cpu").isJsonNull()) && !jsonObj.get("cpu").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `cpu` to be a primitive type in the JSON string but got `%s`", jsonObj.get("cpu").toString())); } @@ -258,7 +263,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, TGUDFEnvironmentResources value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -270,7 +275,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -279,8 +289,9 @@ else if (entry.getValue() instanceof Character) @Override public TGUDFEnvironmentResources read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance TGUDFEnvironmentResources instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -294,8 +305,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -306,22 +319,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of TGUDFEnvironmentResources given an JSON string - * - * @param jsonString JSON string - * @return An instance of TGUDFEnvironmentResources - * @throws IOException if the JSON string is invalid with respect to TGUDFEnvironmentResources - */ + /** + * Create an instance of TGUDFEnvironmentResources given an JSON string + * + * @param jsonString JSON string + * @return An instance of TGUDFEnvironmentResources + * @throws IOException if the JSON string is invalid with respect to TGUDFEnvironmentResources + */ public static TGUDFEnvironmentResources fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, TGUDFEnvironmentResources.class); } - /** - * Convert an instance of TGUDFEnvironmentResources to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of TGUDFEnvironmentResources 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/TGUDFNodeData.java b/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFNodeData.java index 983fb76..7097528 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). @@ -14,37 +14,48 @@ 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.JsonAdapter; 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 io.tiledb.cloud.rest_api.model.ResultFormat; +import io.tiledb.cloud.rest_api.model.TGUDFArgument; +import io.tiledb.cloud.rest_api.model.TGUDFEnvironment; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; 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.GsonBuilder; import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; + +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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class TGUDFNodeData { public static final String SERIALIZED_NAME_REGISTERED_UDF_NAME = "registered_udf_name"; @SerializedName(SERIALIZED_NAME_REGISTERED_UDF_NAME) @@ -64,7 +75,7 @@ public class TGUDFNodeData { public static final String SERIALIZED_NAME_ARGUMENTS = "arguments"; @SerializedName(SERIALIZED_NAME_ARGUMENTS) - private List arguments = null; + private List arguments = new ArrayList<>(); public static final String SERIALIZED_NAME_RESULT_FORMAT = "result_format"; @SerializedName(SERIALIZED_NAME_RESULT_FORMAT) @@ -74,99 +85,82 @@ public TGUDFNodeData() { } public TGUDFNodeData registeredUdfName(String registeredUdfName) { - this.registeredUdfName = registeredUdfName; return this; } - /** + /** * If set, the name of the registered UDF to execute, in the format `namespace/name`. Either this or `executable_code` should be set, but not both. * @return registeredUdfName - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "If set, the name of the registered UDF to execute, in the format `namespace/name`. Either this or `executable_code` should be set, but not both. ") - public String getRegisteredUdfName() { return registeredUdfName; } - public void setRegisteredUdfName(String registeredUdfName) { this.registeredUdfName = registeredUdfName; } public TGUDFNodeData executableCode(String executableCode) { - this.executableCode = executableCode; return this; } - /** + /** * If set, the base64 serialization of the code for this step, encoded in a language-specific format (e.g. Pickle for Python, serialization for R). * @return executableCode - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "If set, the base64 serialization of the code for this step, encoded in a language-specific format (e.g. Pickle for Python, serialization for R). ") - public String getExecutableCode() { return executableCode; } - public void setExecutableCode(String executableCode) { this.executableCode = executableCode; } public TGUDFNodeData sourceText(String sourceText) { - this.sourceText = sourceText; return this; } - /** + /** * Optionally, the source text for the code passed in `executable_code`. *For reference only; only the code in `executable_code` is actually executed.* This will be included in activity logs and may be useful for debugging. * @return sourceText - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Optionally, the source text for the code passed in `executable_code`. *For reference only; only the code in `executable_code` is actually executed.* This will be included in activity logs and may be useful for debugging. ") - public String getSourceText() { return sourceText; } - public void setSourceText(String sourceText) { this.sourceText = sourceText; } public TGUDFNodeData environment(TGUDFEnvironment environment) { - this.environment = environment; return this; } - /** + /** * Get environment * @return environment - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public TGUDFEnvironment getEnvironment() { return environment; } - public void setEnvironment(TGUDFEnvironment environment) { this.environment = environment; } public TGUDFNodeData arguments(List arguments) { - this.arguments = arguments; return this; } @@ -179,41 +173,34 @@ public TGUDFNodeData addArgumentsItem(TGUDFArgument argumentsItem) { return this; } - /** + /** * The arguments to a UDF function. This encompasses both named and positional arguments. The format is designed to provide compatibility across languages like Python which have a fairly traditional split between positional arguments and named arguments, and languages like R which has a rather unique way of specifying arguments. For Python (and most other languages), all positional arguments will come before all named arguments (if any are present): // fn(arg1, arg2, arg3) [ {value: arg1}, {value: arg2}, {value: arg3}, ] // fn(arg1, arg2, n=kw1, a=kw2) [ {value: arg1}, {value: arg2}, {name: \"n\", value: kw1}, {name: \"a\", value: kw2}, ] // fn(kw=k1, only=k2) [ {name: \"kw\", value: k1}, {name: \"only\", value: k2}, ] However, in R, named and positional arguments may be intermixed freely: // fn(arg, n=kw1, arg2) [ {value: arg}, {name: \"n\", value: kw1}, {value: arg2}, ] * @return arguments - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The arguments to a UDF function. This encompasses both named and positional arguments. The format is designed to provide compatibility across languages like Python which have a fairly traditional split between positional arguments and named arguments, and languages like R which has a rather unique way of specifying arguments. For Python (and most other languages), all positional arguments will come before all named arguments (if any are present): // fn(arg1, arg2, arg3) [ {value: arg1}, {value: arg2}, {value: arg3}, ] // fn(arg1, arg2, n=kw1, a=kw2) [ {value: arg1}, {value: arg2}, {name: \"n\", value: kw1}, {name: \"a\", value: kw2}, ] // fn(kw=k1, only=k2) [ {name: \"kw\", value: k1}, {name: \"only\", value: k2}, ] However, in R, named and positional arguments may be intermixed freely: // fn(arg, n=kw1, arg2) [ {value: arg}, {name: \"n\", value: kw1}, {value: arg2}, ] ") - public List getArguments() { return arguments; } - public void setArguments(List arguments) { this.arguments = arguments; } public TGUDFNodeData resultFormat(ResultFormat resultFormat) { - this.resultFormat = resultFormat; return this; } - /** + /** * Get resultFormat * @return resultFormat - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public ResultFormat getResultFormat() { return resultFormat; } - public void setResultFormat(ResultFormat resultFormat) { this.resultFormat = resultFormat; } @@ -228,6 +215,10 @@ public void setResultFormat(ResultFormat resultFormat) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the TGUDFNodeData instance itself */ public TGUDFNodeData putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -239,6 +230,8 @@ public TGUDFNodeData putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -246,6 +239,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -333,20 +329,19 @@ private String toIndentedString(Object o) { 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 TGUDFNodeData - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (TGUDFNodeData.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to TGUDFNodeData + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!TGUDFNodeData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in TGUDFNodeData is not found in the empty JSON string", TGUDFNodeData.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("registered_udf_name") != null && !jsonObj.get("registered_udf_name").isJsonNull()) && !jsonObj.get("registered_udf_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `registered_udf_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("registered_udf_name").toString())); } @@ -358,19 +353,25 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { } // validate the optional field `environment` if (jsonObj.get("environment") != null && !jsonObj.get("environment").isJsonNull()) { - TGUDFEnvironment.validateJsonObject(jsonObj.getAsJsonObject("environment")); + TGUDFEnvironment.validateJsonElement(jsonObj.get("environment")); } - JsonArray jsonArrayarguments = jsonObj.getAsJsonArray("arguments"); - if (jsonArrayarguments != null) { - // ensure the json data is an array - if (!jsonObj.get("arguments").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `arguments` to be an array in the JSON string but got `%s`", jsonObj.get("arguments").toString())); + if (jsonObj.get("arguments") != null && !jsonObj.get("arguments").isJsonNull()) { + JsonArray jsonArrayarguments = jsonObj.getAsJsonArray("arguments"); + if (jsonArrayarguments != null) { + // ensure the json data is an array + if (!jsonObj.get("arguments").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `arguments` to be an array in the JSON string but got `%s`", jsonObj.get("arguments").toString())); + } + + // validate the optional field `arguments` (array) + for (int i = 0; i < jsonArrayarguments.size(); i++) { + TGUDFArgument.validateJsonElement(jsonArrayarguments.get(i)); + }; } - - // validate the optional field `arguments` (array) - for (int i = 0; i < jsonArrayarguments.size(); i++) { - TGUDFArgument.validateJsonObject(jsonArrayarguments.get(i).getAsJsonObject()); - }; + } + // validate the optional field `result_format` + if (jsonObj.get("result_format") != null && !jsonObj.get("result_format").isJsonNull()) { + ResultFormat.validateJsonElement(jsonObj.get("result_format")); } } @@ -390,7 +391,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, TGUDFNodeData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -402,7 +403,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -411,8 +417,9 @@ else if (entry.getValue() instanceof Character) @Override public TGUDFNodeData read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance TGUDFNodeData instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -426,8 +433,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -438,22 +447,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of TGUDFNodeData given an JSON string - * - * @param jsonString JSON string - * @return An instance of TGUDFNodeData - * @throws IOException if the JSON string is invalid with respect to TGUDFNodeData - */ + /** + * Create an instance of TGUDFNodeData given an JSON string + * + * @param jsonString JSON string + * @return An instance of TGUDFNodeData + * @throws IOException if the JSON string is invalid with respect to TGUDFNodeData + */ public static TGUDFNodeData fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, TGUDFNodeData.class); } - /** - * Convert an instance of TGUDFNodeData to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of TGUDFNodeData 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/TGUDFStorage.java b/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFStorage.java new file mode 100644 index 0000000..3f0e1b3 --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFStorage.java @@ -0,0 +1,342 @@ +/* + * 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.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.tiledb.cloud.rest_api.JSON; + +/** + * Storage mount details + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") +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 Integer 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 + * @return path + */ + @javax.annotation.Nullable + public String getPath() { + return path; + } + + public void setPath(String path) { + this.path = path; + } + + + public TGUDFStorage size(Integer size) { + this.size = size; + return this; + } + + /** + * storage size in bytes + * @return size + */ + @javax.annotation.Nullable + public Integer getSize() { + return size; + } + + public void setSize(Integer size) { + this.size = size; + } + + + public TGUDFStorage storageClass(String storageClass) { + this.storageClass = storageClass; + return this; + } + + /** + * storage class + * @return storageClass + */ + @javax.annotation.Nullable + 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. + * + * @param key name of the property + * @param value value of the property + * @return the TGUDFStorage instance itself + */ + 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. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + 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 Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to TGUDFStorage + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!TGUDFStorage.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in TGUDFStorage is not found in the empty JSON string", TGUDFStorage.openapiRequiredFields.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + 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("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 additional 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 { + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public TGUDFStorage read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // 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 if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + 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..fba920d 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). @@ -14,38 +14,49 @@ 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.JsonAdapter; 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 io.tiledb.cloud.rest_api.model.RetryStrategy; +import io.tiledb.cloud.rest_api.model.TaskGraphNode; +import io.tiledb.cloud.rest_api.model.TaskGraphType; import java.io.IOException; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.Arrays; 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.GsonBuilder; import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; + +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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class TaskGraph { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) @@ -69,7 +80,7 @@ public class TaskGraph { public static final String SERIALIZED_NAME_NODES = "nodes"; @SerializedName(SERIALIZED_NAME_NODES) - private List nodes = null; + private List nodes = new ArrayList<>(); public static final String SERIALIZED_NAME_PARALLELISM = "parallelism"; @SerializedName(SERIALIZED_NAME_PARALLELISM) @@ -90,7 +101,6 @@ public class TaskGraph { public TaskGraph() { } - public TaskGraph( String uuid, String createdBy, @@ -102,96 +112,78 @@ public TaskGraph( this.createdAt = createdAt; } - /** + /** * The server-generated UUID of the task graph. * @return uuid - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The server-generated UUID of the task graph.") - public String getUuid() { return uuid; } - public TaskGraph namespace(String namespace) { - this.namespace = namespace; return this; } - /** + /** * The namespace that owns this task graph. When creating a task graph log, this is used as the namespace to create the log in; thereafter it is read-only. * @return namespace - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The namespace that owns this task graph. When creating a task graph log, this is used as the namespace to create the log in; thereafter it is read-only. ") - public String getNamespace() { return namespace; } - public void setNamespace(String namespace) { this.namespace = namespace; } - /** + /** * The name of the user who created this task graph log. * @return createdBy - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The name of the user who created this task graph log.") - public String getCreatedBy() { return createdBy; } - public TaskGraph name(String name) { - this.name = name; return this; } - /** + /** * A name for this task graph, displayed in the UI. Does not need to be unique. * @return name - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "A name for this task graph, displayed in the UI. Does not need to be unique. ") - public String getName() { return name; } - public void setName(String name) { this.name = name; } - /** + /** * The date/time when this task graph was originally created. * @return createdAt - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The date/time when this task graph was originally created. ") - public OffsetDateTime getCreatedAt() { return createdAt; } - public TaskGraph nodes(List nodes) { - this.nodes = nodes; return this; } @@ -204,110 +196,91 @@ public TaskGraph addNodesItem(TaskGraphNode nodesItem) { return this; } - /** - * 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. ") - public List getNodes() { return nodes; } - public void setNodes(List nodes) { this.nodes = nodes; } public TaskGraph parallelism(Long parallelism) { - this.parallelism = parallelism; return this; } - /** + /** * Parallelism limits the max total parallel pods that can execute at the same time in a workflow. * @return parallelism - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Parallelism limits the max total parallel pods that can execute at the same time in a workflow. ") - public Long getParallelism() { return parallelism; } - public void setParallelism(Long parallelism) { this.parallelism = parallelism; } public TaskGraph retryStrategy(RetryStrategy retryStrategy) { - this.retryStrategy = retryStrategy; return this; } - /** + /** * Get retryStrategy * @return retryStrategy - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public RetryStrategy getRetryStrategy() { return retryStrategy; } - public void setRetryStrategy(RetryStrategy retryStrategy) { this.retryStrategy = retryStrategy; } public TaskGraph deadline(Long deadline) { - this.deadline = deadline; return this; } - /** - * 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. ") - public Long getDeadline() { return deadline; } - public void setDeadline(Long deadline) { this.deadline = deadline; } public TaskGraph taskGraphType(TaskGraphType taskGraphType) { - this.taskGraphType = taskGraphType; return this; } - /** + /** * Get taskGraphType * @return taskGraphType - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public TaskGraphType getTaskGraphType() { return taskGraphType; } - public void setTaskGraphType(TaskGraphType taskGraphType) { this.taskGraphType = taskGraphType; } @@ -322,6 +295,10 @@ public void setTaskGraphType(TaskGraphType taskGraphType) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the TaskGraph instance itself */ public TaskGraph putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -333,6 +310,8 @@ public TaskGraph putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -340,6 +319,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -439,20 +421,19 @@ private String toIndentedString(Object o) { 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 TaskGraph - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (TaskGraph.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to TaskGraph + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!TaskGraph.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in TaskGraph is not found in the empty JSON string", TaskGraph.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); } @@ -465,21 +446,27 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { 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())); } - JsonArray jsonArraynodes = jsonObj.getAsJsonArray("nodes"); - if (jsonArraynodes != null) { - // ensure the json data is an array - if (!jsonObj.get("nodes").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `nodes` to be an array in the JSON string but got `%s`", jsonObj.get("nodes").toString())); + if (jsonObj.get("nodes") != null && !jsonObj.get("nodes").isJsonNull()) { + JsonArray jsonArraynodes = jsonObj.getAsJsonArray("nodes"); + if (jsonArraynodes != null) { + // ensure the json data is an array + if (!jsonObj.get("nodes").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `nodes` to be an array in the JSON string but got `%s`", jsonObj.get("nodes").toString())); + } + + // validate the optional field `nodes` (array) + for (int i = 0; i < jsonArraynodes.size(); i++) { + TaskGraphNode.validateJsonElement(jsonArraynodes.get(i)); + }; } - - // validate the optional field `nodes` (array) - for (int i = 0; i < jsonArraynodes.size(); i++) { - TaskGraphNode.validateJsonObject(jsonArraynodes.get(i).getAsJsonObject()); - }; } // validate the optional field `retry_strategy` if (jsonObj.get("retry_strategy") != null && !jsonObj.get("retry_strategy").isJsonNull()) { - RetryStrategy.validateJsonObject(jsonObj.getAsJsonObject("retry_strategy")); + RetryStrategy.validateJsonElement(jsonObj.get("retry_strategy")); + } + // validate the optional field `task_graph_type` + if (jsonObj.get("task_graph_type") != null && !jsonObj.get("task_graph_type").isJsonNull()) { + TaskGraphType.validateJsonElement(jsonObj.get("task_graph_type")); } } @@ -499,7 +486,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, TaskGraph value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -511,7 +498,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -520,8 +512,9 @@ else if (entry.getValue() instanceof Character) @Override public TaskGraph read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance TaskGraph instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -535,8 +528,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -547,22 +542,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of TaskGraph given an JSON string - * - * @param jsonString JSON string - * @return An instance of TaskGraph - * @throws IOException if the JSON string is invalid with respect to TaskGraph - */ + /** + * Create an instance of TaskGraph given an JSON string + * + * @param jsonString JSON string + * @return An instance of TaskGraph + * @throws IOException if the JSON string is invalid with respect to TaskGraph + */ public static TaskGraph fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, TaskGraph.class); } - /** - * Convert an instance of TaskGraph to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of TaskGraph 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/TaskGraphActions.java b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphActions.java index 9474456..9ab8160 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,8 +13,12 @@ package io.tiledb.cloud.rest_api.model; +import java.util.Objects; +import com.google.gson.annotations.SerializedName; + import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -65,5 +69,10 @@ public TaskGraphActions read(final JsonReader jsonReader) throws IOException { return TaskGraphActions.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + TaskGraphActions.fromValue(value); + } } 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..5356fb4 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,33 +14,43 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.ArrayTaskStatus; import java.io.IOException; +import java.util.Arrays; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class TaskGraphClientNodeStatus { public static final String SERIALIZED_NAME_CLIENT_NODE_UUID = "client_node_uuid"; @SerializedName(SERIALIZED_NAME_CLIENT_NODE_UUID) @@ -54,46 +64,38 @@ public TaskGraphClientNodeStatus() { } public TaskGraphClientNodeStatus clientNodeUuid(String clientNodeUuid) { - this.clientNodeUuid = clientNodeUuid; return this; } - /** + /** * Get clientNodeUuid * @return clientNodeUuid - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public String getClientNodeUuid() { return clientNodeUuid; } - public void setClientNodeUuid(String clientNodeUuid) { this.clientNodeUuid = clientNodeUuid; } public TaskGraphClientNodeStatus status(ArrayTaskStatus status) { - this.status = status; return this; } - /** + /** * Get status * @return status - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public ArrayTaskStatus getStatus() { return status; } - public void setStatus(ArrayTaskStatus status) { this.status = status; } @@ -108,6 +110,10 @@ public void setStatus(ArrayTaskStatus status) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the TaskGraphClientNodeStatus instance itself */ public TaskGraphClientNodeStatus putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -119,6 +125,8 @@ public TaskGraphClientNodeStatus putAdditionalProperty(String key, Object value) /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -126,6 +134,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -190,23 +201,26 @@ private String toIndentedString(Object o) { 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 TaskGraphClientNodeStatus - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (TaskGraphClientNodeStatus.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to TaskGraphClientNodeStatus + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!TaskGraphClientNodeStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in TaskGraphClientNodeStatus is not found in the empty JSON string", TaskGraphClientNodeStatus.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + ArrayTaskStatus.validateJsonElement(jsonObj.get("status")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -225,7 +239,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, TaskGraphClientNodeStatus value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -237,7 +251,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -246,8 +265,9 @@ else if (entry.getValue() instanceof Character) @Override public TaskGraphClientNodeStatus read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance TaskGraphClientNodeStatus instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -261,8 +281,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -273,22 +295,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of TaskGraphClientNodeStatus given an JSON string - * - * @param jsonString JSON string - * @return An instance of TaskGraphClientNodeStatus - * @throws IOException if the JSON string is invalid with respect to TaskGraphClientNodeStatus - */ + /** + * Create an instance of TaskGraphClientNodeStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of TaskGraphClientNodeStatus + * @throws IOException if the JSON string is invalid with respect to TaskGraphClientNodeStatus + */ public static TaskGraphClientNodeStatus fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, TaskGraphClientNodeStatus.class); } - /** - * Convert an instance of TaskGraphClientNodeStatus to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of TaskGraphClientNodeStatus 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/TaskGraphLog.java b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLog.java index f3579f9..7801e40 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). @@ -14,40 +14,52 @@ 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.JsonAdapter; 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 io.tiledb.cloud.rest_api.model.TaskGraphLogStatus; +import io.tiledb.cloud.rest_api.model.TaskGraphNodeMetadata; +import io.tiledb.cloud.rest_api.model.TaskGraphType; import java.io.IOException; import java.math.BigDecimal; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; - import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; +import java.util.HashMap; import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class TaskGraphLog { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) @@ -99,11 +111,11 @@ public class TaskGraphLog { public static final String SERIALIZED_NAME_STATUS_COUNT = "status_count"; @SerializedName(SERIALIZED_NAME_STATUS_COUNT) - private Map statusCount = null; + private Map statusCount = new HashMap<>(); public static final String SERIALIZED_NAME_NODES = "nodes"; @SerializedName(SERIALIZED_NAME_NODES) - private List nodes = null; + private List nodes = new ArrayList<>(); public static final String SERIALIZED_NAME_TASK_GRAPH_TYPE = "task_graph_type"; @SerializedName(SERIALIZED_NAME_TASK_GRAPH_TYPE) @@ -113,10 +125,17 @@ 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 TaskGraphLog() { } - public TaskGraphLog( String uuid, String createdBy, @@ -132,239 +151,195 @@ public TaskGraphLog( this.endTime = endTime; } - /** + /** * The server-generated UUID of the task graph. * @return uuid - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The server-generated UUID of the task graph.") - public String getUuid() { return uuid; } - public TaskGraphLog namespace(String namespace) { - this.namespace = namespace; return this; } - /** + /** * The namespace that owns this task graph log. When creating a task graph log, this is used as the namespace to create the log in; thereafter it is read-only. * @return namespace - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The namespace that owns this task graph log. When creating a task graph log, this is used as the namespace to create the log in; thereafter it is read-only. ") - public String getNamespace() { return namespace; } - public void setNamespace(String namespace) { this.namespace = namespace; } - /** + /** * The name of the user who created this task graph log. * @return createdBy - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The name of the user who created this task graph log.") - public String getCreatedBy() { return createdBy; } - public TaskGraphLog name(String name) { - this.name = name; return this; } - /** + /** * A name for this task graph log, displayed in the UI. Does not need to be unique. * @return name - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "A name for this task graph log, displayed in the UI. Does not need to be unique. ") - public String getName() { return name; } - public void setName(String name) { this.name = name; } - /** + /** * The date/time when this task graph log was originally created. This is distinct from the execution start_time. * @return createdAt - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The date/time when this task graph log was originally created. This is distinct from the execution start_time. ") - public OffsetDateTime getCreatedAt() { return createdAt; } - - /** + /** * The start time of the task graph, recorded when the server starts executing the first node. * @return startTime - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The start time of the task graph, recorded when the server starts executing the first node. ") - public OffsetDateTime getStartTime() { return startTime; } - - /** + /** * The end time of the task graph, recorded when the client reports completion. * @return endTime - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The end time of the task graph, recorded when the client reports completion. ") - public OffsetDateTime getEndTime() { return endTime; } - public TaskGraphLog status(TaskGraphLogStatus status) { - this.status = status; return this; } - /** + /** * Get status * @return status - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public TaskGraphLogStatus getStatus() { return status; } - public void setStatus(TaskGraphLogStatus status) { this.status = status; } public TaskGraphLog totalCost(BigDecimal totalCost) { - this.totalCost = totalCost; return this; } - /** + /** * If present, the total cost of executing all nodes in this task graph. * @return totalCost - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "If present, the total cost of executing all nodes in this task graph. ") - public BigDecimal getTotalCost() { return totalCost; } - public void setTotalCost(BigDecimal totalCost) { this.totalCost = totalCost; } public TaskGraphLog accessCost(BigDecimal accessCost) { - this.accessCost = accessCost; return this; } - /** + /** * If present, the total cost of access from execution of the nodes in this task graph. * @return accessCost - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "If present, the total cost of access from execution of the nodes in this task graph. ") - public BigDecimal getAccessCost() { return accessCost; } - public void setAccessCost(BigDecimal accessCost) { this.accessCost = accessCost; } public TaskGraphLog egressCost(BigDecimal egressCost) { - this.egressCost = egressCost; return this; } - /** + /** * If present, the total cost of access from execution of the nodes in this task graph. * @return egressCost - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "If present, the total cost of access from execution of the nodes in this task graph. ") - public BigDecimal getEgressCost() { return egressCost; } - public void setEgressCost(BigDecimal egressCost) { this.egressCost = egressCost; } public TaskGraphLog executionTime(String executionTime) { - this.executionTime = executionTime; return this; } - /** + /** * The total execution time of all the nodes in this graph, in ISO 8601 format with hours, minutes, and seconds. * @return executionTime - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "P15H22M0.45S", value = "The total execution time of all the nodes in this graph, in ISO 8601 format with hours, minutes, and seconds. ") - public String getExecutionTime() { return executionTime; } - public void setExecutionTime(String executionTime) { this.executionTime = executionTime; } public TaskGraphLog statusCount(Map statusCount) { - this.statusCount = statusCount; return this; } @@ -377,25 +352,21 @@ public TaskGraphLog putStatusCountItem(String key, BigDecimal statusCountItem) { return this; } - /** + /** * A mapping from `ArrayTaskStatus` string value to the number of nodes in this graph that are in that status. * @return statusCount - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "A mapping from `ArrayTaskStatus` string value to the number of nodes in this graph that are in that status. ") - public Map getStatusCount() { return statusCount; } - public void setStatusCount(Map statusCount) { this.statusCount = statusCount; } public TaskGraphLog nodes(List nodes) { - this.nodes = nodes; return this; } @@ -408,68 +379,95 @@ public TaskGraphLog addNodesItem(TaskGraphNodeMetadata nodesItem) { return this; } - /** + /** * 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. * @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. Thereafter, it is read-only. This must be topographically sorted; that is, each node must appear after all nodes that it depends upon. ") - public List getNodes() { return nodes; } - public void setNodes(List nodes) { this.nodes = nodes; } public TaskGraphLog taskGraphType(TaskGraphType taskGraphType) { - this.taskGraphType = taskGraphType; return this; } - /** + /** * Get taskGraphType * @return taskGraphType - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public TaskGraphType getTaskGraphType() { return taskGraphType; } - public void setTaskGraphType(TaskGraphType taskGraphType) { this.taskGraphType = taskGraphType; } public TaskGraphLog taskGraphId(String taskGraphId) { - this.taskGraphId = taskGraphId; return this; } - /** + /** * The UUID of the task graph. * @return taskGraphId - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The UUID of the task graph.") - public String getTaskGraphId() { return taskGraphId; } - 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 + 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 + 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 @@ -480,6 +478,10 @@ public void setTaskGraphId(String taskGraphId) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the TaskGraphLog instance itself */ public TaskGraphLog putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -491,6 +493,8 @@ public TaskGraphLog putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -498,6 +502,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -531,7 +538,9 @@ 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.additionalProperties, taskGraphLog.additionalProperties); } @@ -541,7 +550,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, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -571,6 +580,8 @@ 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(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -610,25 +621,26 @@ 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"); // 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 TaskGraphLog - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (TaskGraphLog.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to TaskGraphLog + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!TaskGraphLog.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in TaskGraphLog is not found in the empty JSON string", TaskGraphLog.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); } @@ -641,24 +653,40 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { 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())); } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + TaskGraphLogStatus.validateJsonElement(jsonObj.get("status")); + } if ((jsonObj.get("execution_time") != null && !jsonObj.get("execution_time").isJsonNull()) && !jsonObj.get("execution_time").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `execution_time` to be a primitive type in the JSON string but got `%s`", jsonObj.get("execution_time").toString())); } - JsonArray jsonArraynodes = jsonObj.getAsJsonArray("nodes"); - if (jsonArraynodes != null) { - // ensure the json data is an array - if (!jsonObj.get("nodes").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `nodes` to be an array in the JSON string but got `%s`", jsonObj.get("nodes").toString())); + if (jsonObj.get("nodes") != null && !jsonObj.get("nodes").isJsonNull()) { + JsonArray jsonArraynodes = jsonObj.getAsJsonArray("nodes"); + if (jsonArraynodes != null) { + // ensure the json data is an array + if (!jsonObj.get("nodes").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `nodes` to be an array in the JSON string but got `%s`", jsonObj.get("nodes").toString())); + } + + // validate the optional field `nodes` (array) + for (int i = 0; i < jsonArraynodes.size(); i++) { + TaskGraphNodeMetadata.validateJsonElement(jsonArraynodes.get(i)); + }; } - - // validate the optional field `nodes` (array) - for (int i = 0; i < jsonArraynodes.size(); i++) { - TaskGraphNodeMetadata.validateJsonObject(jsonArraynodes.get(i).getAsJsonObject()); - }; + } + // validate the optional field `task_graph_type` + if (jsonObj.get("task_graph_type") != null && !jsonObj.get("task_graph_type").isJsonNull()) { + TaskGraphType.validateJsonElement(jsonObj.get("task_graph_type")); } 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())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -677,7 +705,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, TaskGraphLog value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -689,7 +717,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -698,8 +731,9 @@ else if (entry.getValue() instanceof Character) @Override public TaskGraphLog read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance TaskGraphLog instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -713,8 +747,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -725,22 +761,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of TaskGraphLog given an JSON string - * - * @param jsonString JSON string - * @return An instance of TaskGraphLog - * @throws IOException if the JSON string is invalid with respect to TaskGraphLog - */ + /** + * Create an instance of TaskGraphLog given an JSON string + * + * @param jsonString JSON string + * @return An instance of TaskGraphLog + * @throws IOException if the JSON string is invalid with respect to TaskGraphLog + */ public static TaskGraphLog fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, TaskGraphLog.class); } - /** - * Convert an instance of TaskGraphLog to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of TaskGraphLog 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/TaskGraphLogRunLocation.java b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphLogRunLocation.java index ef565b2..af62457 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,8 +13,12 @@ package io.tiledb.cloud.rest_api.model; +import java.util.Objects; +import com.google.gson.annotations.SerializedName; + import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -67,5 +71,10 @@ public TaskGraphLogRunLocation read(final JsonReader jsonReader) throws IOExcept return TaskGraphLogRunLocation.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + TaskGraphLogRunLocation.fromValue(value); + } } 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..243f554 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,8 +13,12 @@ package io.tiledb.cloud.rest_api.model; +import java.util.Objects; +import com.google.gson.annotations.SerializedName; + import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -75,5 +79,10 @@ public TaskGraphLogStatus read(final JsonReader jsonReader) throws IOException { return TaskGraphLogStatus.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + TaskGraphLogStatus.fromValue(value); + } } 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..bcd5a2d 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,40 +14,50 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.PaginationMetadata; +import io.tiledb.cloud.rest_api.model.TaskGraphLog; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class TaskGraphLogsData { public static final String SERIALIZED_NAME_TASK_GRAPH_LOGS = "task_graph_logs"; @SerializedName(SERIALIZED_NAME_TASK_GRAPH_LOGS) - private List taskGraphLogs = null; + private List taskGraphLogs = new ArrayList<>(); public static final String SERIALIZED_NAME_PAGINATION_METADATA = "pagination_metadata"; @SerializedName(SERIALIZED_NAME_PAGINATION_METADATA) @@ -57,7 +67,6 @@ public TaskGraphLogsData() { } public TaskGraphLogsData taskGraphLogs(List taskGraphLogs) { - this.taskGraphLogs = taskGraphLogs; return this; } @@ -70,41 +79,34 @@ public TaskGraphLogsData addTaskGraphLogsItem(TaskGraphLog taskGraphLogsItem) { return this; } - /** + /** * The requested task graph logs. * @return taskGraphLogs - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The requested task graph logs.") - public List getTaskGraphLogs() { return taskGraphLogs; } - public void setTaskGraphLogs(List taskGraphLogs) { this.taskGraphLogs = taskGraphLogs; } public TaskGraphLogsData 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; } @@ -119,6 +121,10 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the TaskGraphLogsData instance itself */ public TaskGraphLogsData putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -130,6 +136,8 @@ public TaskGraphLogsData putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -137,6 +145,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -201,35 +212,36 @@ private String toIndentedString(Object o) { 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 TaskGraphLogsData - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (TaskGraphLogsData.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to TaskGraphLogsData + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!TaskGraphLogsData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in TaskGraphLogsData is not found in the empty JSON string", TaskGraphLogsData.openapiRequiredFields.toString())); } } - JsonArray jsonArraytaskGraphLogs = jsonObj.getAsJsonArray("task_graph_logs"); - if (jsonArraytaskGraphLogs != null) { - // ensure the json data is an array - if (!jsonObj.get("task_graph_logs").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `task_graph_logs` to be an array in the JSON string but got `%s`", jsonObj.get("task_graph_logs").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("task_graph_logs") != null && !jsonObj.get("task_graph_logs").isJsonNull()) { + JsonArray jsonArraytaskGraphLogs = jsonObj.getAsJsonArray("task_graph_logs"); + if (jsonArraytaskGraphLogs != null) { + // ensure the json data is an array + if (!jsonObj.get("task_graph_logs").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `task_graph_logs` to be an array in the JSON string but got `%s`", jsonObj.get("task_graph_logs").toString())); + } + + // validate the optional field `task_graph_logs` (array) + for (int i = 0; i < jsonArraytaskGraphLogs.size(); i++) { + TaskGraphLog.validateJsonElement(jsonArraytaskGraphLogs.get(i)); + }; } - - // validate the optional field `task_graph_logs` (array) - for (int i = 0; i < jsonArraytaskGraphLogs.size(); i++) { - TaskGraphLog.validateJsonObject(jsonArraytaskGraphLogs.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")); + PaginationMetadata.validateJsonElement(jsonObj.get("pagination_metadata")); } } @@ -249,7 +261,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, TaskGraphLogsData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -261,7 +273,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -270,8 +287,9 @@ else if (entry.getValue() instanceof Character) @Override public TaskGraphLogsData read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance TaskGraphLogsData instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -285,8 +303,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -297,22 +317,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of TaskGraphLogsData given an JSON string - * - * @param jsonString JSON string - * @return An instance of TaskGraphLogsData - * @throws IOException if the JSON string is invalid with respect to TaskGraphLogsData - */ + /** + * Create an instance of TaskGraphLogsData given an JSON string + * + * @param jsonString JSON string + * @return An instance of TaskGraphLogsData + * @throws IOException if the JSON string is invalid with respect to TaskGraphLogsData + */ public static TaskGraphLogsData fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, TaskGraphLogsData.class); } - /** - * Convert an instance of TaskGraphLogsData to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of TaskGraphLogsData 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/TaskGraphNode.java b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphNode.java index c8d68b9..d4f8575 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). @@ -14,36 +14,50 @@ 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.JsonAdapter; 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 io.tiledb.cloud.rest_api.model.RetryStrategy; +import io.tiledb.cloud.rest_api.model.TGInputNodeData; +import io.tiledb.cloud.rest_api.model.TGSQLNodeData; +import io.tiledb.cloud.rest_api.model.TGUDFNodeData; +import io.tiledb.cloud.rest_api.model.UDFArrayDetails; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; 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.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; + +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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class TaskGraphNode { public static final String SERIALIZED_NAME_CLIENT_NODE_ID = "client_node_id"; @SerializedName(SERIALIZED_NAME_CLIENT_NODE_ID) @@ -55,7 +69,7 @@ public class TaskGraphNode { public static final String SERIALIZED_NAME_DEPENDS_ON = "depends_on"; @SerializedName(SERIALIZED_NAME_DEPENDS_ON) - private List dependsOn = null; + private List dependsOn = new ArrayList<>(); public static final String SERIALIZED_NAME_ARRAY_NODE = "array_node"; @SerializedName(SERIALIZED_NAME_ARRAY_NODE) @@ -89,53 +103,44 @@ public TaskGraphNode() { } public TaskGraphNode clientNodeId(String clientNodeId) { - this.clientNodeId = clientNodeId; return this; } - /** + /** * The client-generated UUID of the given graph node. * @return clientNodeId - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The client-generated UUID of the given graph node.") - public String getClientNodeId() { return clientNodeId; } - public void setClientNodeId(String clientNodeId) { this.clientNodeId = clientNodeId; } public TaskGraphNode name(String name) { - this.name = name; return this; } - /** + /** * A client-specified name for the node. If provided, this must be unique. * @return name - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "A client-specified name for the node. If provided, this must be unique. ") - public String getName() { return name; } - public void setName(String name) { this.name = name; } public TaskGraphNode dependsOn(List dependsOn) { - this.dependsOn = dependsOn; return this; } @@ -148,179 +153,148 @@ public TaskGraphNode addDependsOnItem(String dependsOnItem) { return this; } - /** + /** * The client_node_uuid of each node that this node depends upon. Used to define the structure of the graph. * @return dependsOn - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The client_node_uuid of each node that this node depends upon. Used to define the structure of the graph. ") - public List getDependsOn() { return dependsOn; } - public void setDependsOn(List dependsOn) { this.dependsOn = dependsOn; } public TaskGraphNode arrayNode(UDFArrayDetails arrayNode) { - this.arrayNode = arrayNode; return this; } - /** + /** * Get arrayNode * @return arrayNode - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public UDFArrayDetails getArrayNode() { return arrayNode; } - public void setArrayNode(UDFArrayDetails arrayNode) { this.arrayNode = arrayNode; } public TaskGraphNode inputNode(TGInputNodeData inputNode) { - this.inputNode = inputNode; return this; } - /** + /** * Get inputNode * @return inputNode - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public TGInputNodeData getInputNode() { return inputNode; } - public void setInputNode(TGInputNodeData inputNode) { this.inputNode = inputNode; } public TaskGraphNode sqlNode(TGSQLNodeData sqlNode) { - this.sqlNode = sqlNode; return this; } - /** + /** * Get sqlNode * @return sqlNode - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public TGSQLNodeData getSqlNode() { return sqlNode; } - public void setSqlNode(TGSQLNodeData sqlNode) { this.sqlNode = sqlNode; } public TaskGraphNode udfNode(TGUDFNodeData udfNode) { - this.udfNode = udfNode; return this; } - /** + /** * Get udfNode * @return udfNode - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public TGUDFNodeData getUdfNode() { return udfNode; } - public void setUdfNode(TGUDFNodeData udfNode) { this.udfNode = udfNode; } public TaskGraphNode retryStrategy(RetryStrategy retryStrategy) { - this.retryStrategy = retryStrategy; return this; } - /** + /** * Get retryStrategy * @return retryStrategy - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public RetryStrategy getRetryStrategy() { return retryStrategy; } - public void setRetryStrategy(RetryStrategy retryStrategy) { this.retryStrategy = retryStrategy; } public TaskGraphNode expandNodeOutput(String expandNodeOutput) { - this.expandNodeOutput = expandNodeOutput; return this; } - /** + /** * Used to create dynamic tasks based on the output of another node. The other node's output must be a JSON list of values. The expansion process creates one task per item in the output list. The item is also passed as an argument to each task. The value is the client_node_uuid of the node that we want to expand. * @return expandNodeOutput - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Used to create dynamic tasks based on the output of another node. The other node's output must be a JSON list of values. The expansion process creates one task per item in the output list. The item is also passed as an argument to each task. The value is the client_node_uuid of the node that we want to expand. ") - public String getExpandNodeOutput() { return expandNodeOutput; } - public void setExpandNodeOutput(String expandNodeOutput) { this.expandNodeOutput = expandNodeOutput; } public TaskGraphNode deadline(Long deadline) { - this.deadline = deadline; return this; } - /** + /** * Duration in seconds relative to the node start time which the node is allowed to run before it gets terminated. * @return deadline - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Duration in seconds relative to the node start time which the node is allowed to run before it gets terminated. ") - public Long getDeadline() { return deadline; } - public void setDeadline(Long deadline) { this.deadline = deadline; } @@ -335,6 +309,10 @@ public void setDeadline(Long deadline) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the TaskGraphNode instance itself */ public TaskGraphNode putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -346,6 +324,8 @@ public TaskGraphNode putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -353,6 +333,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -452,49 +435,48 @@ private String toIndentedString(Object o) { 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 TaskGraphNode - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (TaskGraphNode.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to TaskGraphNode + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!TaskGraphNode.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in TaskGraphNode is not found in the empty JSON string", TaskGraphNode.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("client_node_id") != null && !jsonObj.get("client_node_id").isJsonNull()) && !jsonObj.get("client_node_id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `client_node_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("client_node_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())); } - // ensure the json data is an array - if ((jsonObj.get("depends_on") != null && !jsonObj.get("depends_on").isJsonNull()) && !jsonObj.get("depends_on").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("depends_on") != null && !jsonObj.get("depends_on").isJsonNull() && !jsonObj.get("depends_on").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `depends_on` to be an array in the JSON string but got `%s`", jsonObj.get("depends_on").toString())); } // validate the optional field `array_node` if (jsonObj.get("array_node") != null && !jsonObj.get("array_node").isJsonNull()) { - UDFArrayDetails.validateJsonObject(jsonObj.getAsJsonObject("array_node")); + UDFArrayDetails.validateJsonElement(jsonObj.get("array_node")); } // validate the optional field `input_node` if (jsonObj.get("input_node") != null && !jsonObj.get("input_node").isJsonNull()) { - TGInputNodeData.validateJsonObject(jsonObj.getAsJsonObject("input_node")); + TGInputNodeData.validateJsonElement(jsonObj.get("input_node")); } // validate the optional field `sql_node` if (jsonObj.get("sql_node") != null && !jsonObj.get("sql_node").isJsonNull()) { - TGSQLNodeData.validateJsonObject(jsonObj.getAsJsonObject("sql_node")); + TGSQLNodeData.validateJsonElement(jsonObj.get("sql_node")); } // validate the optional field `udf_node` if (jsonObj.get("udf_node") != null && !jsonObj.get("udf_node").isJsonNull()) { - TGUDFNodeData.validateJsonObject(jsonObj.getAsJsonObject("udf_node")); + TGUDFNodeData.validateJsonElement(jsonObj.get("udf_node")); } // validate the optional field `retry_strategy` if (jsonObj.get("retry_strategy") != null && !jsonObj.get("retry_strategy").isJsonNull()) { - RetryStrategy.validateJsonObject(jsonObj.getAsJsonObject("retry_strategy")); + RetryStrategy.validateJsonElement(jsonObj.get("retry_strategy")); } if ((jsonObj.get("expand_node_output") != null && !jsonObj.get("expand_node_output").isJsonNull()) && !jsonObj.get("expand_node_output").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `expand_node_output` to be a primitive type in the JSON string but got `%s`", jsonObj.get("expand_node_output").toString())); @@ -517,7 +499,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, TaskGraphNode value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -529,7 +511,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -538,8 +525,9 @@ else if (entry.getValue() instanceof Character) @Override public TaskGraphNode read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance TaskGraphNode instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -553,8 +541,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -565,22 +555,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of TaskGraphNode given an JSON string - * - * @param jsonString JSON string - * @return An instance of TaskGraphNode - * @throws IOException if the JSON string is invalid with respect to TaskGraphNode - */ + /** + * Create an instance of TaskGraphNode given an JSON string + * + * @param jsonString JSON string + * @return An instance of TaskGraphNode + * @throws IOException if the JSON string is invalid with respect to TaskGraphNode + */ public static TaskGraphNode fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, TaskGraphNode.class); } - /** - * Convert an instance of TaskGraphNode to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of TaskGraphNode 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/TaskGraphNodeMetadata.java b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphNodeMetadata.java index 3ed4672..8428869 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). @@ -14,38 +14,48 @@ 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.JsonAdapter; 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 io.tiledb.cloud.rest_api.model.ArrayTask; +import io.tiledb.cloud.rest_api.model.ArrayTaskStatus; +import io.tiledb.cloud.rest_api.model.TaskGraphLogRunLocation; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; - import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class TaskGraphNodeMetadata { public static final String SERIALIZED_NAME_CLIENT_NODE_UUID = "client_node_uuid"; @SerializedName(SERIALIZED_NAME_CLIENT_NODE_UUID) @@ -57,7 +67,7 @@ public class TaskGraphNodeMetadata { public static final String SERIALIZED_NAME_DEPENDS_ON = "depends_on"; @SerializedName(SERIALIZED_NAME_DEPENDS_ON) - private List dependsOn = null; + private List dependsOn = new ArrayList<>(); public static final String SERIALIZED_NAME_RUN_LOCATION = "run_location"; @SerializedName(SERIALIZED_NAME_RUN_LOCATION) @@ -73,12 +83,11 @@ public class TaskGraphNodeMetadata { public static final String SERIALIZED_NAME_EXECUTIONS = "executions"; @SerializedName(SERIALIZED_NAME_EXECUTIONS) - private List executions = null; + private List executions = new ArrayList<>(); public TaskGraphNodeMetadata() { } - public TaskGraphNodeMetadata( List executions ) { @@ -87,53 +96,44 @@ public TaskGraphNodeMetadata( } public TaskGraphNodeMetadata clientNodeUuid(String clientNodeUuid) { - this.clientNodeUuid = clientNodeUuid; return this; } - /** + /** * The client-generated UUID of the given graph node. * @return clientNodeUuid - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The client-generated UUID of the given graph node.") - public String getClientNodeUuid() { return clientNodeUuid; } - public void setClientNodeUuid(String clientNodeUuid) { this.clientNodeUuid = clientNodeUuid; } public TaskGraphNodeMetadata name(String name) { - this.name = name; return this; } - /** + /** * The client-generated name of the node. This is not guaranteed to be unique. * @return name - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The client-generated name of the node. This is not guaranteed to be unique. ") - public String getName() { return name; } - public void setName(String name) { this.name = name; } public TaskGraphNodeMetadata dependsOn(List dependsOn) { - this.dependsOn = dependsOn; return this; } @@ -146,105 +146,87 @@ public TaskGraphNodeMetadata addDependsOnItem(String dependsOnItem) { return this; } - /** + /** * The client_node_uuid of each node that this node depends upon. Used to define the structure of the graph. * @return dependsOn - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The client_node_uuid of each node that this node depends upon. Used to define the structure of the graph. ") - public List getDependsOn() { return dependsOn; } - public void setDependsOn(List dependsOn) { this.dependsOn = dependsOn; } public TaskGraphNodeMetadata runLocation(TaskGraphLogRunLocation runLocation) { - this.runLocation = runLocation; return this; } - /** + /** * Get runLocation * @return runLocation - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public TaskGraphLogRunLocation getRunLocation() { return runLocation; } - public void setRunLocation(TaskGraphLogRunLocation runLocation) { this.runLocation = runLocation; } public TaskGraphNodeMetadata status(ArrayTaskStatus status) { - this.status = status; return this; } - /** + /** * Get status * @return status - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public ArrayTaskStatus getStatus() { return status; } - public void setStatus(ArrayTaskStatus status) { this.status = status; } public TaskGraphNodeMetadata statusMessage(String statusMessage) { - this.statusMessage = statusMessage; return this; } - /** + /** * The reason the array task status is in the state * @return statusMessage - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The reason the array task status is in the state") - public String getStatusMessage() { return statusMessage; } - public void setStatusMessage(String statusMessage) { this.statusMessage = statusMessage; } - /** + /** * ArrayTasks representing each execution attempt for this node. For nodes that have never been submitted, this will be empty. For nodes that have been retried, this may have multiple entries. The last one in the list represents the most recent execution. This is read-only and generated by the server based on the tasks it has actually executed. * @return executions - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "ArrayTasks representing each execution attempt for this node. For nodes that have never been submitted, this will be empty. For nodes that have been retried, this may have multiple entries. The last one in the list represents the most recent execution. This is read-only and generated by the server based on the tasks it has actually executed. ") - public List getExecutions() { return executions; } - /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -255,6 +237,10 @@ public List getExecutions() { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the TaskGraphNodeMetadata instance itself */ public TaskGraphNodeMetadata putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -266,6 +252,8 @@ public TaskGraphNodeMetadata putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -273,6 +261,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -363,44 +354,53 @@ private String toIndentedString(Object o) { 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 TaskGraphNodeMetadata - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (TaskGraphNodeMetadata.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to TaskGraphNodeMetadata + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!TaskGraphNodeMetadata.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in TaskGraphNodeMetadata is not found in the empty JSON string", TaskGraphNodeMetadata.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); 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("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())); } - // ensure the json data is an array - if ((jsonObj.get("depends_on") != null && !jsonObj.get("depends_on").isJsonNull()) && !jsonObj.get("depends_on").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("depends_on") != null && !jsonObj.get("depends_on").isJsonNull() && !jsonObj.get("depends_on").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `depends_on` to be an array in the JSON string but got `%s`", jsonObj.get("depends_on").toString())); } + // validate the optional field `run_location` + if (jsonObj.get("run_location") != null && !jsonObj.get("run_location").isJsonNull()) { + TaskGraphLogRunLocation.validateJsonElement(jsonObj.get("run_location")); + } + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + ArrayTaskStatus.validateJsonElement(jsonObj.get("status")); + } if ((jsonObj.get("status_message") != null && !jsonObj.get("status_message").isJsonNull()) && !jsonObj.get("status_message").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `status_message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status_message").toString())); } - JsonArray jsonArrayexecutions = jsonObj.getAsJsonArray("executions"); - if (jsonArrayexecutions != null) { - // ensure the json data is an array - if (!jsonObj.get("executions").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `executions` to be an array in the JSON string but got `%s`", jsonObj.get("executions").toString())); + if (jsonObj.get("executions") != null && !jsonObj.get("executions").isJsonNull()) { + JsonArray jsonArrayexecutions = jsonObj.getAsJsonArray("executions"); + if (jsonArrayexecutions != null) { + // ensure the json data is an array + if (!jsonObj.get("executions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `executions` to be an array in the JSON string but got `%s`", jsonObj.get("executions").toString())); + } + + // validate the optional field `executions` (array) + for (int i = 0; i < jsonArrayexecutions.size(); i++) { + ArrayTask.validateJsonElement(jsonArrayexecutions.get(i)); + }; } - - // validate the optional field `executions` (array) - for (int i = 0; i < jsonArrayexecutions.size(); i++) { - ArrayTask.validateJsonObject(jsonArrayexecutions.get(i).getAsJsonObject()); - }; } } @@ -420,7 +420,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, TaskGraphNodeMetadata value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -432,7 +432,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -441,8 +446,9 @@ else if (entry.getValue() instanceof Character) @Override public TaskGraphNodeMetadata read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance TaskGraphNodeMetadata instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -456,8 +462,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -468,22 +476,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of TaskGraphNodeMetadata given an JSON string - * - * @param jsonString JSON string - * @return An instance of TaskGraphNodeMetadata - * @throws IOException if the JSON string is invalid with respect to TaskGraphNodeMetadata - */ + /** + * Create an instance of TaskGraphNodeMetadata given an JSON string + * + * @param jsonString JSON string + * @return An instance of TaskGraphNodeMetadata + * @throws IOException if the JSON string is invalid with respect to TaskGraphNodeMetadata + */ public static TaskGraphNodeMetadata fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, TaskGraphNodeMetadata.class); } - /** - * Convert an instance of TaskGraphNodeMetadata to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of TaskGraphNodeMetadata 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/TaskGraphSharing.java b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphSharing.java index 0f243d3..feedb5f 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,39 +14,49 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.TaskGraphActions; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class TaskGraphSharing { public static final String SERIALIZED_NAME_ACTIONS = "actions"; @SerializedName(SERIALIZED_NAME_ACTIONS) - private List actions = null; + private List actions = new ArrayList<>(); public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; @SerializedName(SERIALIZED_NAME_NAMESPACE) @@ -60,7 +70,6 @@ public TaskGraphSharing() { } public TaskGraphSharing actions(List actions) { - this.actions = actions; return this; } @@ -73,64 +82,53 @@ public TaskGraphSharing addActionsItem(TaskGraphActions actionsItem) { return this; } - /** + /** * List of permitted actions * @return actions - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "[fetch_task_graph, share_task_graph]", value = "List of permitted actions") - public List getActions() { return actions; } - public void setActions(List actions) { this.actions = actions; } public TaskGraphSharing namespace(String namespace) { - this.namespace = namespace; return this; } - /** + /** * namespace being granted array access can be a user or organization * @return namespace - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "MyOrganization", value = "namespace being granted array access can be a user or organization") - public String getNamespace() { return namespace; } - public void setNamespace(String namespace) { this.namespace = namespace; } public TaskGraphSharing namespaceType(String namespaceType) { - this.namespaceType = namespaceType; return this; } - /** + /** * details on if the namespace is a organization or user * @return namespaceType - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "organization", value = "details on if the namespace is a organization or user") - public String getNamespaceType() { return namespaceType; } - public void setNamespaceType(String namespaceType) { this.namespaceType = namespaceType; } @@ -145,6 +143,10 @@ public void setNamespaceType(String namespaceType) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the TaskGraphSharing instance itself */ public TaskGraphSharing putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -156,6 +158,8 @@ public TaskGraphSharing putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -163,6 +167,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -230,22 +237,21 @@ private String toIndentedString(Object o) { 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 TaskGraphSharing - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (TaskGraphSharing.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to TaskGraphSharing + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!TaskGraphSharing.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in TaskGraphSharing is not found in the empty JSON string", TaskGraphSharing.openapiRequiredFields.toString())); } } - // ensure the json data is an array - if ((jsonObj.get("actions") != null && !jsonObj.get("actions").isJsonNull()) && !jsonObj.get("actions").isJsonArray()) { + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("actions") != null && !jsonObj.get("actions").isJsonNull() && !jsonObj.get("actions").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `actions` to be an array in the JSON string but got `%s`", jsonObj.get("actions").toString())); } if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { @@ -272,7 +278,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, TaskGraphSharing value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -284,7 +290,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -293,8 +304,9 @@ else if (entry.getValue() instanceof Character) @Override public TaskGraphSharing read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance TaskGraphSharing instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -308,8 +320,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -320,22 +334,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of TaskGraphSharing given an JSON string - * - * @param jsonString JSON string - * @return An instance of TaskGraphSharing - * @throws IOException if the JSON string is invalid with respect to TaskGraphSharing - */ + /** + * Create an instance of TaskGraphSharing given an JSON string + * + * @param jsonString JSON string + * @return An instance of TaskGraphSharing + * @throws IOException if the JSON string is invalid with respect to TaskGraphSharing + */ public static TaskGraphSharing fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, TaskGraphSharing.class); } - /** - * Convert an instance of TaskGraphSharing to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of TaskGraphSharing 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/TaskGraphType.java b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphType.java index 888185f..56c45c8 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,8 +13,12 @@ package io.tiledb.cloud.rest_api.model; +import java.util.Objects; +import com.google.gson.annotations.SerializedName; + import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -65,5 +69,10 @@ public TaskGraphType read(final JsonReader jsonReader) throws IOException { return TaskGraphType.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + TaskGraphType.fromValue(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..bb434ab 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,46 +14,54 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.TaskGraph; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class TaskGraphs { public static final String SERIALIZED_NAME_GRAPHS = "graphs"; @SerializedName(SERIALIZED_NAME_GRAPHS) - private List graphs = null; + private List graphs = new ArrayList<>(); public TaskGraphs() { } public TaskGraphs graphs(List graphs) { - this.graphs = graphs; return this; } @@ -66,18 +74,15 @@ public TaskGraphs addGraphsItem(TaskGraph graphsItem) { return this; } - /** + /** * The series of graphs. * @return graphs - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The series of graphs. ") - public List getGraphs() { return graphs; } - public void setGraphs(List graphs) { this.graphs = graphs; } @@ -92,6 +97,10 @@ public void setGraphs(List graphs) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the TaskGraphs instance itself */ public TaskGraphs putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -103,6 +112,8 @@ public TaskGraphs putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -110,6 +121,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -171,31 +185,32 @@ private String toIndentedString(Object o) { 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 TaskGraphs - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (TaskGraphs.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to TaskGraphs + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!TaskGraphs.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in TaskGraphs is not found in the empty JSON string", TaskGraphs.openapiRequiredFields.toString())); } } - JsonArray jsonArraygraphs = jsonObj.getAsJsonArray("graphs"); - if (jsonArraygraphs != null) { - // ensure the json data is an array - if (!jsonObj.get("graphs").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `graphs` to be an array in the JSON string but got `%s`", jsonObj.get("graphs").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("graphs") != null && !jsonObj.get("graphs").isJsonNull()) { + JsonArray jsonArraygraphs = jsonObj.getAsJsonArray("graphs"); + if (jsonArraygraphs != null) { + // ensure the json data is an array + if (!jsonObj.get("graphs").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `graphs` to be an array in the JSON string but got `%s`", jsonObj.get("graphs").toString())); + } + + // validate the optional field `graphs` (array) + for (int i = 0; i < jsonArraygraphs.size(); i++) { + TaskGraph.validateJsonElement(jsonArraygraphs.get(i)); + }; } - - // validate the optional field `graphs` (array) - for (int i = 0; i < jsonArraygraphs.size(); i++) { - TaskGraph.validateJsonObject(jsonArraygraphs.get(i).getAsJsonObject()); - }; } } @@ -215,7 +230,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, TaskGraphs value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -227,7 +242,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -236,8 +256,9 @@ else if (entry.getValue() instanceof Character) @Override public TaskGraphs read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance TaskGraphs instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -251,8 +272,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -263,22 +286,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of TaskGraphs given an JSON string - * - * @param jsonString JSON string - * @return An instance of TaskGraphs - * @throws IOException if the JSON string is invalid with respect to TaskGraphs - */ + /** + * Create an instance of TaskGraphs given an JSON string + * + * @param jsonString JSON string + * @return An instance of TaskGraphs + * @throws IOException if the JSON string is invalid with respect to TaskGraphs + */ public static TaskGraphs fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, TaskGraphs.class); } - /** - * Convert an instance of TaskGraphs to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of TaskGraphs 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/TileDBConfig.java b/src/main/java/io/tiledb/cloud/rest_api/model/TileDBConfig.java index 8416228..f3cc0f5 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,46 +14,54 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.TileDBConfigEntriesInner; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class TileDBConfig { public static final String SERIALIZED_NAME_ENTRIES = "entries"; @SerializedName(SERIALIZED_NAME_ENTRIES) - private List entries = null; + private List entries = new ArrayList<>(); public TileDBConfig() { } public TileDBConfig entries(List entries) { - this.entries = entries; return this; } @@ -66,18 +74,15 @@ public TileDBConfig addEntriesItem(TileDBConfigEntriesInner entriesItem) { return this; } - /** + /** * Get entries * @return entries - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public List getEntries() { return entries; } - public void setEntries(List entries) { this.entries = entries; } @@ -92,6 +97,10 @@ public void setEntries(List entries) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the TileDBConfig instance itself */ public TileDBConfig putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -103,6 +112,8 @@ public TileDBConfig putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -110,6 +121,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -171,31 +185,32 @@ private String toIndentedString(Object o) { 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 TileDBConfig - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (TileDBConfig.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to TileDBConfig + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!TileDBConfig.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in TileDBConfig is not found in the empty JSON string", TileDBConfig.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())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("entries") != null && !jsonObj.get("entries").isJsonNull()) { + 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++) { + TileDBConfigEntriesInner.validateJsonElement(jsonArrayentries.get(i)); + }; } - - // validate the optional field `entries` (array) - for (int i = 0; i < jsonArrayentries.size(); i++) { - TileDBConfigEntriesInner.validateJsonObject(jsonArrayentries.get(i).getAsJsonObject()); - }; } } @@ -215,7 +230,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, TileDBConfig value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -227,7 +242,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -236,8 +256,9 @@ else if (entry.getValue() instanceof Character) @Override public TileDBConfig read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance TileDBConfig instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -251,8 +272,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -263,22 +286,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of TileDBConfig given an JSON string - * - * @param jsonString JSON string - * @return An instance of TileDBConfig - * @throws IOException if the JSON string is invalid with respect to TileDBConfig - */ + /** + * Create an instance of TileDBConfig given an JSON string + * + * @param jsonString JSON string + * @return An instance of TileDBConfig + * @throws IOException if the JSON string is invalid with respect to TileDBConfig + */ public static TileDBConfig fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, TileDBConfig.class); } - /** - * Convert an instance of TileDBConfig to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of TileDBConfig 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/TileDBConfigEntriesInner.java b/src/main/java/io/tiledb/cloud/rest_api/model/TileDBConfigEntriesInner.java index 8c5333f..f9cf874 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,31 +14,42 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.Arrays; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class TileDBConfigEntriesInner { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -52,46 +63,38 @@ public TileDBConfigEntriesInner() { } public TileDBConfigEntriesInner key(String key) { - this.key = key; return this; } - /** + /** * Get key * @return key - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public String getKey() { return key; } - public void setKey(String key) { this.key = key; } public TileDBConfigEntriesInner value(String value) { - this.value = value; return this; } - /** + /** * Get value * @return value - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public String getValue() { return value; } - public void setValue(String value) { this.value = value; } @@ -106,6 +109,10 @@ public void setValue(String value) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the TileDBConfigEntriesInner instance itself */ public TileDBConfigEntriesInner putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -117,6 +124,8 @@ public TileDBConfigEntriesInner putAdditionalProperty(String key, Object value) /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -124,6 +133,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -188,20 +200,19 @@ private String toIndentedString(Object o) { 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 TileDBConfigEntriesInner - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (TileDBConfigEntriesInner.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to TileDBConfigEntriesInner + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!TileDBConfigEntriesInner.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in TileDBConfigEntriesInner is not found in the empty JSON string", TileDBConfigEntriesInner.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); } @@ -226,7 +237,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, TileDBConfigEntriesInner value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -238,7 +249,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -247,8 +263,9 @@ else if (entry.getValue() instanceof Character) @Override public TileDBConfigEntriesInner read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance TileDBConfigEntriesInner instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -262,8 +279,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -274,22 +293,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of TileDBConfigEntriesInner given an JSON string - * - * @param jsonString JSON string - * @return An instance of TileDBConfigEntriesInner - * @throws IOException if the JSON string is invalid with respect to TileDBConfigEntriesInner - */ + /** + * Create an instance of TileDBConfigEntriesInner given an JSON string + * + * @param jsonString JSON string + * @return An instance of TileDBConfigEntriesInner + * @throws IOException if the JSON string is invalid with respect to TileDBConfigEntriesInner + */ public static TileDBConfigEntriesInner fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, TileDBConfigEntriesInner.class); } - /** - * Convert an instance of TileDBConfigEntriesInner to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of TileDBConfigEntriesInner 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/Token.java b/src/main/java/io/tiledb/cloud/rest_api/model/Token.java index 5d4fadf..422b0c8 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,36 +14,46 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.TokenScope; import java.io.IOException; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class Token { public static final String SERIALIZED_NAME_TOKEN = "token"; @SerializedName(SERIALIZED_NAME_TOKEN) @@ -63,105 +73,88 @@ public class Token { public static final String SERIALIZED_NAME_SCOPE = "scope"; @SerializedName(SERIALIZED_NAME_SCOPE) - private List scope = null; + private List scope = new ArrayList<>(); public Token() { } public Token token(String token) { - this.token = token; return this; } - /** + /** * A api token * @return token - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "A api token") - public String getToken() { return token; } - public void setToken(String token) { this.token = token; } public Token name(String name) { - this.name = name; return this; } - /** + /** * Name of token to revoke * @return name - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Name of token to revoke") - public String getName() { return name; } - public void setName(String name) { this.name = name; } public Token issuedAt(OffsetDateTime issuedAt) { - this.issuedAt = issuedAt; return this; } - /** + /** * datetime the token was created * @return issuedAt - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "datetime the token was created") - public OffsetDateTime getIssuedAt() { return issuedAt; } - public void setIssuedAt(OffsetDateTime issuedAt) { this.issuedAt = issuedAt; } public Token expiresAt(OffsetDateTime expiresAt) { - this.expiresAt = expiresAt; return this; } - /** + /** * datetime the token when token will expire * @return expiresAt - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "datetime the token when token will expire") - public OffsetDateTime getExpiresAt() { return expiresAt; } - public void setExpiresAt(OffsetDateTime expiresAt) { this.expiresAt = expiresAt; } public Token scope(List scope) { - this.scope = scope; return this; } @@ -174,18 +167,15 @@ public Token addScopeItem(TokenScope scopeItem) { return this; } - /** + /** * Optional scope to limit token, defaults to all permissions, current supported values are password_reset or * * @return scope - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Optional scope to limit token, defaults to all permissions, current supported values are password_reset or *") - public List getScope() { return scope; } - public void setScope(List scope) { this.scope = scope; } @@ -200,6 +190,10 @@ public void setScope(List scope) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the Token instance itself */ public Token putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -211,6 +205,8 @@ public Token putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -218,6 +214,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -291,28 +290,27 @@ private String toIndentedString(Object o) { 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 Token - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (Token.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to Token + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!Token.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in Token is not found in the empty JSON string", Token.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("token") != null && !jsonObj.get("token").isJsonNull()) && !jsonObj.get("token").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `token` to be a primitive type in the JSON string but got `%s`", jsonObj.get("token").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())); } - // ensure the json data is an array - if ((jsonObj.get("scope") != null && !jsonObj.get("scope").isJsonNull()) && !jsonObj.get("scope").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("scope") != null && !jsonObj.get("scope").isJsonNull() && !jsonObj.get("scope").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `scope` to be an array in the JSON string but got `%s`", jsonObj.get("scope").toString())); } } @@ -333,7 +331,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, Token value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -345,7 +343,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -354,8 +357,9 @@ else if (entry.getValue() instanceof Character) @Override public Token read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance Token instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -369,8 +373,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -381,22 +387,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of Token given an JSON string - * - * @param jsonString JSON string - * @return An instance of Token - * @throws IOException if the JSON string is invalid with respect to Token - */ + /** + * Create an instance of Token given an JSON string + * + * @param jsonString JSON string + * @return An instance of Token + * @throws IOException if the JSON string is invalid with respect to Token + */ public static Token fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, Token.class); } - /** - * Convert an instance of Token to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of Token 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/TokenRequest.java b/src/main/java/io/tiledb/cloud/rest_api/model/TokenRequest.java index e623046..8987400 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,36 +14,46 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.TokenScope; import java.io.IOException; import java.time.OffsetDateTime; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class TokenRequest { public static final String SERIALIZED_NAME_EXPIRES = "expires"; @SerializedName(SERIALIZED_NAME_EXPIRES) @@ -55,59 +65,50 @@ public class TokenRequest { public static final String SERIALIZED_NAME_SCOPE = "scope"; @SerializedName(SERIALIZED_NAME_SCOPE) - private List scope = null; + private List scope = new ArrayList<>(); public TokenRequest() { } public TokenRequest expires(OffsetDateTime expires) { - this.expires = expires; return this; } - /** + /** * Expiration date for token, if empty token defaults to 30 minutes * @return expires - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "2018-12-31T12:13:14Z", value = "Expiration date for token, if empty token defaults to 30 minutes") - public OffsetDateTime getExpires() { return expires; } - public void setExpires(OffsetDateTime expires) { this.expires = expires; } public TokenRequest name(String name) { - this.name = name; return this; } - /** + /** * Optional name for token, if the name already exists for the user it will be auto incremented (i.e. myToken-1) * @return name - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "myToken", value = "Optional name for token, if the name already exists for the user it will be auto incremented (i.e. myToken-1)") - public String getName() { return name; } - public void setName(String name) { this.name = name; } public TokenRequest scope(List scope) { - this.scope = scope; return this; } @@ -120,18 +121,15 @@ public TokenRequest addScopeItem(TokenScope scopeItem) { return this; } - /** + /** * Optional scope to limit token, defaults to all permissions, current supported values are password_reset or * * @return scope - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Optional scope to limit token, defaults to all permissions, current supported values are password_reset or *") - public List getScope() { return scope; } - public void setScope(List scope) { this.scope = scope; } @@ -146,6 +144,10 @@ public void setScope(List scope) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the TokenRequest instance itself */ public TokenRequest putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -157,6 +159,8 @@ public TokenRequest putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -164,6 +168,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -231,25 +238,24 @@ private String toIndentedString(Object o) { 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 TokenRequest - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (TokenRequest.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to TokenRequest + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!TokenRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in TokenRequest is not found in the empty JSON string", TokenRequest.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); } - // ensure the json data is an array - if ((jsonObj.get("scope") != null && !jsonObj.get("scope").isJsonNull()) && !jsonObj.get("scope").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("scope") != null && !jsonObj.get("scope").isJsonNull() && !jsonObj.get("scope").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `scope` to be an array in the JSON string but got `%s`", jsonObj.get("scope").toString())); } } @@ -270,7 +276,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, TokenRequest value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -282,7 +288,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -291,8 +302,9 @@ else if (entry.getValue() instanceof Character) @Override public TokenRequest read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance TokenRequest instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -306,8 +318,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -318,22 +332,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of TokenRequest given an JSON string - * - * @param jsonString JSON string - * @return An instance of TokenRequest - * @throws IOException if the JSON string is invalid with respect to TokenRequest - */ + /** + * Create an instance of TokenRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of TokenRequest + * @throws IOException if the JSON string is invalid with respect to TokenRequest + */ public static TokenRequest fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, TokenRequest.class); } - /** - * Convert an instance of TokenRequest to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of TokenRequest 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/TokenScope.java b/src/main/java/io/tiledb/cloud/rest_api/model/TokenScope.java index 562e24b..52b8e24 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,8 +13,12 @@ package io.tiledb.cloud.rest_api.model; +import java.util.Objects; +import com.google.gson.annotations.SerializedName; + import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -91,5 +95,10 @@ public TokenScope read(final JsonReader jsonReader) throws IOException { return TokenScope.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + TokenScope.fromValue(value); + } } 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..f027d9e 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,8 +13,12 @@ package io.tiledb.cloud.rest_api.model; +import java.util.Objects; +import com.google.gson.annotations.SerializedName; + import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -65,5 +69,10 @@ public UDFActions read(final JsonReader jsonReader) throws IOException { return UDFActions.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + UDFActions.fromValue(value); + } } 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..6b910ac 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). @@ -14,36 +14,46 @@ 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.JsonAdapter; 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 io.tiledb.cloud.rest_api.model.QueryRanges; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; 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.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; + +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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class UDFArrayDetails { public static final String SERIALIZED_NAME_PARAMETER_ID = "parameter_id"; @SerializedName(SERIALIZED_NAME_PARAMETER_ID) @@ -59,82 +69,69 @@ public class UDFArrayDetails { public static final String SERIALIZED_NAME_BUFFERS = "buffers"; @SerializedName(SERIALIZED_NAME_BUFFERS) - private List buffers = null; + private List buffers = new ArrayList<>(); public UDFArrayDetails() { } public UDFArrayDetails parameterId(String parameterId) { - this.parameterId = parameterId; return this; } - /** + /** * An optional client-generated identifier to distinguish between multiple range/buffer requests from the same array in the same call. This may be set for MultiArrayUDFs that use the `argument_json` style of passing arrays. * @return parameterId - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "An optional client-generated identifier to distinguish between multiple range/buffer requests from the same array in the same call. This may be set for MultiArrayUDFs that use the `argument_json` style of passing arrays. ") - public String getParameterId() { return parameterId; } - public void setParameterId(String parameterId) { this.parameterId = parameterId; } public UDFArrayDetails uri(String uri) { - this.uri = uri; return this; } - /** + /** * array to set ranges and buffers on, must be in tiledb:// format * @return uri - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "array to set ranges and buffers on, must be in tiledb:// format") - public String getUri() { return uri; } - public void setUri(String uri) { this.uri = uri; } public UDFArrayDetails ranges(QueryRanges ranges) { - this.ranges = ranges; return this; } - /** + /** * Get ranges * @return ranges - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public QueryRanges getRanges() { return ranges; } - public void setRanges(QueryRanges ranges) { this.ranges = ranges; } public UDFArrayDetails buffers(List buffers) { - this.buffers = buffers; return this; } @@ -147,18 +144,15 @@ public UDFArrayDetails addBuffersItem(String buffersItem) { return this; } - /** + /** * List of buffers to fetch (attributes + dimensions) * @return buffers - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "List of buffers to fetch (attributes + dimensions)") - public List getBuffers() { return buffers; } - public void setBuffers(List buffers) { this.buffers = buffers; } @@ -173,6 +167,10 @@ public void setBuffers(List buffers) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the UDFArrayDetails instance itself */ public UDFArrayDetails putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -184,6 +182,8 @@ public UDFArrayDetails putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -191,6 +191,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -272,20 +275,19 @@ private String toIndentedString(Object o) { 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 UDFArrayDetails - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (UDFArrayDetails.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to UDFArrayDetails + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!UDFArrayDetails.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in UDFArrayDetails is not found in the empty JSON string", UDFArrayDetails.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("parameter_id") != null && !jsonObj.get("parameter_id").isJsonNull()) && !jsonObj.get("parameter_id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `parameter_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("parameter_id").toString())); } @@ -294,10 +296,10 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { } // validate the optional field `ranges` if (jsonObj.get("ranges") != null && !jsonObj.get("ranges").isJsonNull()) { - QueryRanges.validateJsonObject(jsonObj.getAsJsonObject("ranges")); + QueryRanges.validateJsonElement(jsonObj.get("ranges")); } - // ensure the json data is an array - if ((jsonObj.get("buffers") != null && !jsonObj.get("buffers").isJsonNull()) && !jsonObj.get("buffers").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("buffers") != null && !jsonObj.get("buffers").isJsonNull() && !jsonObj.get("buffers").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `buffers` to be an array in the JSON string but got `%s`", jsonObj.get("buffers").toString())); } } @@ -318,7 +320,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, UDFArrayDetails value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -330,7 +332,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -339,8 +346,9 @@ else if (entry.getValue() instanceof Character) @Override public UDFArrayDetails read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance UDFArrayDetails instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -354,8 +362,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -366,22 +376,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of UDFArrayDetails given an JSON string - * - * @param jsonString JSON string - * @return An instance of UDFArrayDetails - * @throws IOException if the JSON string is invalid with respect to UDFArrayDetails - */ + /** + * Create an instance of UDFArrayDetails given an JSON string + * + * @param jsonString JSON string + * @return An instance of UDFArrayDetails + * @throws IOException if the JSON string is invalid with respect to UDFArrayDetails + */ public static UDFArrayDetails fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, UDFArrayDetails.class); } - /** - * Convert an instance of UDFArrayDetails to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of UDFArrayDetails 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/UDFCopied.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFCopied.java index 60c237d..7dd7b54 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,33 +14,42 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.Arrays; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class UDFCopied { public static final String SERIALIZED_NAME_OUTPUT_URI = "output_uri"; @SerializedName(SERIALIZED_NAME_OUTPUT_URI) @@ -62,92 +71,76 @@ public UDFCopied() { } public UDFCopied outputUri(String outputUri) { - this.outputUri = outputUri; return this; } - /** + /** * output location of the TileDB udf * @return outputUri - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "output location of the TileDB udf") - public String getOutputUri() { return outputUri; } - public void setOutputUri(String outputUri) { this.outputUri = outputUri; } public UDFCopied namespace(String namespace) { - this.namespace = namespace; return this; } - /** + /** * namespace of the copied udf * @return namespace - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "namespace of the copied udf") - public String getNamespace() { return namespace; } - public void setNamespace(String namespace) { this.namespace = namespace; } public UDFCopied name(String name) { - this.name = name; return this; } - /** + /** * name of the copied udf * @return name - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "name of the copied udf") - public String getName() { return name; } - public void setName(String name) { this.name = name; } public UDFCopied id(String id) { - this.id = id; return this; } - /** + /** * unique ID of the copied udf * @return id - **/ + */ @javax.annotation.Nonnull - @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", required = true, value = "unique ID of the copied udf") - public String getId() { return id; } - public void setId(String id) { this.id = id; } @@ -162,6 +155,10 @@ public void setId(String id) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the UDFCopied instance itself */ public UDFCopied putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -173,6 +170,8 @@ public UDFCopied putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -180,6 +179,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -251,27 +253,26 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("id"); } - /** - * 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 UDFCopied - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (UDFCopied.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to UDFCopied + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!UDFCopied.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in UDFCopied is not found in the empty JSON string", UDFCopied.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : UDFCopied.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 (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("output_uri") != null && !jsonObj.get("output_uri").isJsonNull()) && !jsonObj.get("output_uri").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `output_uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("output_uri").toString())); } @@ -281,7 +282,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { 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("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { + if (!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())); } } @@ -302,7 +303,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, UDFCopied value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -314,7 +315,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -323,8 +329,9 @@ else if (entry.getValue() instanceof Character) @Override public UDFCopied read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance UDFCopied instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -338,8 +345,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -350,22 +359,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of UDFCopied given an JSON string - * - * @param jsonString JSON string - * @return An instance of UDFCopied - * @throws IOException if the JSON string is invalid with respect to UDFCopied - */ + /** + * Create an instance of UDFCopied given an JSON string + * + * @param jsonString JSON string + * @return An instance of UDFCopied + * @throws IOException if the JSON string is invalid with respect to UDFCopied + */ public static UDFCopied fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, UDFCopied.class); } - /** - * Convert an instance of UDFCopied to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of UDFCopied 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/UDFCopy.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFCopy.java index b3e315c..b886a8e 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,33 +14,42 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.Arrays; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class UDFCopy { public static final String SERIALIZED_NAME_OUTPUT_URI = "output_uri"; @SerializedName(SERIALIZED_NAME_OUTPUT_URI) @@ -58,69 +67,57 @@ public UDFCopy() { } public UDFCopy outputUri(String outputUri) { - this.outputUri = outputUri; return this; } - /** + /** * output location of the TileDB File * @return outputUri - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "output location of the TileDB File") - public String getOutputUri() { return outputUri; } - public void setOutputUri(String outputUri) { this.outputUri = outputUri; } public UDFCopy namespace(String namespace) { - this.namespace = namespace; return this; } - /** + /** * namespace to register the copy. If empty use the namespace of the request user * @return namespace - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "namespace to register the copy. If empty use the namespace of the request user") - public String getNamespace() { return namespace; } - public void setNamespace(String namespace) { this.namespace = namespace; } public UDFCopy name(String name) { - this.name = name; return this; } - /** + /** * name to set for the copy. If empty use the name as the original udf, if it not already used in the namespace * @return name - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "name to set for the copy. If empty use the name as the original udf, if it not already used in the namespace") - public String getName() { return name; } - public void setName(String name) { this.name = name; } @@ -135,6 +132,10 @@ public void setName(String name) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the UDFCopy instance itself */ public UDFCopy putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -146,6 +147,8 @@ public UDFCopy putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -153,6 +156,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -220,20 +226,19 @@ private String toIndentedString(Object o) { 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 UDFCopy - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (UDFCopy.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to UDFCopy + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!UDFCopy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in UDFCopy is not found in the empty JSON string", UDFCopy.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("output_uri") != null && !jsonObj.get("output_uri").isJsonNull()) && !jsonObj.get("output_uri").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `output_uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("output_uri").toString())); } @@ -261,7 +266,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, UDFCopy value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -273,7 +278,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -282,8 +292,9 @@ else if (entry.getValue() instanceof Character) @Override public UDFCopy read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance UDFCopy instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -297,8 +308,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -309,22 +322,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of UDFCopy given an JSON string - * - * @param jsonString JSON string - * @return An instance of UDFCopy - * @throws IOException if the JSON string is invalid with respect to UDFCopy - */ + /** + * Create an instance of UDFCopy given an JSON string + * + * @param jsonString JSON string + * @return An instance of UDFCopy + * @throws IOException if the JSON string is invalid with respect to UDFCopy + */ public static UDFCopy fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, UDFCopy.class); } - /** - * Convert an instance of UDFCopy to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of UDFCopy 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/UDFFavorite.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFFavorite.java index 7d2b7d7..d2a7118 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,33 +14,42 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.Arrays; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class UDFFavorite { public static final String SERIALIZED_NAME_UDF_UUID = "udf_uuid"; @SerializedName(SERIALIZED_NAME_UDF_UUID) @@ -58,69 +67,57 @@ public UDFFavorite() { } public UDFFavorite udfUuid(String udfUuid) { - this.udfUuid = udfUuid; return this; } - /** + /** * unique UUID of the UDF * @return udfUuid - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "unique UUID of the UDF") - public String getUdfUuid() { return udfUuid; } - public void setUdfUuid(String udfUuid) { this.udfUuid = udfUuid; } public UDFFavorite namespace(String namespace) { - this.namespace = namespace; return this; } - /** + /** * the namespace of the UDF * @return namespace - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "the namespace of the UDF") - public String getNamespace() { return namespace; } - public void setNamespace(String namespace) { this.namespace = namespace; } public UDFFavorite name(String name) { - this.name = name; return this; } - /** + /** * the name of the UDF * @return name - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "the name of the UDF") - public String getName() { return name; } - public void setName(String name) { this.name = name; } @@ -135,6 +132,10 @@ public void setName(String name) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the UDFFavorite instance itself */ public UDFFavorite putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -146,6 +147,8 @@ public UDFFavorite putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -153,6 +156,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -220,20 +226,19 @@ private String toIndentedString(Object o) { 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 UDFFavorite - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (UDFFavorite.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to UDFFavorite + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!UDFFavorite.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in UDFFavorite is not found in the empty JSON string", UDFFavorite.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("udf_uuid") != null && !jsonObj.get("udf_uuid").isJsonNull()) && !jsonObj.get("udf_uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `udf_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("udf_uuid").toString())); } @@ -261,7 +266,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, UDFFavorite value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -273,7 +278,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -282,8 +292,9 @@ else if (entry.getValue() instanceof Character) @Override public UDFFavorite read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance UDFFavorite instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -297,8 +308,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -309,22 +322,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of UDFFavorite given an JSON string - * - * @param jsonString JSON string - * @return An instance of UDFFavorite - * @throws IOException if the JSON string is invalid with respect to UDFFavorite - */ + /** + * Create an instance of UDFFavorite given an JSON string + * + * @param jsonString JSON string + * @return An instance of UDFFavorite + * @throws IOException if the JSON string is invalid with respect to UDFFavorite + */ public static UDFFavorite fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, UDFFavorite.class); } - /** - * Convert an instance of UDFFavorite to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of UDFFavorite 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/UDFFavoritesData.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFFavoritesData.java index c3d7d28..1173cf0 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,40 +14,50 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.ArrayInfo; +import io.tiledb.cloud.rest_api.model.PaginationMetadata; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class UDFFavoritesData { public static final String SERIALIZED_NAME_UDFS = "udfs"; @SerializedName(SERIALIZED_NAME_UDFS) - private List udfs = null; + private List udfs = new ArrayList<>(); public static final String SERIALIZED_NAME_PAGINATION_METADATA = "pagination_metadata"; @SerializedName(SERIALIZED_NAME_PAGINATION_METADATA) @@ -57,7 +67,6 @@ public UDFFavoritesData() { } public UDFFavoritesData udfs(List udfs) { - this.udfs = udfs; return this; } @@ -70,41 +79,34 @@ public UDFFavoritesData addUdfsItem(ArrayInfo udfsItem) { return this; } - /** + /** * List of UDF infos * @return udfs - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "List of UDF infos") - public List getUdfs() { return udfs; } - public void setUdfs(List udfs) { this.udfs = udfs; } public UDFFavoritesData 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; } @@ -119,6 +121,10 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the UDFFavoritesData instance itself */ public UDFFavoritesData putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -130,6 +136,8 @@ public UDFFavoritesData putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -137,6 +145,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -201,35 +212,36 @@ private String toIndentedString(Object o) { 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 UDFFavoritesData - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (UDFFavoritesData.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to UDFFavoritesData + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!UDFFavoritesData.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in UDFFavoritesData is not found in the empty JSON string", UDFFavoritesData.openapiRequiredFields.toString())); } } - JsonArray jsonArrayudfs = jsonObj.getAsJsonArray("udfs"); - if (jsonArrayudfs != null) { - // ensure the json data is an array - if (!jsonObj.get("udfs").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `udfs` to be an array in the JSON string but got `%s`", jsonObj.get("udfs").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("udfs") != null && !jsonObj.get("udfs").isJsonNull()) { + JsonArray jsonArrayudfs = jsonObj.getAsJsonArray("udfs"); + if (jsonArrayudfs != null) { + // ensure the json data is an array + if (!jsonObj.get("udfs").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `udfs` to be an array in the JSON string but got `%s`", jsonObj.get("udfs").toString())); + } + + // validate the optional field `udfs` (array) + for (int i = 0; i < jsonArrayudfs.size(); i++) { + ArrayInfo.validateJsonElement(jsonArrayudfs.get(i)); + }; } - - // validate the optional field `udfs` (array) - for (int i = 0; i < jsonArrayudfs.size(); i++) { - ArrayInfo.validateJsonObject(jsonArrayudfs.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")); + PaginationMetadata.validateJsonElement(jsonObj.get("pagination_metadata")); } } @@ -249,7 +261,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, UDFFavoritesData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -261,7 +273,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -270,8 +287,9 @@ else if (entry.getValue() instanceof Character) @Override public UDFFavoritesData read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance UDFFavoritesData instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -285,8 +303,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -297,22 +317,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of UDFFavoritesData given an JSON string - * - * @param jsonString JSON string - * @return An instance of UDFFavoritesData - * @throws IOException if the JSON string is invalid with respect to UDFFavoritesData - */ + /** + * Create an instance of UDFFavoritesData given an JSON string + * + * @param jsonString JSON string + * @return An instance of UDFFavoritesData + * @throws IOException if the JSON string is invalid with respect to UDFFavoritesData + */ public static UDFFavoritesData fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, UDFFavoritesData.class); } - /** - * Convert an instance of UDFFavoritesData to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of UDFFavoritesData 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/UDFImage.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFImage.java index d07f710..48f3d39 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,33 +14,43 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.UDFLanguage; import java.io.IOException; +import java.util.Arrays; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class UDFImage { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -58,69 +68,57 @@ public UDFImage() { } public UDFImage id(String id) { - this.id = id; return this; } - /** + /** * Unique ID of set of images * @return id - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", value = "Unique ID of set of images") - public String getId() { return id; } - public void setId(String id) { this.id = id; } public UDFImage name(String name) { - this.name = name; return this; } - /** + /** * name of UDF * @return name - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "name of UDF") - public String getName() { return name; } - public void setName(String name) { this.name = name; } public UDFImage language(UDFLanguage language) { - this.language = language; return this; } - /** + /** * Get language * @return language - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public UDFLanguage getLanguage() { return language; } - public void setLanguage(UDFLanguage language) { this.language = language; } @@ -135,6 +133,10 @@ public void setLanguage(UDFLanguage language) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the UDFImage instance itself */ public UDFImage putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -146,6 +148,8 @@ public UDFImage putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -153,6 +157,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -220,26 +227,29 @@ private String toIndentedString(Object o) { 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 UDFImage - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (UDFImage.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to UDFImage + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!UDFImage.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in UDFImage is not found in the empty JSON string", UDFImage.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); } + // validate the optional field `language` + if (jsonObj.get("language") != null && !jsonObj.get("language").isJsonNull()) { + UDFLanguage.validateJsonElement(jsonObj.get("language")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -258,7 +268,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, UDFImage value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -270,7 +280,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -279,8 +294,9 @@ else if (entry.getValue() instanceof Character) @Override public UDFImage read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance UDFImage instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -294,8 +310,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -306,22 +324,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of UDFImage given an JSON string - * - * @param jsonString JSON string - * @return An instance of UDFImage - * @throws IOException if the JSON string is invalid with respect to UDFImage - */ + /** + * Create an instance of UDFImage given an JSON string + * + * @param jsonString JSON string + * @return An instance of UDFImage + * @throws IOException if the JSON string is invalid with respect to UDFImage + */ public static UDFImage fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, UDFImage.class); } - /** - * Convert an instance of UDFImage to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of UDFImage 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/UDFImageVersion.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFImageVersion.java index 54a491c..ca9f878 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,34 +14,43 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.math.BigDecimal; +import java.util.Arrays; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class UDFImageVersion { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -75,161 +84,133 @@ public UDFImageVersion() { } public UDFImageVersion id(String id) { - this.id = id; return this; } - /** + /** * Unique ID of a versioned image * @return id - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", value = "Unique ID of a versioned image") - public String getId() { return id; } - public void setId(String id) { this.id = id; } public UDFImageVersion name(String name) { - this.name = name; return this; } - /** + /** * name of UDFImageVersion * @return name - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "name of UDFImageVersion") - public String getName() { return name; } - public void setName(String name) { this.name = name; } public UDFImageVersion udfImageUuid(String udfImageUuid) { - this.udfImageUuid = udfImageUuid; return this; } - /** + /** * Unique ID of the UDF image set * @return udfImageUuid - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", value = "Unique ID of the UDF image set") - public String getUdfImageUuid() { return udfImageUuid; } - public void setUdfImageUuid(String udfImageUuid) { this.udfImageUuid = udfImageUuid; } public UDFImageVersion dockerImage(String dockerImage) { - this.dockerImage = dockerImage; return this; } - /** + /** * Uri of docker image related to current entry * @return dockerImage - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Uri of docker image related to current entry") - public String getDockerImage() { return dockerImage; } - public void setDockerImage(String dockerImage) { this.dockerImage = dockerImage; } public UDFImageVersion version(BigDecimal version) { - this.version = version; return this; } - /** + /** * Image-specific version * @return version - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "2.0", value = "Image-specific version") - public BigDecimal getVersion() { return version; } - public void setVersion(BigDecimal version) { this.version = version; } public UDFImageVersion _default(Boolean _default) { - this._default = _default; return this; } - /** + /** * If current image is default version * @return _default - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "true", value = "If current image is default version") - public Boolean getDefault() { return _default; } - public void setDefault(Boolean _default) { this._default = _default; } public UDFImageVersion latest(Boolean latest) { - this.latest = latest; return this; } - /** + /** * If current image is latest version * @return latest - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "true", value = "If current image is latest version") - public Boolean getLatest() { return latest; } - public void setLatest(Boolean latest) { this.latest = latest; } @@ -244,6 +225,10 @@ public void setLatest(Boolean latest) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the UDFImageVersion instance itself */ public UDFImageVersion putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -255,6 +240,8 @@ public UDFImageVersion putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -262,6 +249,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -341,20 +331,19 @@ private String toIndentedString(Object o) { 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 UDFImageVersion - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (UDFImageVersion.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to UDFImageVersion + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!UDFImageVersion.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in UDFImageVersion is not found in the empty JSON string", UDFImageVersion.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); } @@ -385,7 +374,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, UDFImageVersion value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -397,7 +386,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -406,8 +400,9 @@ else if (entry.getValue() instanceof Character) @Override public UDFImageVersion read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance UDFImageVersion instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -421,8 +416,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -433,22 +430,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of UDFImageVersion given an JSON string - * - * @param jsonString JSON string - * @return An instance of UDFImageVersion - * @throws IOException if the JSON string is invalid with respect to UDFImageVersion - */ + /** + * Create an instance of UDFImageVersion given an JSON string + * + * @param jsonString JSON string + * @return An instance of UDFImageVersion + * @throws IOException if the JSON string is invalid with respect to UDFImageVersion + */ public static UDFImageVersion fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, UDFImageVersion.class); } - /** - * Convert an instance of UDFImageVersion to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of UDFImageVersion 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/UDFInfo.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFInfo.java index b677626..8879166 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,35 +14,46 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.UDFLanguage; +import io.tiledb.cloud.rest_api.model.UDFType; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class UDFInfo { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -74,174 +85,145 @@ public class UDFInfo { public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) - private List tags = null; + private List tags = new ArrayList<>(); public UDFInfo() { } public UDFInfo id(String id) { - this.id = id; return this; } - /** + /** * Unique ID of UDF * @return id - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", value = "Unique ID of UDF") - public String getId() { return id; } - public void setId(String id) { this.id = id; } public UDFInfo name(String name) { - this.name = name; return this; } - /** + /** * name of UDF * @return name - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "name of UDF") - public String getName() { return name; } - public void setName(String name) { this.name = name; } public UDFInfo language(UDFLanguage language) { - this.language = language; return this; } - /** + /** * Get language * @return language - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public UDFLanguage getLanguage() { return language; } - public void setLanguage(UDFLanguage language) { this.language = language; } public UDFInfo type(UDFType type) { - this.type = type; return this; } - /** + /** * Get type * @return type - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public UDFType getType() { return type; } - public void setType(UDFType type) { this.type = type; } public UDFInfo readme(String readme) { - this.readme = readme; return this; } - /** + /** * Markdown readme of UDFs * @return readme - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Markdown readme of UDFs") - public String getReadme() { return readme; } - public void setReadme(String readme) { this.readme = readme; } public UDFInfo licenseId(String licenseId) { - this.licenseId = licenseId; return this; } - /** + /** * License identifier from SPDX License List or Custom * @return licenseId - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "License identifier from SPDX License List or Custom") - public String getLicenseId() { return licenseId; } - public void setLicenseId(String licenseId) { this.licenseId = licenseId; } public UDFInfo licenseText(String licenseText) { - this.licenseText = licenseText; return this; } - /** + /** * License text * @return licenseText - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "License text") - public String getLicenseText() { return licenseText; } - public void setLicenseText(String licenseText) { this.licenseText = licenseText; } public UDFInfo tags(List tags) { - this.tags = tags; return this; } @@ -254,18 +236,15 @@ public UDFInfo addTagsItem(String tagsItem) { return this; } - /** + /** * optional tags for UDF * @return tags - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "optional tags for UDF") - public List getTags() { return tags; } - public void setTags(List tags) { this.tags = tags; } @@ -280,6 +259,10 @@ public void setTags(List tags) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the UDFInfo instance itself */ public UDFInfo putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -291,6 +274,8 @@ public UDFInfo putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -298,6 +283,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -380,26 +368,33 @@ private String toIndentedString(Object o) { 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 UDFInfo - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (UDFInfo.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to UDFInfo + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!UDFInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in UDFInfo is not found in the empty JSON string", UDFInfo.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); } + // validate the optional field `language` + if (jsonObj.get("language") != null && !jsonObj.get("language").isJsonNull()) { + UDFLanguage.validateJsonElement(jsonObj.get("language")); + } + // validate the optional field `type` + if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { + UDFType.validateJsonElement(jsonObj.get("type")); + } if ((jsonObj.get("readme") != null && !jsonObj.get("readme").isJsonNull()) && !jsonObj.get("readme").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `readme` to be a primitive type in the JSON string but got `%s`", jsonObj.get("readme").toString())); } @@ -409,8 +404,8 @@ 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())); } - // ensure the json data is an array - if ((jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) && !jsonObj.get("tags").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull() && !jsonObj.get("tags").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); } } @@ -431,7 +426,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, UDFInfo value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -443,7 +438,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -452,8 +452,9 @@ else if (entry.getValue() instanceof Character) @Override public UDFInfo read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance UDFInfo instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -467,8 +468,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -479,22 +482,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of UDFInfo given an JSON string - * - * @param jsonString JSON string - * @return An instance of UDFInfo - * @throws IOException if the JSON string is invalid with respect to UDFInfo - */ + /** + * Create an instance of UDFInfo given an JSON string + * + * @param jsonString JSON string + * @return An instance of UDFInfo + * @throws IOException if the JSON string is invalid with respect to UDFInfo + */ public static UDFInfo fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, UDFInfo.class); } - /** - * Convert an instance of UDFInfo to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of UDFInfo 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/UDFInfoUpdate.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFInfoUpdate.java index 2693901..65c7b13 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,35 +14,46 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.UDFLanguage; +import io.tiledb.cloud.rest_api.model.UDFType; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class UDFInfoUpdate { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -86,243 +97,202 @@ public class UDFInfoUpdate { public static final String SERIALIZED_NAME_TAGS = "tags"; @SerializedName(SERIALIZED_NAME_TAGS) - private List tags = null; + private List tags = new ArrayList<>(); public UDFInfoUpdate() { } public UDFInfoUpdate name(String name) { - this.name = name; return this; } - /** + /** * name of UDF * @return name - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "name of UDF") - public String getName() { return name; } - public void setName(String name) { this.name = name; } public UDFInfoUpdate language(UDFLanguage language) { - this.language = language; return this; } - /** + /** * Get language * @return language - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public UDFLanguage getLanguage() { return language; } - public void setLanguage(UDFLanguage language) { this.language = language; } public UDFInfoUpdate version(String version) { - this.version = version; return this; } - /** + /** * Type-specific version * @return version - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Type-specific version") - public String getVersion() { return version; } - public void setVersion(String version) { this.version = version; } public UDFInfoUpdate imageName(String imageName) { - this.imageName = imageName; return this; } - /** + /** * Docker image name to use for UDF * @return imageName - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Docker image name to use for UDF") - public String getImageName() { return imageName; } - public void setImageName(String imageName) { this.imageName = imageName; } public UDFInfoUpdate type(UDFType type) { - this.type = type; return this; } - /** + /** * Get type * @return type - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public UDFType getType() { return type; } - public void setType(UDFType type) { this.type = type; } public UDFInfoUpdate exec(String exec) { - this.exec = exec; return this; } - /** + /** * Type-specific executable text * @return exec - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Type-specific executable text") - public String getExec() { return exec; } - public void setExec(String exec) { this.exec = exec; } public UDFInfoUpdate execRaw(String execRaw) { - this.execRaw = execRaw; return this; } - /** + /** * optional raw text to store of serialized function, used for showing in UI * @return execRaw - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "optional raw text to store of serialized function, used for showing in UI") - public String getExecRaw() { return execRaw; } - public void setExecRaw(String execRaw) { this.execRaw = execRaw; } public UDFInfoUpdate readme(String readme) { - this.readme = readme; return this; } - /** + /** * Markdown readme of UDFs * @return readme - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Markdown readme of UDFs") - public String getReadme() { return readme; } - public void setReadme(String readme) { this.readme = readme; } public UDFInfoUpdate licenseId(String licenseId) { - this.licenseId = licenseId; return this; } - /** + /** * License identifier from SPDX License List or Custom * @return licenseId - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "License identifier from SPDX License List or Custom") - public String getLicenseId() { return licenseId; } - public void setLicenseId(String licenseId) { this.licenseId = licenseId; } public UDFInfoUpdate licenseText(String licenseText) { - this.licenseText = licenseText; return this; } - /** + /** * License text * @return licenseText - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "License text") - public String getLicenseText() { return licenseText; } - public void setLicenseText(String licenseText) { this.licenseText = licenseText; } public UDFInfoUpdate tags(List tags) { - this.tags = tags; return this; } @@ -335,18 +305,15 @@ public UDFInfoUpdate addTagsItem(String tagsItem) { return this; } - /** + /** * optional tags for UDF * @return tags - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "optional tags for UDF") - public List getTags() { return tags; } - public void setTags(List tags) { this.tags = tags; } @@ -361,6 +328,10 @@ public void setTags(List tags) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the UDFInfoUpdate instance itself */ public UDFInfoUpdate putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -372,6 +343,8 @@ public UDFInfoUpdate putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -379,6 +352,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -470,29 +446,36 @@ private String toIndentedString(Object o) { 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 UDFInfoUpdate - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (UDFInfoUpdate.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to UDFInfoUpdate + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!UDFInfoUpdate.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in UDFInfoUpdate is not found in the empty JSON string", UDFInfoUpdate.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); 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())); } + // validate the optional field `language` + if (jsonObj.get("language") != null && !jsonObj.get("language").isJsonNull()) { + UDFLanguage.validateJsonElement(jsonObj.get("language")); + } if ((jsonObj.get("version") != null && !jsonObj.get("version").isJsonNull()) && !jsonObj.get("version").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `version` to be a primitive type in the JSON string but got `%s`", jsonObj.get("version").toString())); } if ((jsonObj.get("image_name") != null && !jsonObj.get("image_name").isJsonNull()) && !jsonObj.get("image_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `image_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("image_name").toString())); } + // validate the optional field `type` + if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) { + UDFType.validateJsonElement(jsonObj.get("type")); + } if ((jsonObj.get("exec") != null && !jsonObj.get("exec").isJsonNull()) && !jsonObj.get("exec").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `exec` to be a primitive type in the JSON string but got `%s`", jsonObj.get("exec").toString())); } @@ -508,8 +491,8 @@ 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())); } - // ensure the json data is an array - if ((jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull()) && !jsonObj.get("tags").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonNull() && !jsonObj.get("tags").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString())); } } @@ -530,7 +513,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, UDFInfoUpdate value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -542,7 +525,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -551,8 +539,9 @@ else if (entry.getValue() instanceof Character) @Override public UDFInfoUpdate read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance UDFInfoUpdate instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -566,8 +555,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -578,22 +569,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of UDFInfoUpdate given an JSON string - * - * @param jsonString JSON string - * @return An instance of UDFInfoUpdate - * @throws IOException if the JSON string is invalid with respect to UDFInfoUpdate - */ + /** + * Create an instance of UDFInfoUpdate given an JSON string + * + * @param jsonString JSON string + * @return An instance of UDFInfoUpdate + * @throws IOException if the JSON string is invalid with respect to UDFInfoUpdate + */ public static UDFInfoUpdate fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, UDFInfoUpdate.class); } - /** - * Convert an instance of UDFInfoUpdate to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of UDFInfoUpdate 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/UDFLanguage.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFLanguage.java index 3ffaf4b..480951d 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,8 +13,12 @@ package io.tiledb.cloud.rest_api.model; +import java.util.Objects; +import com.google.gson.annotations.SerializedName; + import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -65,5 +69,10 @@ public UDFLanguage read(final JsonReader jsonReader) throws IOException { return UDFLanguage.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + UDFLanguage.fromValue(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..f0f19d3 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,39 +14,49 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.UDFActions; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class UDFSharing { public static final String SERIALIZED_NAME_ACTIONS = "actions"; @SerializedName(SERIALIZED_NAME_ACTIONS) - private List actions = null; + private List actions = new ArrayList<>(); public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; @SerializedName(SERIALIZED_NAME_NAMESPACE) @@ -60,7 +70,6 @@ public UDFSharing() { } public UDFSharing actions(List actions) { - this.actions = actions; return this; } @@ -73,64 +82,53 @@ public UDFSharing addActionsItem(UDFActions actionsItem) { return this; } - /** + /** * List of permitted actions * @return actions - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "[fetch, share]", value = "List of permitted actions") - public List getActions() { return actions; } - public void setActions(List actions) { this.actions = actions; } public UDFSharing namespace(String namespace) { - this.namespace = namespace; return this; } - /** + /** * namespace being granted array access can be a user or organization * @return namespace - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "MyOrganization", value = "namespace being granted array access can be a user or organization") - public String getNamespace() { return namespace; } - public void setNamespace(String namespace) { this.namespace = namespace; } public UDFSharing namespaceType(String namespaceType) { - this.namespaceType = namespaceType; return this; } - /** + /** * details on if the namespace is a organization or user * @return namespaceType - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "organization", value = "details on if the namespace is a organization or user") - public String getNamespaceType() { return namespaceType; } - public void setNamespaceType(String namespaceType) { this.namespaceType = namespaceType; } @@ -145,6 +143,10 @@ public void setNamespaceType(String namespaceType) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the UDFSharing instance itself */ public UDFSharing putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -156,6 +158,8 @@ public UDFSharing putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -163,6 +167,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -230,22 +237,21 @@ private String toIndentedString(Object o) { 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 UDFSharing - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (UDFSharing.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to UDFSharing + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!UDFSharing.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in UDFSharing is not found in the empty JSON string", UDFSharing.openapiRequiredFields.toString())); } } - // ensure the json data is an array - if ((jsonObj.get("actions") != null && !jsonObj.get("actions").isJsonNull()) && !jsonObj.get("actions").isJsonArray()) { + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("actions") != null && !jsonObj.get("actions").isJsonNull() && !jsonObj.get("actions").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `actions` to be an array in the JSON string but got `%s`", jsonObj.get("actions").toString())); } if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { @@ -272,7 +278,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, UDFSharing value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -284,7 +290,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -293,8 +304,9 @@ else if (entry.getValue() instanceof Character) @Override public UDFSharing read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance UDFSharing instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -308,8 +320,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -320,22 +334,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of UDFSharing given an JSON string - * - * @param jsonString JSON string - * @return An instance of UDFSharing - * @throws IOException if the JSON string is invalid with respect to UDFSharing - */ + /** + * Create an instance of UDFSharing given an JSON string + * + * @param jsonString JSON string + * @return An instance of UDFSharing + * @throws IOException if the JSON string is invalid with respect to UDFSharing + */ public static UDFSharing fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, UDFSharing.class); } - /** - * Convert an instance of UDFSharing to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of UDFSharing 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/UDFSubarray.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFSubarray.java index 9174fee..84a91b6 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,36 +14,46 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.Layout; +import io.tiledb.cloud.rest_api.model.UDFSubarrayRange; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class UDFSubarray { public static final String SERIALIZED_NAME_LAYOUT = "layout"; @SerializedName(SERIALIZED_NAME_LAYOUT) @@ -51,36 +61,31 @@ public class UDFSubarray { public static final String SERIALIZED_NAME_RANGES = "ranges"; @SerializedName(SERIALIZED_NAME_RANGES) - private List ranges = null; + private List ranges = new ArrayList<>(); public UDFSubarray() { } public UDFSubarray layout(Layout layout) { - this.layout = layout; return this; } - /** + /** * Get layout * @return layout - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public Layout getLayout() { return layout; } - public void setLayout(Layout layout) { this.layout = layout; } public UDFSubarray ranges(List ranges) { - this.ranges = ranges; return this; } @@ -93,18 +98,15 @@ public UDFSubarray addRangesItem(UDFSubarrayRange rangesItem) { return this; } - /** + /** * List of ranges, * @return ranges - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "List of ranges,") - public List getRanges() { return ranges; } - public void setRanges(List ranges) { this.ranges = ranges; } @@ -119,6 +121,10 @@ public void setRanges(List ranges) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the UDFSubarray instance itself */ public UDFSubarray putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -130,6 +136,8 @@ public UDFSubarray putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -137,6 +145,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -201,31 +212,36 @@ private String toIndentedString(Object o) { 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 UDFSubarray - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (UDFSubarray.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to UDFSubarray + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!UDFSubarray.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in UDFSubarray is not found in the empty JSON string", UDFSubarray.openapiRequiredFields.toString())); } } - JsonArray jsonArrayranges = jsonObj.getAsJsonArray("ranges"); - if (jsonArrayranges != null) { - // ensure the json data is an array - if (!jsonObj.get("ranges").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `ranges` to be an array in the JSON string but got `%s`", jsonObj.get("ranges").toString())); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `layout` + if (jsonObj.get("layout") != null && !jsonObj.get("layout").isJsonNull()) { + Layout.validateJsonElement(jsonObj.get("layout")); + } + if (jsonObj.get("ranges") != null && !jsonObj.get("ranges").isJsonNull()) { + JsonArray jsonArrayranges = jsonObj.getAsJsonArray("ranges"); + if (jsonArrayranges != null) { + // ensure the json data is an array + if (!jsonObj.get("ranges").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `ranges` to be an array in the JSON string but got `%s`", jsonObj.get("ranges").toString())); + } + + // validate the optional field `ranges` (array) + for (int i = 0; i < jsonArrayranges.size(); i++) { + UDFSubarrayRange.validateJsonElement(jsonArrayranges.get(i)); + }; } - - // validate the optional field `ranges` (array) - for (int i = 0; i < jsonArrayranges.size(); i++) { - UDFSubarrayRange.validateJsonObject(jsonArrayranges.get(i).getAsJsonObject()); - }; } } @@ -245,7 +261,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, UDFSubarray value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -257,7 +273,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -266,8 +287,9 @@ else if (entry.getValue() instanceof Character) @Override public UDFSubarray read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance UDFSubarray instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -281,8 +303,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -293,22 +317,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of UDFSubarray given an JSON string - * - * @param jsonString JSON string - * @return An instance of UDFSubarray - * @throws IOException if the JSON string is invalid with respect to UDFSubarray - */ + /** + * Create an instance of UDFSubarray given an JSON string + * + * @param jsonString JSON string + * @return An instance of UDFSubarray + * @throws IOException if the JSON string is invalid with respect to UDFSubarray + */ public static UDFSubarray fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, UDFSubarray.class); } - /** - * Convert an instance of UDFSubarray to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of UDFSubarray 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/UDFSubarrayRange.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFSubarrayRange.java index 06473bf..18f73ac 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,33 +14,43 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.DimensionCoordinate; import java.io.IOException; +import java.util.Arrays; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class UDFSubarrayRange { public static final String SERIALIZED_NAME_DIMENSION_ID = "dimension_id"; @SerializedName(SERIALIZED_NAME_DIMENSION_ID) @@ -58,69 +68,57 @@ public UDFSubarrayRange() { } public UDFSubarrayRange dimensionId(Integer dimensionId) { - this.dimensionId = dimensionId; return this; } - /** + /** * The dimension index * @return dimensionId - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "The dimension index") - public Integer getDimensionId() { return dimensionId; } - public void setDimensionId(Integer dimensionId) { this.dimensionId = dimensionId; } public UDFSubarrayRange rangeStart(DimensionCoordinate rangeStart) { - this.rangeStart = rangeStart; return this; } - /** + /** * Get rangeStart * @return rangeStart - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public DimensionCoordinate getRangeStart() { return rangeStart; } - public void setRangeStart(DimensionCoordinate rangeStart) { this.rangeStart = rangeStart; } public UDFSubarrayRange rangeEnd(DimensionCoordinate rangeEnd) { - this.rangeEnd = rangeEnd; return this; } - /** + /** * Get rangeEnd * @return rangeEnd - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public DimensionCoordinate getRangeEnd() { return rangeEnd; } - public void setRangeEnd(DimensionCoordinate rangeEnd) { this.rangeEnd = rangeEnd; } @@ -135,6 +133,10 @@ public void setRangeEnd(DimensionCoordinate rangeEnd) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the UDFSubarrayRange instance itself */ public UDFSubarrayRange putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -146,6 +148,8 @@ public UDFSubarrayRange putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -153,6 +157,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -220,27 +227,26 @@ private String toIndentedString(Object o) { 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 UDFSubarrayRange - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (UDFSubarrayRange.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to UDFSubarrayRange + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!UDFSubarrayRange.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in UDFSubarrayRange is not found in the empty JSON string", UDFSubarrayRange.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `range_start` if (jsonObj.get("range_start") != null && !jsonObj.get("range_start").isJsonNull()) { - DimensionCoordinate.validateJsonObject(jsonObj.getAsJsonObject("range_start")); + DimensionCoordinate.validateJsonElement(jsonObj.get("range_start")); } // validate the optional field `range_end` if (jsonObj.get("range_end") != null && !jsonObj.get("range_end").isJsonNull()) { - DimensionCoordinate.validateJsonObject(jsonObj.getAsJsonObject("range_end")); + DimensionCoordinate.validateJsonElement(jsonObj.get("range_end")); } } @@ -260,7 +266,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, UDFSubarrayRange value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -272,7 +278,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -281,8 +292,9 @@ else if (entry.getValue() instanceof Character) @Override public UDFSubarrayRange read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance UDFSubarrayRange instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -296,8 +308,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -308,22 +322,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of UDFSubarrayRange given an JSON string - * - * @param jsonString JSON string - * @return An instance of UDFSubarrayRange - * @throws IOException if the JSON string is invalid with respect to UDFSubarrayRange - */ + /** + * Create an instance of UDFSubarrayRange given an JSON string + * + * @param jsonString JSON string + * @return An instance of UDFSubarrayRange + * @throws IOException if the JSON string is invalid with respect to UDFSubarrayRange + */ public static UDFSubarrayRange fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, UDFSubarrayRange.class); } - /** - * Convert an instance of UDFSubarrayRange to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of UDFSubarrayRange 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/UDFType.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFType.java index c4892b1..5554783 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,8 +13,12 @@ package io.tiledb.cloud.rest_api.model; +import java.util.Objects; +import com.google.gson.annotations.SerializedName; + import java.io.IOException; import com.google.gson.TypeAdapter; +import com.google.gson.JsonElement; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; @@ -67,5 +71,10 @@ public UDFType read(final JsonReader jsonReader) throws IOException { return UDFType.fromValue(value); } } + + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + String value = jsonElement.getAsString(); + UDFType.fromValue(value); + } } 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..ab46e80 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). @@ -14,37 +14,48 @@ 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.JsonAdapter; 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 io.tiledb.cloud.rest_api.model.AssetLocations; +import io.tiledb.cloud.rest_api.model.NamespaceActions; +import io.tiledb.cloud.rest_api.model.OrganizationUser; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; 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.GsonBuilder; import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; + +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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class User { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -88,15 +99,15 @@ public class User { public static final String SERIALIZED_NAME_ORGANIZATIONS = "organizations"; @SerializedName(SERIALIZED_NAME_ORGANIZATIONS) - private List organizations = null; + private List organizations = new ArrayList<>(); public static final String SERIALIZED_NAME_ALLOWED_ACTIONS = "allowed_actions"; @SerializedName(SERIALIZED_NAME_ALLOWED_ACTIONS) - private List allowedActions = null; + private List allowedActions = new ArrayList<>(); public static final String SERIALIZED_NAME_ENABLED_FEATURES = "enabled_features"; @SerializedName(SERIALIZED_NAME_ENABLED_FEATURES) - private List enabledFeatures = null; + private List enabledFeatures = new ArrayList<>(); public static final String SERIALIZED_NAME_UNPAID_SUBSCRIPTION = "unpaid_subscription"; @SerializedName(SERIALIZED_NAME_UNPAID_SUBSCRIPTION) @@ -118,10 +129,13 @@ 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() { } - public User( Boolean isValidEmail, Boolean stripeConnect, @@ -138,233 +152,191 @@ public User( } public User id(String id) { - this.id = id; return this; } - /** + /** * unique ID of user * @return id - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "00000000-0000-0000-0000-000000000000", value = "unique ID of user") - public String getId() { return id; } - public void setId(String id) { this.id = id; } public User username(String username) { - this.username = username; return this; } - /** + /** * username must be unique * @return username - **/ + */ @javax.annotation.Nonnull - @ApiModelProperty(example = "username", required = true, value = "username must be unique") - public String getUsername() { return username; } - public void setUsername(String username) { this.username = username; } public User password(String password) { - this.password = password; return this; } - /** + /** * password * @return password - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "password", value = "password") - public String getPassword() { return password; } - public void setPassword(String password) { this.password = password; } public User name(String name) { - this.name = name; return this; } - /** + /** * the user's full, real name * @return name - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "Jane Doe", value = "the user's full, real name") - public String getName() { return name; } - public void setName(String name) { this.name = name; } public User email(String email) { - this.email = email; return this; } - /** + /** * the user's email * @return email - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "jane.doe@example.com", value = "the user's email") - public String getEmail() { return email; } - public void setEmail(String email) { this.email = email; } - /** + /** * user's email is validated to be correct * @return isValidEmail - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "false", value = "user's email is validated to be correct") - public Boolean getIsValidEmail() { return isValidEmail; } - - /** + /** * Denotes that the user is able to apply pricing to arrays by means of Stripe Connect * @return stripeConnect - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "false", value = "Denotes that the user is able to apply pricing to arrays by means of Stripe Connect") - public Boolean getStripeConnect() { return stripeConnect; } - public User company(String company) { - this.company = company; return this; } - /** + /** * the user's company * @return company - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "TileDB", value = "the user's company") - public String getCompany() { return company; } - public void setCompany(String company) { this.company = company; } public User logo(String logo) { - this.logo = logo; return this; } - /** + /** * the user's logo * @return logo - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "the user's logo") - public String getLogo() { return logo; } - public void setLogo(String logo) { this.logo = logo; } public User timezone(String timezone) { - this.timezone = timezone; return this; } - /** + /** * Get timezone * @return timezone - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(example = "Europe/Athens", value = "") - public String getTimezone() { return timezone; } - public void setTimezone(String timezone) { this.timezone = timezone; } - /** + /** * Array of organizations a user is part of and their roles * @return organizations - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Array of organizations a user is part of and their roles") - public List getOrganizations() { return organizations; } - public User allowedActions(List allowedActions) { - this.allowedActions = allowedActions; return this; } @@ -377,142 +349,136 @@ public User addAllowedActionsItem(NamespaceActions allowedActionsItem) { return this; } - /** + /** * list of actions user is allowed to do on this organization * @return allowedActions - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "list of actions user is allowed to do on this organization") - public List getAllowedActions() { return allowedActions; } - public void setAllowedActions(List allowedActions) { this.allowedActions = allowedActions; } - /** + /** * List of extra/optional/beta features to enable for namespace * @return enabledFeatures - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "List of extra/optional/beta features to enable for namespace") - public List getEnabledFeatures() { return enabledFeatures; } - - /** + /** * A notice that the user has an unpaid subscription * @return unpaidSubscription - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "A notice that the user has an unpaid subscription") - public Boolean getUnpaidSubscription() { return unpaidSubscription; } - public User 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 User defaultS3PathCredentialsName(Object 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 Object getDefaultS3PathCredentialsName() { return defaultS3PathCredentialsName; } - public void setDefaultS3PathCredentialsName(Object defaultS3PathCredentialsName) { this.defaultS3PathCredentialsName = defaultS3PathCredentialsName; } public User 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; } public User defaultNamespaceCharged(String defaultNamespaceCharged) { - this.defaultNamespaceCharged = defaultNamespaceCharged; return this; } - /** + /** * Override the default namespace charged for actions when no namespace is specified * @return defaultNamespaceCharged - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "Override the default namespace charged for actions when no namespace is specified") - public String getDefaultNamespaceCharged() { return defaultNamespaceCharged; } - 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 + 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 @@ -523,6 +489,10 @@ public void setDefaultNamespaceCharged(String defaultNamespaceCharged) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the User instance itself */ public User putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -534,6 +504,8 @@ public User putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -541,6 +513,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -576,7 +551,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 +562,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 +594,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,37 +636,37 @@ 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(); openapiRequiredFields.add("username"); } - /** - * 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 User - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (User.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to User + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!User.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in User is not found in the empty JSON string", User.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string for (String requiredField : User.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 (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("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("username") != null && !jsonObj.get("username").isJsonNull()) && !jsonObj.get("username").isJsonPrimitive()) { + if (!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("password") != null && !jsonObj.get("password").isJsonNull()) && !jsonObj.get("password").isJsonPrimitive()) { @@ -710,24 +687,26 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if ((jsonObj.get("timezone") != null && !jsonObj.get("timezone").isJsonNull()) && !jsonObj.get("timezone").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `timezone` to be a primitive type in the JSON string but got `%s`", jsonObj.get("timezone").toString())); } - JsonArray jsonArrayorganizations = jsonObj.getAsJsonArray("organizations"); - if (jsonArrayorganizations != null) { - // ensure the json data is an array - if (!jsonObj.get("organizations").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `organizations` to be an array in the JSON string but got `%s`", jsonObj.get("organizations").toString())); + if (jsonObj.get("organizations") != null && !jsonObj.get("organizations").isJsonNull()) { + JsonArray jsonArrayorganizations = jsonObj.getAsJsonArray("organizations"); + if (jsonArrayorganizations != null) { + // ensure the json data is an array + if (!jsonObj.get("organizations").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `organizations` to be an array in the JSON string but got `%s`", jsonObj.get("organizations").toString())); + } + + // validate the optional field `organizations` (array) + for (int i = 0; i < jsonArrayorganizations.size(); i++) { + OrganizationUser.validateJsonElement(jsonArrayorganizations.get(i)); + }; } - - // validate the optional field `organizations` (array) - for (int i = 0; i < jsonArrayorganizations.size(); i++) { - OrganizationUser.validateJsonObject(jsonArrayorganizations.get(i).getAsJsonObject()); - }; } - // ensure the json data is an array - if ((jsonObj.get("allowed_actions") != null && !jsonObj.get("allowed_actions").isJsonNull()) && !jsonObj.get("allowed_actions").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("allowed_actions") != null && !jsonObj.get("allowed_actions").isJsonNull() && !jsonObj.get("allowed_actions").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `allowed_actions` to be an array in the JSON string but got `%s`", jsonObj.get("allowed_actions").toString())); } - // ensure the json data is an array - if ((jsonObj.get("enabled_features") != null && !jsonObj.get("enabled_features").isJsonNull()) && !jsonObj.get("enabled_features").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("enabled_features") != null && !jsonObj.get("enabled_features").isJsonNull() && !jsonObj.get("enabled_features").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `enabled_features` to be an array in the JSON string but got `%s`", jsonObj.get("enabled_features").toString())); } if ((jsonObj.get("default_s3_path") != null && !jsonObj.get("default_s3_path").isJsonNull()) && !jsonObj.get("default_s3_path").isJsonPrimitive()) { @@ -735,11 +714,14 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { } // validate the optional field `asset_locations` if (jsonObj.get("asset_locations") != null && !jsonObj.get("asset_locations").isJsonNull()) { - AssetLocations.validateJsonObject(jsonObj.getAsJsonObject("asset_locations")); + AssetLocations.validateJsonElement(jsonObj.get("asset_locations")); } 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 { @@ -758,7 +740,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, User value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -770,7 +752,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -779,8 +766,9 @@ else if (entry.getValue() instanceof Character) @Override public User read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance User instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -794,8 +782,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -806,22 +796,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of User given an JSON string - * - * @param jsonString JSON string - * @return An instance of User - * @throws IOException if the JSON string is invalid with respect to User - */ + /** + * Create an instance of User given an JSON string + * + * @param jsonString JSON string + * @return An instance of User + * @throws IOException if the JSON string is invalid with respect to User + */ public static User fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, User.class); } - /** - * Convert an instance of User to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of User 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/Writer.java b/src/main/java/io/tiledb/cloud/rest_api/model/Writer.java index e752eb3..3c758a4 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,31 +14,43 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModelProperty; +import io.tiledb.cloud.rest_api.model.DomainArray; import java.io.IOException; +import java.util.Arrays; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Map; +import java.util.Set; import io.tiledb.cloud.rest_api.JSON; /** * 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 = "2024-09-13T19:24:49.771847040-04:00[America/New_York]", comments = "Generator version: 7.7.0") public class Writer { public static final String SERIALIZED_NAME_CHECK_COORD_DUPS = "checkCoordDups"; @SerializedName(SERIALIZED_NAME_CHECK_COORD_DUPS) @@ -60,92 +72,76 @@ public Writer() { } public Writer checkCoordDups(Boolean checkCoordDups) { - this.checkCoordDups = checkCoordDups; return this; } - /** + /** * Get checkCoordDups * @return checkCoordDups - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public Boolean getCheckCoordDups() { return checkCoordDups; } - public void setCheckCoordDups(Boolean checkCoordDups) { this.checkCoordDups = checkCoordDups; } public Writer checkCoordOOB(Boolean checkCoordOOB) { - this.checkCoordOOB = checkCoordOOB; return this; } - /** + /** * Get checkCoordOOB * @return checkCoordOOB - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public Boolean getCheckCoordOOB() { return checkCoordOOB; } - public void setCheckCoordOOB(Boolean checkCoordOOB) { this.checkCoordOOB = checkCoordOOB; } public Writer dedupCoords(Boolean dedupCoords) { - this.dedupCoords = dedupCoords; return this; } - /** + /** * Get dedupCoords * @return dedupCoords - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public Boolean getDedupCoords() { return dedupCoords; } - public void setDedupCoords(Boolean dedupCoords) { this.dedupCoords = dedupCoords; } public Writer subarray(DomainArray subarray) { - this.subarray = subarray; return this; } - /** + /** * Get subarray * @return subarray - **/ + */ @javax.annotation.Nullable - @ApiModelProperty(value = "") - public DomainArray getSubarray() { return subarray; } - public void setSubarray(DomainArray subarray) { this.subarray = subarray; } @@ -160,6 +156,10 @@ public void setSubarray(DomainArray subarray) { /** * Set the additional (undeclared) property with the specified name and value. * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the Writer instance itself */ public Writer putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { @@ -171,6 +171,8 @@ public Writer putAdditionalProperty(String key, Object value) { /** * Return the additional (undeclared) property. + * + * @return a map of objects */ public Map getAdditionalProperties() { return additionalProperties; @@ -178,6 +180,9 @@ public Map getAdditionalProperties() { /** * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object */ public Object getAdditionalProperty(String key) { if (this.additionalProperties == null) { @@ -248,23 +253,22 @@ private String toIndentedString(Object o) { 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 Writer - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (Writer.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to Writer + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!Writer.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException(String.format("The required field(s) %s in Writer is not found in the empty JSON string", Writer.openapiRequiredFields.toString())); } } + JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `subarray` if (jsonObj.get("subarray") != null && !jsonObj.get("subarray").isJsonNull()) { - DomainArray.validateJsonObject(jsonObj.getAsJsonObject("subarray")); + DomainArray.validateJsonElement(jsonObj.get("subarray")); } } @@ -284,7 +288,7 @@ public TypeAdapter create(Gson gson, TypeToken type) { public void write(JsonWriter out, Writer value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); - // serialize additonal properties + // serialize additional properties if (value.getAdditionalProperties() != null) { for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { if (entry.getValue() instanceof String) @@ -296,7 +300,12 @@ else if (entry.getValue() instanceof Boolean) else if (entry.getValue() instanceof Character) obj.addProperty(entry.getKey(), (Character) entry.getValue()); else { - obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + JsonElement jsonElement = gson.toJsonTree(entry.getValue()); + if (jsonElement.isJsonArray()) { + obj.add(entry.getKey(), jsonElement.getAsJsonArray()); + } else { + obj.add(entry.getKey(), jsonElement.getAsJsonObject()); + } } } } @@ -305,8 +314,9 @@ else if (entry.getValue() instanceof Character) @Override public Writer read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance Writer instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { @@ -320,8 +330,10 @@ 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)); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); } } } @@ -332,22 +344,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of Writer given an JSON string - * - * @param jsonString JSON string - * @return An instance of Writer - * @throws IOException if the JSON string is invalid with respect to Writer - */ + /** + * Create an instance of Writer given an JSON string + * + * @param jsonString JSON string + * @return An instance of Writer + * @throws IOException if the JSON string is invalid with respect to Writer + */ public static Writer fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, Writer.class); } - /** - * Convert an instance of Writer to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of Writer to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/test/java/io/tiledb/cloud/rest_api/api/ArrayApiTest.java b/src/test/java/io/tiledb/cloud/rest_api/api/ArrayApiTest.java new file mode 100644 index 0000000..2b0ff77 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/api/ArrayApiTest.java @@ -0,0 +1,560 @@ +/* + * 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.api; + +import io.tiledb.cloud.rest_api.ApiException; +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.Error; +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 org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for ArrayApi + */ +@Disabled +public class ArrayApiTest { + + private final ArrayApi api = new ArrayApi(); + + /** + * get array activity logs + * + * @throws ApiException if the Api call fails + */ + @Test + public void arrayActivityLogTest() throws ApiException { + String namespace = null; + String array = null; + Integer start = null; + Integer end = null; + String eventTypes = null; + String taskId = null; + Boolean hasTaskId = null; + List response = api.arrayActivityLog(namespace, array, start, end, eventTypes, taskId, hasTaskId); + // TODO: test validations + } + + /** + * Fetch a list of all arrays that are owned directly by user or user's organizations + * + * @throws ApiException if the Api call fails + */ + @Test + public void arraysBrowserOwnedGetTest() throws ApiException { + Integer page = null; + Integer perPage = null; + String search = null; + String namespace = null; + String orderby = null; + String permissions = null; + List tag = null; + List excludeTag = null; + List fileType = null; + List excludeFileType = null; + List fileProperty = null; + Boolean withMetadata = null; + ArrayBrowserData response = api.arraysBrowserOwnedGet(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, withMetadata); + // TODO: test validations + } + + /** + * Fetch a sidebar for arrays that are owned directly by user or user's organizations + * + * @throws ApiException if the Api call fails + */ + @Test + public void arraysBrowserOwnedSidebarGetTest() throws ApiException { + List fileType = null; + List excludeFileType = null; + List fileProperty = null; + ArrayBrowserSidebar response = api.arraysBrowserOwnedSidebarGet(fileType, excludeFileType, fileProperty); + // TODO: test validations + } + + /** + * Fetch a list of all arrays that have been shared publically + * + * @throws ApiException if the Api call fails + */ + @Test + public void arraysBrowserPublicGetTest() throws ApiException { + Integer page = null; + Integer perPage = null; + String search = null; + String namespace = null; + String orderby = null; + String permissions = null; + List tag = null; + List excludeTag = null; + List fileType = null; + List excludeFileType = null; + List fileProperty = null; + Boolean withMetadata = null; + ArrayBrowserData response = api.arraysBrowserPublicGet(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, withMetadata); + // TODO: test validations + } + + /** + * Fetch a sidebar of all arrays that have been shared publically + * + * @throws ApiException if the Api call fails + */ + @Test + public void arraysBrowserPublicSidebarGetTest() throws ApiException { + List fileType = null; + List excludeFileType = null; + List fileProperty = null; + ArrayBrowserSidebar response = api.arraysBrowserPublicSidebarGet(fileType, excludeFileType, fileProperty); + // TODO: test validations + } + + /** + * Fetch a list of all arrays that have been shared with the user + * + * @throws ApiException if the Api call fails + */ + @Test + public void arraysBrowserSharedGetTest() throws ApiException { + Integer page = null; + Integer perPage = null; + String search = null; + String namespace = null; + String orderby = null; + String permissions = null; + List tag = null; + List excludeTag = null; + List fileType = null; + List excludeFileType = null; + List fileProperty = null; + List sharedTo = null; + Boolean withMetadata = null; + ArrayBrowserData response = api.arraysBrowserSharedGet(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, sharedTo, withMetadata); + // TODO: test validations + } + + /** + * Fetch a list of all arrays that have been shared with the user + * + * @throws ApiException if the Api call fails + */ + @Test + public void arraysBrowserSharedSidebarGetTest() throws ApiException { + List fileType = null; + List excludeFileType = null; + List fileProperty = null; + List sharedTo = null; + ArrayBrowserSidebar response = api.arraysBrowserSharedSidebarGet(fileType, excludeFileType, fileProperty, sharedTo); + // TODO: test validations + } + + /** + * retrieve a list of timestamps from the array fragment info listing in milliseconds, paginated + * + * @throws ApiException if the Api call fails + */ + @Test + public void arraysNamespaceArrayEndTimestampsGetTest() throws ApiException { + String namespace = null; + String array = null; + Integer page = null; + Integer perPage = null; + ArrayEndTimestampData response = api.arraysNamespaceArrayEndTimestampsGet(namespace, array, page, perPage); + // TODO: test validations + } + + /** + * consolidate an array at a specified URI + * + * @throws ApiException if the Api call fails + */ + @Test + public void consolidateArrayTest() throws ApiException { + String namespace = null; + String array = null; + ArrayConsolidationRequest consolidateRequest = null; + api.consolidateArray(namespace, array, consolidateRequest); + // TODO: test validations + } + + /** + * create a array schema at a specified URI registered to a group/project + * + * @throws ApiException if the Api call fails + */ + @Test + public void createArrayTest() throws ApiException { + String namespace = null; + String array = null; + String contentType = null; + ArraySchema arraySchema = null; + String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME = null; + api.createArray(namespace, array, contentType, arraySchema, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME); + // TODO: test validations + } + + /** + * delete a array + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteArrayTest() throws ApiException { + String namespace = null; + String array = null; + String contentType = null; + api.deleteArray(namespace, array, contentType); + // TODO: test validations + } + + /** + * deregister a array + * + * @throws ApiException if the Api call fails + */ + @Test + public void deregisterArrayTest() throws ApiException { + String namespace = null; + String array = null; + api.deregisterArray(namespace, array); + // TODO: test validations + } + + /** + * fetch an array's fragment info + * + * @throws ApiException if the Api call fails + */ + @Test + public void fragmentInfoTest() throws ApiException { + String namespace = null; + String array = null; + String contentType = null; + FragmentInfoRequest fragmentInfoRequest = null; + FragmentInfo response = api.fragmentInfo(namespace, array, contentType, fragmentInfoRequest); + // TODO: test validations + } + + /** + * get activity log by ID + * + * @throws ApiException if the Api call fails + */ + @Test + public void getActivityLogByIdTest() throws ApiException { + String namespace = null; + String array = null; + String id = null; + ArrayActivityLog response = api.getActivityLogById(namespace, array, id); + // TODO: test validations + } + + /** + * get all array metadata user has access to + * + * @throws ApiException if the Api call fails + */ + @Test + public void getAllArrayMetadataTest() throws ApiException { + String publicShare = null; + List response = api.getAllArrayMetadata(publicShare); + // TODO: test validations + } + + /** + * get an ArraySchema using a url encoded uri + * + * @throws ApiException if the Api call fails + */ + @Test + public void getArrayTest() throws ApiException { + String namespace = null; + String array = null; + String contentType = null; + ArraySchema response = api.getArray(namespace, array, contentType); + // TODO: test validations + } + + /** + * get the max buffer sizes of an array for a subarray + * + * @throws ApiException if the Api call fails + */ + @Test + public void getArrayMaxBufferSizesTest() throws ApiException { + String namespace = null; + String array = null; + String subarray = null; + String contentType = null; + String xPayer = null; + MaxBufferSizes response = api.getArrayMaxBufferSizes(namespace, array, subarray, contentType, xPayer); + // TODO: test validations + } + + /** + * get metadata from the array in JSON format + * + * @throws ApiException if the Api call fails + */ + @Test + public void getArrayMetaDataJsonTest() throws ApiException { + String namespace = null; + String array = null; + Integer length = null; + Integer endTimestamp = null; + Map response = api.getArrayMetaDataJson(namespace, array, length, endTimestamp); + // TODO: test validations + } + + /** + * get metadata on an array + * + * @throws ApiException if the Api call fails + */ + @Test + public void getArrayMetadataTest() throws ApiException { + String namespace = null; + String array = null; + ArrayInfo response = api.getArrayMetadata(namespace, array); + // TODO: test validations + } + + /** + * get metadata on an array + * + * @throws ApiException if the Api call fails + */ + @Test + public void getArrayMetadataCapnpTest() throws ApiException { + String namespace = null; + String array = null; + ArrayMetadata response = api.getArrayMetadataCapnp(namespace, array); + // TODO: test validations + } + + /** + * get the non empty domain of an array + * + * @throws ApiException if the Api call fails + */ + @Test + public void getArrayNonEmptyDomainTest() throws ApiException { + String namespace = null; + String array = null; + String contentType = null; + String xPayer = null; + NonEmptyDomain response = api.getArrayNonEmptyDomain(namespace, array, contentType, xPayer); + // TODO: test validations + } + + /** + * get non-empty domain from the array in json format + * + * @throws ApiException if the Api call fails + */ + @Test + public void getArrayNonEmptyDomainJsonTest() throws ApiException { + String namespace = null; + String array = null; + Map response = api.getArrayNonEmptyDomainJson(namespace, array); + // TODO: test validations + } + + /** + * get an sample set of data from the array + * + * @throws ApiException if the Api call fails + */ + @Test + public void getArraySampleDataTest() throws ApiException { + String namespace = null; + String array = null; + BigDecimal samples = null; + ArraySample response = api.getArraySampleData(namespace, array, samples); + // TODO: test validations + } + + /** + * Get all sharing details of the array + * + * @throws ApiException if the Api call fails + */ + @Test + public void getArraySharingPoliciesTest() throws ApiException { + String namespace = null; + String array = null; + List response = api.getArraySharingPolicies(namespace, array); + // TODO: test validations + } + + /** + * get metadata on all arrays in a namespace + * + * @throws ApiException if the Api call fails + */ + @Test + public void getArraysInNamespaceTest() throws ApiException { + String namespace = null; + Boolean withMetadata = null; + List response = api.getArraysInNamespace(namespace, withMetadata); + // TODO: test validations + } + + /** + * Get fragment end_timestamp on an array, will search for the closest end_timestamp to the timestamp asked + * + * @throws ApiException if the Api call fails + */ + @Test + public void getFragmentEndTimestampTest() throws ApiException { + String namespace = null; + String array = null; + Integer endTimestamp = null; + Integer response = api.getFragmentEndTimestamp(namespace, array, endTimestamp); + // TODO: test validations + } + + /** + * @throws ApiException if the Api call fails + */ + @Test + public void getLastAccessedArraysTest() throws ApiException { + List response = api.getLastAccessedArrays(); + // TODO: test validations + } + + /** + * request to get the array schema + * + * @throws ApiException if the Api call fails + */ + @Test + public void loadArraySchemaTest() throws ApiException { + String namespace = null; + String array = null; + LoadArraySchemaRequest loadArraySchemaRequest = null; + LoadArraySchemaResponse response = api.loadArraySchema(namespace, array, loadArraySchemaRequest); + // TODO: test validations + } + + /** + * request to get the enumerations of the arrays' attributes + * + * @throws ApiException if the Api call fails + */ + @Test + public void loadEnumerationsTest() throws ApiException { + String namespace = null; + String array = null; + LoadEnumerationsRequest loadEnumerationsRequest = null; + LoadEnumerationsResponse response = api.loadEnumerations(namespace, array, loadEnumerationsRequest); + // TODO: test validations + } + + /** + * register an array at a specified URI registered to the given namespace + * + * @throws ApiException if the Api call fails + */ + @Test + public void registerArrayTest() throws ApiException { + String namespace = null; + String array = null; + ArrayInfoUpdate arrayMetadata = null; + ArrayInfo response = api.registerArray(namespace, array, arrayMetadata); + // TODO: test validations + } + + /** + * Share an array with a user + * + * @throws ApiException if the Api call fails + */ + @Test + public void shareArrayTest() throws ApiException { + String namespace = null; + String array = null; + ArraySharing arraySharing = null; + api.shareArray(namespace, array, arraySharing); + // TODO: test validations + } + + /** + * update metadata on an array + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateArrayMetadataTest() throws ApiException { + String namespace = null; + String array = null; + ArrayInfoUpdate arrayMetadata = null; + api.updateArrayMetadata(namespace, array, arrayMetadata); + // TODO: test validations + } + + /** + * update metadata on an array + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateArrayMetadataCapnpTest() throws ApiException { + String namespace = null; + String array = null; + ArrayMetadata arrayMetadataEntries = null; + api.updateArrayMetadataCapnp(namespace, array, arrayMetadataEntries); + // TODO: test validations + } + + /** + * vacuum an array at a specified URI + * + * @throws ApiException if the Api call fails + */ + @Test + public void vacuumArrayTest() throws ApiException { + String namespace = null; + String array = null; + ArrayVacuumRequest vaccumRequest = null; + api.vacuumArray(namespace, array, vaccumRequest); + // TODO: test validations + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/api/ArrayTasksApiTest.java b/src/test/java/io/tiledb/cloud/rest_api/api/ArrayTasksApiTest.java new file mode 100644 index 0000000..9312613 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/api/ArrayTasksApiTest.java @@ -0,0 +1,46 @@ +/* + * 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.api; + +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.model.ArrayTaskBrowserSidebar; +import io.tiledb.cloud.rest_api.model.Error; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for ArrayTasksApi + */ +@Disabled +public class ArrayTasksApiTest { + + private final ArrayTasksApi api = new ArrayTasksApi(); + + /** + * @throws ApiException if the Api call fails + */ + @Test + public void getArrayTasksSidebarTest() throws ApiException { + Integer start = null; + Integer end = null; + ArrayTaskBrowserSidebar response = api.getArrayTasksSidebar(start, end); + // TODO: test validations + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/api/AssetsApiTest.java b/src/test/java/io/tiledb/cloud/rest_api/api/AssetsApiTest.java new file mode 100644 index 0000000..51aa6f1 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/api/AssetsApiTest.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.api; + +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.model.AssetListResponse; +import io.tiledb.cloud.rest_api.model.Error; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for AssetsApi + */ +@Disabled +public class AssetsApiTest { + + private final AssetsApi api = new AssetsApi(); + + /** + * List assets in a namespace + * + * @throws ApiException if the Api call fails + */ + @Test + public void listAssetsTest() throws ApiException { + String namespace = null; + String assetType = null; + String ownershipLevel = null; + String depth = null; + String search = null; + Integer page = null; + Integer perPage = null; + String orderBy = null; + String expand = null; + AssetListResponse response = api.listAssets(namespace, assetType, ownershipLevel, depth, search, page, perPage, orderBy, expand); + // TODO: test validations + } + + /** + * List public assets + * + * @throws ApiException if the Api call fails + */ + @Test + public void listPublicAssetsTest() throws ApiException { + String assetType = null; + String depth = null; + String search = null; + Integer page = null; + Integer perPage = null; + String orderBy = null; + AssetListResponse response = api.listPublicAssets(assetType, depth, search, page, perPage, orderBy); + // TODO: test validations + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/api/FavoritesApiTest.java b/src/test/java/io/tiledb/cloud/rest_api/api/FavoritesApiTest.java new file mode 100644 index 0000000..495eefa --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/api/FavoritesApiTest.java @@ -0,0 +1,295 @@ +/* + * 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.api; + +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.model.ArrayFavorite; +import io.tiledb.cloud.rest_api.model.ArrayFavoritesData; +import io.tiledb.cloud.rest_api.model.Error; +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 org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for FavoritesApi + */ +@Disabled +public class FavoritesApiTest { + + private final FavoritesApi api = new FavoritesApi(); + + /** + * Add a new array favorite + * + * @throws ApiException if the Api call fails + */ + @Test + public void addArrayFavoriteTest() throws ApiException { + String namespace = null; + String name = null; + api.addArrayFavorite(namespace, name); + // TODO: test validations + } + + /** + * Add a new ML model favorite + * + * @throws ApiException if the Api call fails + */ + @Test + public void addMLModelFavoriteTest() throws ApiException { + String namespace = null; + String name = null; + api.addMLModelFavorite(namespace, name); + // TODO: test validations + } + + /** + * Add a new notebook favorite + * + * @throws ApiException if the Api call fails + */ + @Test + public void addNotebookFavoriteTest() throws ApiException { + String namespace = null; + String name = null; + api.addNotebookFavorite(namespace, name); + // TODO: test validations + } + + /** + * Add a new UDF favorite + * + * @throws ApiException if the Api call fails + */ + @Test + public void addUDFFavoriteTest() throws ApiException { + String namespace = null; + String name = null; + api.addUDFFavorite(namespace, name); + // TODO: test validations + } + + /** + * Delete specific array favorite + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteArrayFavoriteTest() throws ApiException { + String namespace = null; + String name = null; + api.deleteArrayFavorite(namespace, name); + // TODO: test validations + } + + /** + * Delete specific ML model favorite + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteMLModelFavoriteTest() throws ApiException { + String namespace = null; + String name = null; + api.deleteMLModelFavorite(namespace, name); + // TODO: test validations + } + + /** + * Delete specific notebook favorite + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteNotebookFavoriteTest() throws ApiException { + String namespace = null; + String name = null; + api.deleteNotebookFavorite(namespace, name); + // TODO: test validations + } + + /** + * Delete specific UDF favorite + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteUDFFavoriteTest() throws ApiException { + String namespace = null; + String name = null; + api.deleteUDFFavorite(namespace, name); + // TODO: test validations + } + + /** + * Fetch array favorite of a specific array + * + * @throws ApiException if the Api call fails + */ + @Test + public void getArrayFavoriteTest() throws ApiException { + String namespace = null; + String name = null; + ArrayFavorite response = api.getArrayFavorite(namespace, name); + // TODO: test validations + } + + /** + * Fetch ML model favorite of a specific ML model + * + * @throws ApiException if the Api call fails + */ + @Test + public void getMLModelFavoriteTest() throws ApiException { + String namespace = null; + String name = null; + MLModelFavorite response = api.getMLModelFavorite(namespace, name); + // TODO: test validations + } + + /** + * Fetch notebook favorite of a specific notebook + * + * @throws ApiException if the Api call fails + */ + @Test + public void getNotebookFavoriteTest() throws ApiException { + String namespace = null; + String name = null; + NotebookFavorite response = api.getNotebookFavorite(namespace, name); + // TODO: test validations + } + + /** + * Fetch UDF favorite of a specific UDF + * + * @throws ApiException if the Api call fails + */ + @Test + public void getUDFFavoriteTest() throws ApiException { + String namespace = null; + String name = null; + UDFFavorite response = api.getUDFFavorite(namespace, name); + // TODO: test validations + } + + /** + * Fetch a page of array favorites of connected user + * + * @throws ApiException if the Api call fails + */ + @Test + public void listArrayFavoritesTest() throws ApiException { + Integer page = null; + Integer perPage = null; + ArrayFavoritesData response = api.listArrayFavorites(page, perPage); + // TODO: test validations + } + + /** + * Fetch all favorite array uuids of connected user + * + * @throws ApiException if the Api call fails + */ + @Test + public void listArrayFavoritesUUIDsTest() throws ApiException { + List response = api.listArrayFavoritesUUIDs(); + // TODO: test validations + } + + /** + * Fetch a page of ML models favorites of connected user + * + * @throws ApiException if the Api call fails + */ + @Test + public void listMLModelFavoritesTest() throws ApiException { + Integer page = null; + Integer perPage = null; + MLModelFavoritesData response = api.listMLModelFavorites(page, perPage); + // TODO: test validations + } + + /** + * Fetch all favorite ML models uuids of connected user + * + * @throws ApiException if the Api call fails + */ + @Test + public void listMLModelFavoritesUUIDsTest() throws ApiException { + List response = api.listMLModelFavoritesUUIDs(); + // TODO: test validations + } + + /** + * Fetch a page of notebook favorites of connected user + * + * @throws ApiException if the Api call fails + */ + @Test + public void listNotebookFavoritesTest() throws ApiException { + Boolean isDashboard = null; + Integer page = null; + Integer perPage = null; + NotebookFavoritesData response = api.listNotebookFavorites(isDashboard, page, perPage); + // TODO: test validations + } + + /** + * Fetch all favorite notebook uuids of connected user + * + * @throws ApiException if the Api call fails + */ + @Test + public void listNotebookFavoritesUUIDsTest() throws ApiException { + List response = api.listNotebookFavoritesUUIDs(); + // TODO: test validations + } + + /** + * Fetch a page of UDF favorites of connected user + * + * @throws ApiException if the Api call fails + */ + @Test + public void listUDFFavoritesTest() throws ApiException { + Integer page = null; + Integer perPage = null; + UDFFavoritesData response = api.listUDFFavorites(page, perPage); + // TODO: test validations + } + + /** + * Fetch all favorite UDF uuids of connected user + * + * @throws ApiException if the Api call fails + */ + @Test + public void listUDFFavoritesUUIDsTest() throws ApiException { + List response = api.listUDFFavoritesUUIDs(); + // TODO: test validations + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/api/FilesApiTest.java b/src/test/java/io/tiledb/cloud/rest_api/api/FilesApiTest.java new file mode 100644 index 0000000..8978371 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/api/FilesApiTest.java @@ -0,0 +1,84 @@ +/* + * 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.api; + +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.model.Error; +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 org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for FilesApi + */ +@Disabled +public class FilesApiTest { + + private final FilesApi api = new FilesApi(); + + /** + * Create a tiledb file at the specified location + * + * @throws ApiException if the Api call fails + */ + @Test + public void handleCreateFileTest() throws ApiException { + String namespace = null; + FileCreate fileCreate = null; + String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME = null; + FileCreated response = api.handleCreateFile(namespace, fileCreate, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME); + // TODO: test validations + } + + /** + * Export a TileDB File back to its original file format + * + * @throws ApiException if the Api call fails + */ + @Test + public void handleExportFileTest() throws ApiException { + String namespace = null; + String _file = null; + FileExport fileExport = null; + FileExported response = api.handleExportFile(namespace, _file, fileExport); + // TODO: test validations + } + + /** + * Upload a tiledb file at the specified location + * + * @throws ApiException if the Api call fails + */ + @Test + public void handleUploadFileTest() throws ApiException { + String namespace = null; + File inputFile = null; + String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME = null; + String outputUri = null; + String name = null; + FileUploaded response = api.handleUploadFile(namespace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name); + // TODO: test validations + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/api/GroupsApiTest.java b/src/test/java/io/tiledb/cloud/rest_api/api/GroupsApiTest.java new file mode 100644 index 0000000..87baa46 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/api/GroupsApiTest.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.api; + +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.model.Error; +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 org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for GroupsApi + */ +@Disabled +public class GroupsApiTest { + + private final GroupsApi api = new GroupsApi(); + + /** + * Changes the contents of the group by adding/removing members. + * + * @throws ApiException if the Api call fails + */ + @Test + public void changeGroupContentsTest() throws ApiException { + String groupNamespace = null; + String groupName = null; + GroupChanges groupChanges = null; + api.changeGroupContents(groupNamespace, groupName, groupChanges); + // TODO: test validations + } + + /** + * Creates a new group in the namespace. + * + * @throws ApiException if the Api call fails + */ + @Test + public void createGroupTest() throws ApiException { + String namespace = null; + GroupCreate groupCreate = null; + api.createGroup(namespace, groupCreate); + // TODO: test validations + } + + /** + * Deletes the group. The assets are not deleted nor are not relocated to any other group + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteGroupTest() throws ApiException { + String groupNamespace = null; + String groupName = null; + api.deleteGroup(groupNamespace, groupName); + // TODO: test validations + } + + /** + * Returns the the group + * + * @throws ApiException if the Api call fails + */ + @Test + public void getGroupTest() throws ApiException { + String groupNamespace = null; + String groupName = null; + GroupInfo response = api.getGroup(groupNamespace, groupName); + // TODO: test validations + } + + /** + * Returns the activity of group content + * + * @throws ApiException if the Api call fails + */ + @Test + public void getGroupActivityTest() throws ApiException { + String groupNamespace = null; + String groupName = null; + Integer page = null; + Integer perPage = null; + GroupContentActivityResponse response = api.getGroupActivity(groupNamespace, groupName, page, perPage); + // TODO: test validations + } + + /** + * Returns the contents of the group + * + * @throws ApiException if the Api call fails + */ + @Test + public void getGroupContentsTest() throws ApiException { + String groupNamespace = null; + String groupName = null; + Integer page = null; + Integer perPage = null; + String namespace = null; + String search = null; + String orderby = null; + List tag = null; + List excludeTag = null; + List memberType = null; + List excludeMemberType = null; + GroupContents response = api.getGroupContents(groupNamespace, groupName, page, perPage, namespace, search, orderby, tag, excludeTag, memberType, excludeMemberType); + // TODO: test validations + } + + /** + * Get all sharing details of the group + * + * @throws ApiException if the Api call fails + */ + @Test + public void getGroupSharingPoliciesTest() throws ApiException { + String groupNamespace = null; + String groupName = null; + List response = api.getGroupSharingPolicies(groupNamespace, groupName); + // TODO: test validations + } + + /** + * Fetch data to initialize filters for the groups browser + * + * @throws ApiException if the Api call fails + */ + @Test + public void groupsBrowserOwnedFiltersGetTest() throws ApiException { + String namespace = null; + GroupBrowserFilterData response = api.groupsBrowserOwnedFiltersGet(namespace); + // TODO: test validations + } + + /** + * Fetch data to initialize filters for the groups browser + * + * @throws ApiException if the Api call fails + */ + @Test + public void groupsBrowserPublicFiltersGetTest() throws ApiException { + GroupBrowserFilterData response = api.groupsBrowserPublicFiltersGet(); + // TODO: test validations + } + + /** + * Fetch data to initialize filters for the groups browser + * + * @throws ApiException if the Api call fails + */ + @Test + public void groupsBrowserSharedFiltersGetTest() throws ApiException { + String namespace = null; + GroupBrowserFilterData response = api.groupsBrowserSharedFiltersGet(namespace); + // TODO: test validations + } + + /** + * Fetch data to initialize filters for the group contents + * + * @throws ApiException if the Api call fails + */ + @Test + public void groupsGroupNamespaceGroupNameContentsFiltersGetTest() throws ApiException { + String groupNamespace = null; + String groupName = null; + GroupContentsFilterData response = api.groupsGroupNamespaceGroupNameContentsFiltersGet(groupNamespace, groupName); + // TODO: test validations + } + + /** + * Returns one page of owned groups. + * + * @throws ApiException if the Api call fails + */ + @Test + public void listOwnedGroupsTest() throws ApiException { + Integer page = null; + Integer perPage = null; + String groupType = null; + String search = null; + String namespace = null; + String orderby = null; + String permissions = null; + List tag = null; + List excludeTag = null; + Boolean flat = null; + String parent = null; + Boolean withMetadata = null; + GroupBrowserData response = api.listOwnedGroups(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, withMetadata); + // TODO: test validations + } + + /** + * Returns one page of public groups. + * + * @throws ApiException if the Api call fails + */ + @Test + public void listPublicGroupsTest() throws ApiException { + Integer page = null; + Integer perPage = null; + String groupType = null; + String search = null; + String namespace = null; + String orderby = null; + String permissions = null; + List tag = null; + List excludeTag = null; + Boolean flat = null; + String parent = null; + Boolean withMetadata = null; + GroupBrowserData response = api.listPublicGroups(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, withMetadata); + // TODO: test validations + } + + /** + * Returns one page of shared groups. + * + * @throws ApiException if the Api call fails + */ + @Test + public void listSharedGroupsTest() throws ApiException { + Integer page = null; + Integer perPage = null; + String groupType = null; + String search = null; + String namespace = null; + String orderby = null; + String permissions = null; + List tag = null; + List excludeTag = null; + Boolean flat = null; + String parent = null; + List sharedTo = null; + Boolean withMetadata = null; + GroupBrowserData response = api.listSharedGroups(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, sharedTo, withMetadata); + // TODO: test validations + } + + /** + * Registers an existing group in the namespace. + * + * @throws ApiException if the Api call fails + */ + @Test + public void registerGroupTest() throws ApiException { + String namespace = null; + String array = null; + GroupRegister groupRegister = null; + api.registerGroup(namespace, array, groupRegister); + // TODO: test validations + } + + /** + * Share a group with a namespace + * + * @throws ApiException if the Api call fails + */ + @Test + public void shareGroupTest() throws ApiException { + String groupNamespace = null; + String groupName = null; + GroupSharingRequest groupSharingRequest = null; + api.shareGroup(groupNamespace, groupName, groupSharingRequest); + // TODO: test validations + } + + /** + * Changes attributes of the group + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateGroupTest() throws ApiException { + String groupNamespace = null; + String groupName = null; + GroupUpdate groupUpdate = null; + api.updateGroup(groupNamespace, groupName, groupUpdate); + // TODO: test validations + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/api/InvitationApiTest.java b/src/test/java/io/tiledb/cloud/rest_api/api/InvitationApiTest.java new file mode 100644 index 0000000..a8d4ff7 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/api/InvitationApiTest.java @@ -0,0 +1,181 @@ +/* + * 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.api; + +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.model.Error; +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.SharePaymentRequest; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for InvitationApi + */ +@Disabled +public class InvitationApiTest { + + private final InvitationApi api = new InvitationApi(); + + /** + * Accepts invitation + * + * @throws ApiException if the Api call fails + */ + @Test + public void acceptInvitationTest() throws ApiException { + String invitation = null; + api.acceptInvitation(invitation); + // TODO: test validations + } + + /** + * Cancels join organization invitation + * + * @throws ApiException if the Api call fails + */ + @Test + public void cancelJoinOrganizationTest() throws ApiException { + String invitation = null; + String organization = null; + api.cancelJoinOrganization(invitation, organization); + // TODO: test validations + } + + /** + * Cancels array sharing invitation + * + * @throws ApiException if the Api call fails + */ + @Test + public void cancelShareArrayByInviteTest() throws ApiException { + String namespace = null; + String invitation = null; + String array = null; + api.cancelShareArrayByInvite(namespace, invitation, array); + // TODO: test validations + } + + /** + * Cancels group sharing invitation + * + * @throws ApiException if the Api call fails + */ + @Test + public void cancelShareGroupByInviteTest() throws ApiException { + String namespace = null; + String invitation = null; + String groupName = null; + api.cancelShareGroupByInvite(namespace, invitation, groupName); + // TODO: test validations + } + + /** + * Revokes invitation from the source namespace to the target. + * + * @throws ApiException if the Api call fails + */ + @Test + public void cancelSharePaymentTest() throws ApiException { + String namespace = null; + String target = null; + api.cancelSharePayment(namespace, target); + // TODO: test validations + } + + /** + * Fetch a list of invitations + * + * @throws ApiException if the Api call fails + */ + @Test + public void fetchInvitationsTest() throws ApiException { + String organization = null; + String array = null; + String group = null; + Integer start = null; + Integer end = null; + Integer page = null; + Integer perPage = null; + String type = null; + String status = null; + String orderby = null; + InvitationData response = api.fetchInvitations(organization, array, group, start, end, page, perPage, type, status, orderby); + // TODO: test validations + } + + /** + * Sends email to multiple recipients with joining information regarding an organization + * + * @throws ApiException if the Api call fails + */ + @Test + public void joinOrganizationTest() throws ApiException { + String organization = null; + InvitationOrganizationJoinEmail emailInvite = null; + api.joinOrganization(organization, emailInvite); + // TODO: test validations + } + + /** + * Sends email to multiple recipients with sharing information regarding an array + * + * @throws ApiException if the Api call fails + */ + @Test + public void shareArrayByInviteTest() throws ApiException { + String namespace = null; + String array = null; + InvitationArrayShareEmail emailInvite = null; + api.shareArrayByInvite(namespace, array, emailInvite); + // TODO: test validations + } + + /** + * Sends email to multiple recipients with sharing information regarding a group + * + * @throws ApiException if the Api call fails + */ + @Test + public void shareGroupByInviteTest() throws ApiException { + String namespace = null; + String group = null; + InvitationGroupShareEmail emailInvite = null; + api.shareGroupByInvite(namespace, group, emailInvite); + // TODO: test validations + } + + /** + * Sends email to multiple recipients allowing them to use the payment instrument provided by the source namespace. + * + * @throws ApiException if the Api call fails + */ + @Test + public void sharePaymentTest() throws ApiException { + String namespace = null; + SharePaymentRequest emailInvite = null; + api.sharePayment(namespace, emailInvite); + // TODO: test validations + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/api/NotebookApiTest.java b/src/test/java/io/tiledb/cloud/rest_api/api/NotebookApiTest.java new file mode 100644 index 0000000..46da52d --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/api/NotebookApiTest.java @@ -0,0 +1,110 @@ +/* + * 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.api; + +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.model.ArrayInfoUpdate; +import io.tiledb.cloud.rest_api.model.Error; +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 org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for NotebookApi + */ +@Disabled +public class NotebookApiTest { + + private final NotebookApi api = new NotebookApi(); + + /** + * Get status of the notebook server + * + * @throws ApiException if the Api call fails + */ + @Test + public void getNotebookServerStatusTest() throws ApiException { + String namespace = null; + NotebookStatus response = api.getNotebookServerStatus(namespace); + // TODO: test validations + } + + /** + * Copy a tiledb notebook at the specified location + * + * @throws ApiException if the Api call fails + */ + @Test + public void handleCopyNotebookTest() throws ApiException { + String namespace = null; + String array = null; + NotebookCopy notebookCopy = null; + String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME = null; + Integer endTimestamp = null; + NotebookCopied response = api.handleCopyNotebook(namespace, array, notebookCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp); + // TODO: test validations + } + + /** + * Upload a notebook at the specified location + * + * @throws ApiException if the Api call fails + */ + @Test + public void handleUploadNotebookTest() throws ApiException { + String namespace = null; + File inputFile = null; + String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME = null; + String outputUri = null; + String name = null; + FileUploaded response = api.handleUploadNotebook(namespace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name); + // TODO: test validations + } + + /** + * Shutdown a notebook server + * + * @throws ApiException if the Api call fails + */ + @Test + public void shutdownNotebookServerTest() throws ApiException { + String namespace = null; + api.shutdownNotebookServer(namespace); + // TODO: test validations + } + + /** + * update name on a notebok, moving related S3 object to new location + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateNotebookNameTest() throws ApiException { + String namespace = null; + String array = null; + ArrayInfoUpdate notebookMetadata = null; + api.updateNotebookName(namespace, array, notebookMetadata); + // TODO: test validations + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/api/NotebooksApiTest.java b/src/test/java/io/tiledb/cloud/rest_api/api/NotebooksApiTest.java new file mode 100644 index 0000000..f5d9032 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/api/NotebooksApiTest.java @@ -0,0 +1,64 @@ +/* + * 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.api; + +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.model.ArrayEndTimestampData; +import io.tiledb.cloud.rest_api.model.Error; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for NotebooksApi + */ +@Disabled +public class NotebooksApiTest { + + private final NotebooksApi api = new NotebooksApi(); + + /** + * retrieve a list of timestamps from the array fragment info listing in milliseconds, paginated + * + * @throws ApiException if the Api call fails + */ + @Test + public void notebooksNamespaceArrayEndTimestampsGetTest() throws ApiException { + String namespace = null; + String array = null; + Integer page = null; + Integer perPage = null; + ArrayEndTimestampData response = api.notebooksNamespaceArrayEndTimestampsGet(namespace, array, page, perPage); + // TODO: test validations + } + + /** + * prune fragments of the notebook + * + * @throws ApiException if the Api call fails + */ + @Test + public void notebooksNamespaceArrayPrunePostTest() throws ApiException { + String namespace = null; + String array = null; + Integer keepVersions = null; + api.notebooksNamespaceArrayPrunePost(namespace, array, keepVersions); + // TODO: test validations + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/api/OrganizationApiTest.java b/src/test/java/io/tiledb/cloud/rest_api/api/OrganizationApiTest.java new file mode 100644 index 0000000..e420edb --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/api/OrganizationApiTest.java @@ -0,0 +1,297 @@ +/* + * 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.api; + +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.model.AWSAccessCredentials; +import io.tiledb.cloud.rest_api.model.DomainCheckResult; +import io.tiledb.cloud.rest_api.model.Error; +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 org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for OrganizationApi + */ +@Disabled +public class OrganizationApiTest { + + private final OrganizationApi api = new OrganizationApi(); + + /** + * Add aws keys + * + * @throws ApiException if the Api call fails + */ + @Test + public void addAWSAccessCredentialsTest() throws ApiException { + String namespace = null; + AWSAccessCredentials awsAccessCredentials = null; + api.addAWSAccessCredentials(namespace, awsAccessCredentials); + // TODO: test validations + } + + /** + * add a user to an organization + * + * @throws ApiException if the Api call fails + */ + @Test + public void addUserToOrganizationTest() throws ApiException { + String organization = null; + OrganizationUser user = null; + api.addUserToOrganization(organization, user); + // TODO: test validations + } + + /** + * Check if aws keys are set + * + * @throws ApiException if the Api call fails + */ + @Test + public void checkAWSAccessCredentialsTest() throws ApiException { + String namespace = null; + List response = api.checkAWSAccessCredentials(namespace); + // TODO: test validations + } + + /** + * Check if aws keys are set by name + * + * @throws ApiException if the Api call fails + */ + @Test + public void checkAWSAccessCredentialsByNameTest() throws ApiException { + String namespace = null; + String name = null; + AWSAccessCredentials response = api.checkAWSAccessCredentialsByName(namespace, name); + // TODO: test validations + } + + /** + * Immediately verify ownership of the specified SSO domain ownership claim. + * + * @throws ApiException if the Api call fails + */ + @Test + public void checkSSODomainTest() throws ApiException { + String organization = null; + String uuid = null; + DomainCheckResult response = api.checkSSODomain(organization, uuid); + // TODO: test validations + } + + /** + * create a organization, the user creating will be listed as owner + * + * @throws ApiException if the Api call fails + */ + @Test + public void createOrganizationTest() throws ApiException { + Organization organization = null; + api.createOrganization(organization); + // TODO: test validations + } + + /** + * Create a new SSO connection that connects this organization to this domain. + * + * @throws ApiException if the Api call fails + */ + @Test + public void createSSODomainTest() throws ApiException { + String organization = null; + SSODomainConfig config = null; + SSODomainConfig response = api.createSSODomain(organization, config); + // TODO: test validations + } + + /** + * delete a AWS Access credentials in a namespace. This will likely cause arrays to become unreachable + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteAWSAccessCredentialsTest() throws ApiException { + String namespace = null; + String name = null; + api.deleteAWSAccessCredentials(namespace, name); + // TODO: test validations + } + + /** + * delete a organization + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteOrganizationTest() throws ApiException { + String organization = null; + api.deleteOrganization(organization); + // TODO: test validations + } + + /** + * Deletes the configuration for the given SSO connection. + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteSSODomainTest() throws ApiException { + String organization = null; + String uuid = null; + api.deleteSSODomain(organization, uuid); + // TODO: test validations + } + + /** + * delete a user from an organization + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteUserFromOrganizationTest() throws ApiException { + String organization = null; + String username = null; + api.deleteUserFromOrganization(organization, username); + // TODO: test validations + } + + /** + * get all organizations that the user is member of + * + * @throws ApiException if the Api call fails + */ + @Test + public void getAllOrganizationsTest() throws ApiException { + List response = api.getAllOrganizations(); + // TODO: test validations + } + + /** + * get a organization + * + * @throws ApiException if the Api call fails + */ + @Test + public void getOrganizationTest() throws ApiException { + String organization = null; + Organization response = api.getOrganization(organization); + // TODO: test validations + } + + /** + * get a user from an organization + * + * @throws ApiException if the Api call fails + */ + @Test + public void getOrganizationUserTest() throws ApiException { + String organization = null; + String username = null; + OrganizationUser response = api.getOrganizationUser(organization, username); + // TODO: test validations + } + + /** + * Gets details about the given SSO domain connection. + * + * @throws ApiException if the Api call fails + */ + @Test + public void getSSODomainTest() throws ApiException { + String organization = null; + String uuid = null; + SSODomainConfig response = api.getSSODomain(organization, uuid); + // TODO: test validations + } + + /** + * Lists all the SSO connections associated with the given organization. + * + * @throws ApiException if the Api call fails + */ + @Test + public void getSSODomainsTest() throws ApiException { + String organization = null; + SSODomainConfigResponse response = api.getSSODomains(organization); + // TODO: test validations + } + + /** + * Update aws keys or associated buckets. This will update the key associations for each array in the namespace + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateAWSAccessCredentialsTest() throws ApiException { + String namespace = null; + String name = null; + AWSAccessCredentials awsAccessCredentials = null; + api.updateAWSAccessCredentials(namespace, name, awsAccessCredentials); + // TODO: test validations + } + + /** + * update a organization + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateOrganizationTest() throws ApiException { + String organization = null; + OrganizationUpdate organizationDetails = null; + api.updateOrganization(organization, organizationDetails); + // TODO: test validations + } + + /** + * Updates the configuration for the given SSO connection. + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateSSODomainTest() throws ApiException { + String organization = null; + String uuid = null; + SSODomainConfig config = null; + SSODomainConfig response = api.updateSSODomain(organization, uuid, config); + // TODO: test validations + } + + /** + * update a user in an organization + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateUserInOrganizationTest() throws ApiException { + String organization = null; + String username = null; + OrganizationUser user = null; + api.updateUserInOrganization(organization, username, user); + // TODO: test validations + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/api/QueryApiTest.java b/src/test/java/io/tiledb/cloud/rest_api/api/QueryApiTest.java new file mode 100644 index 0000000..70d5f4f --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/api/QueryApiTest.java @@ -0,0 +1,122 @@ +/* + * 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.api; + +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.model.Error; +import java.io.File; +import io.tiledb.cloud.rest_api.model.Query; +import io.tiledb.cloud.rest_api.model.QueryJson; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for QueryApi + */ +@Disabled +public class QueryApiTest { + + private final QueryApi api = new QueryApi(); + + /** + * send a query to run against a specified array/URI registered to a group/project + * + * @throws ApiException if the Api call fails + */ + @Test + public void finalizeQueryTest() throws ApiException { + String namespace = null; + String array = null; + String type = null; + String contentType = null; + Query query = null; + String xPayer = null; + Integer openAt = null; + Query response = api.finalizeQuery(namespace, array, type, contentType, query, xPayer, openAt); + // TODO: test validations + } + + /** + * send a query to run against a specified array/URI registered to a group/project + * + * @throws ApiException if the Api call fails + */ + @Test + public void getEstResultSizesTest() throws ApiException { + String namespace = null; + String array = null; + String type = null; + String contentType = null; + Query query = null; + String xPayer = null; + Integer openAt = null; + Query response = api.getEstResultSizes(namespace, array, type, contentType, query, xPayer, openAt); + // TODO: test validations + } + + /** + * send a query to run against a specified array/URI registered to a group/project, returns file bytes + * + * @throws ApiException if the Api call fails + */ + @Test + public void getFileTest() throws ApiException { + String namespace = null; + String array = null; + String contentType = null; + String xPayer = null; + File response = api.getFile(namespace, array, contentType, xPayer); + // TODO: test validations + } + + /** + * send a query to run against a specified array/URI registered to a group/project + * + * @throws ApiException if the Api call fails + */ + @Test + public void submitQueryTest() throws ApiException { + String namespace = null; + String array = null; + String type = null; + String contentType = null; + Query query = null; + String xPayer = null; + Integer openAt = null; + Query response = api.submitQuery(namespace, array, type, contentType, query, xPayer, openAt); + // TODO: test validations + } + + /** + * send a query to run against a specified array/URI registered to a group/project, returns JSON results + * + * @throws ApiException if the Api call fails + */ + @Test + public void submitQueryJsonTest() throws ApiException { + String namespace = null; + String array = null; + String contentType = null; + QueryJson queryJson = null; + String xPayer = null; + Object response = api.submitQueryJson(namespace, array, contentType, queryJson, xPayer); + // TODO: test validations + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/api/RegisteredTaskGraphsApiTest.java b/src/test/java/io/tiledb/cloud/rest_api/api/RegisteredTaskGraphsApiTest.java new file mode 100644 index 0000000..92537dd --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/api/RegisteredTaskGraphsApiTest.java @@ -0,0 +1,117 @@ +/* + * 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.api; + +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.model.Error; +import io.tiledb.cloud.rest_api.model.RegisteredTaskGraph; +import io.tiledb.cloud.rest_api.model.TaskGraphSharing; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for RegisteredTaskGraphsApi + */ +@Disabled +public class RegisteredTaskGraphsApiTest { + + private final RegisteredTaskGraphsApi api = new RegisteredTaskGraphsApi(); + + /** + * Delete the given registered task graph. + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteRegisteredTaskGraphTest() throws ApiException { + String namespace = null; + String name = null; + api.deleteRegisteredTaskGraph(namespace, name); + // TODO: test validations + } + + /** + * Fetch the contents of this registered task graph. + * + * @throws ApiException if the Api call fails + */ + @Test + public void getRegisteredTaskGraphTest() throws ApiException { + String namespace = null; + String name = null; + RegisteredTaskGraph response = api.getRegisteredTaskGraph(namespace, name); + // TODO: test validations + } + + /** + * Get sharing policies for the task graph. + * + * @throws ApiException if the Api call fails + */ + @Test + public void getRegisteredTaskGraphSharingPoliciesTest() throws ApiException { + String namespace = null; + String name = null; + List response = api.getRegisteredTaskGraphSharingPolicies(namespace, name); + // TODO: test validations + } + + /** + * Register a task graph in the given namespace, with the given name. + * + * @throws ApiException if the Api call fails + */ + @Test + public void registerRegisteredTaskGraphTest() throws ApiException { + String namespace = null; + String name = null; + RegisteredTaskGraph graph = null; + api.registerRegisteredTaskGraph(namespace, name, graph); + // TODO: test validations + } + + /** + * Share a task graph. + * + * @throws ApiException if the Api call fails + */ + @Test + public void shareRegisteredTaskGraphTest() throws ApiException { + String namespace = null; + String name = null; + TaskGraphSharing taskGraphSharing = null; + api.shareRegisteredTaskGraph(namespace, name, taskGraphSharing); + // TODO: test validations + } + + /** + * Update the contents of an existing registered task graph. + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateRegisteredTaskGraphTest() throws ApiException { + String namespace = null; + String name = null; + RegisteredTaskGraph graph = null; + api.updateRegisteredTaskGraph(namespace, name, graph); + // TODO: test validations + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/api/SqlApiTest.java b/src/test/java/io/tiledb/cloud/rest_api/api/SqlApiTest.java new file mode 100644 index 0000000..4c91f3b --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/api/SqlApiTest.java @@ -0,0 +1,49 @@ +/* + * 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.api; + +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.model.Error; +import io.tiledb.cloud.rest_api.model.SQLParameters; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for SqlApi + */ +@Disabled +public class SqlApiTest { + + private final SqlApi api = new SqlApi(); + + /** + * Run a sql query + * + * @throws ApiException if the Api call fails + */ + @Test + public void runSQLTest() throws ApiException { + String namespace = null; + SQLParameters sql = null; + String acceptEncoding = null; + List> response = api.runSQL(namespace, sql, acceptEncoding); + // TODO: test validations + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/api/StatsApiTest.java b/src/test/java/io/tiledb/cloud/rest_api/api/StatsApiTest.java new file mode 100644 index 0000000..4ddebd1 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/api/StatsApiTest.java @@ -0,0 +1,46 @@ +/* + * 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.api; + +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.model.Error; +import io.tiledb.cloud.rest_api.model.GetTiledbStats200Response; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for StatsApi + */ +@Disabled +public class StatsApiTest { + + private final StatsApi api = new StatsApi(); + + /** + * Fetch libtiledb stat + * + * @throws ApiException if the Api call fails + */ + @Test + public void getTiledbStatsTest() throws ApiException { + GetTiledbStats200Response response = api.getTiledbStats(); + // TODO: test validations + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/api/TaskGraphLogsApiTest.java b/src/test/java/io/tiledb/cloud/rest_api/api/TaskGraphLogsApiTest.java new file mode 100644 index 0000000..5e928e0 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/api/TaskGraphLogsApiTest.java @@ -0,0 +1,161 @@ +/* + * 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.api; + +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.model.Error; +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 org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for TaskGraphLogsApi + */ +@Disabled +public class TaskGraphLogsApiTest { + + private final TaskGraphLogsApi api = new TaskGraphLogsApi(); + + /** + * Create a task graph log. + * + * @throws ApiException if the Api call fails + */ + @Test + public void createTaskGraphLogTest() throws ApiException { + String namespace = null; + TaskGraphLog log = null; + TaskGraphLog response = api.createTaskGraphLog(namespace, log); + // TODO: test validations + } + + /** + * Fetch information about a single task graph execution. + * + * @throws ApiException if the Api call fails + */ + @Test + public void getTaskGraphLogTest() throws ApiException { + String namespace = null; + String id = null; + TaskGraphLog response = api.getTaskGraphLog(namespace, id); + // TODO: test validations + } + + /** + * 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. + * + * @throws ApiException if the Api call fails + */ + @Test + public void listTaskGraphLogsTest() throws ApiException { + String namespace = null; + String createdBy = null; + String status = null; + String search = null; + OffsetDateTime startTime = null; + OffsetDateTime endTime = null; + Integer page = null; + Integer perPage = null; + TaskGraphLogsData response = api.listTaskGraphLogs(namespace, createdBy, status, search, startTime, endTime, page, perPage); + // TODO: test validations + } + + /** + * @throws ApiException if the Api call fails + */ + @Test + public void reportClientNodeTest() throws ApiException { + String namespace = null; + String id = null; + TaskGraphClientNodeStatus report = null; + api.reportClientNode(namespace, id, report); + // TODO: test validations + } + + /** + * Resubmits a task graph in the given namespace using the associated execution id. + * + * @throws ApiException if the Api call fails + */ + @Test + public void resubmitTaskGraphExecutionTest() throws ApiException { + String namespace = null; + String id = null; + TaskGraphLog response = api.resubmitTaskGraphExecution(namespace, id); + // TODO: test validations + } + + /** + * Retries failed tasks of a task graph in the given namespace using the associated execution id. + * + * @throws ApiException if the Api call fails + */ + @Test + public void retryTaskGraphExecutionTest() throws ApiException { + String namespace = null; + String id = null; + TaskGraphLog response = api.retryTaskGraphExecution(namespace, id); + // TODO: test validations + } + + /** + * Stops a task graph execution in the given namespace using the associated associated execution id. + * + * @throws ApiException if the Api call fails + */ + @Test + public void stopTaskGraphExecutionTest() throws ApiException { + String namespace = null; + String id = null; + api.stopTaskGraphExecution(namespace, id); + // TODO: test validations + } + + /** + * Submit a single task graph for execution. + * + * @throws ApiException if the Api call fails + */ + @Test + public void submitTaskGraphTest() throws ApiException { + String namespace = null; + String id = null; + TaskGraphLog response = api.submitTaskGraph(namespace, id); + // TODO: test validations + } + + /** + * Update information about a single task graph execution. + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateTaskGraphLogTest() throws ApiException { + String namespace = null; + String id = null; + TaskGraphLog log = null; + api.updateTaskGraphLog(namespace, id, log); + // TODO: test validations + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/api/TaskGraphsApiTest.java b/src/test/java/io/tiledb/cloud/rest_api/api/TaskGraphsApiTest.java new file mode 100644 index 0000000..bc63a7b --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/api/TaskGraphsApiTest.java @@ -0,0 +1,102 @@ +/* + * 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.api; + +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.model.Error; +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 org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for TaskGraphsApi + */ +@Disabled +public class TaskGraphsApiTest { + + private final TaskGraphsApi api = new TaskGraphsApi(); + + /** + * Create a single task graph for execution. + * + * @throws ApiException if the Api call fails + */ + @Test + public void createTaskGraphTest() throws ApiException { + String namespace = null; + TaskGraph graph = null; + TaskGraph response = api.createTaskGraph(namespace, graph); + // TODO: test validations + } + + /** + * Fetch information about a single task graph. + * + * @throws ApiException if the Api call fails + */ + @Test + public void getTaskGraphTest() throws ApiException { + String namespace = null; + String id = null; + TaskGraph response = api.getTaskGraph(namespace, id); + // TODO: test validations + } + + /** + * 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. + * + * @throws ApiException if the Api call fails + */ + @Test + public void listTaskGraphsTest() throws ApiException { + String namespace = null; + TaskGraphs response = api.listTaskGraphs(namespace); + // TODO: test validations + } + + /** + * Submit a single task graph for execution. + * + * @throws ApiException if the Api call fails + */ + @Test + public void submitTaskGraphTest() throws ApiException { + String namespace = null; + String id = null; + TaskGraphLog response = api.submitTaskGraph(namespace, id); + // TODO: test validations + } + + /** + * Update information about a single task graph execution. + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateTaskGraphTest() throws ApiException { + String namespace = null; + String id = null; + TaskGraph graph = null; + api.updateTaskGraph(namespace, id, graph); + // TODO: test validations + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/api/TasksApiTest.java b/src/test/java/io/tiledb/cloud/rest_api/api/TasksApiTest.java new file mode 100644 index 0000000..a50188e --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/api/TasksApiTest.java @@ -0,0 +1,101 @@ +/* + * 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.api; + +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.model.ArrayTask; +import io.tiledb.cloud.rest_api.model.ArrayTaskData; +import io.tiledb.cloud.rest_api.model.Error; +import io.tiledb.cloud.rest_api.model.SQLParameters; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for TasksApi + */ +@Disabled +public class TasksApiTest { + + private final TasksApi api = new TasksApi(); + + /** + * Run a sql query + * + * @throws ApiException if the Api call fails + */ + @Test + public void runSQLTest() throws ApiException { + String namespace = null; + SQLParameters sql = null; + String acceptEncoding = null; + List> response = api.runSQL(namespace, sql, acceptEncoding); + // TODO: test validations + } + + /** + * Fetch an array task + * + * @throws ApiException if the Api call fails + */ + @Test + public void taskIdGetTest() throws ApiException { + String id = null; + ArrayTask response = api.taskIdGet(id); + // TODO: test validations + } + + /** + * Retrieve results of an array task + * + * @throws ApiException if the Api call fails + */ + @Test + public void taskIdResultGetTest() throws ApiException { + String id = null; + String acceptEncoding = null; + String response = api.taskIdResultGet(id, acceptEncoding); + // TODO: test validations + } + + /** + * Fetch a list of all array tasks a user has access to + * + * @throws ApiException if the Api call fails + */ + @Test + public void tasksGetTest() throws ApiException { + String namespace = null; + String createdBy = null; + String array = null; + Integer start = null; + Integer end = null; + Integer page = null; + Integer perPage = null; + String type = null; + List excludeType = null; + List fileType = null; + List excludeFileType = null; + String status = null; + String search = null; + String orderby = null; + ArrayTaskData response = api.tasksGet(namespace, createdBy, array, start, end, page, perPage, type, excludeType, fileType, excludeFileType, status, search, orderby); + // TODO: test validations + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/api/UdfApiTest.java b/src/test/java/io/tiledb/cloud/rest_api/api/UdfApiTest.java new file mode 100644 index 0000000..6fbd5f5 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/api/UdfApiTest.java @@ -0,0 +1,200 @@ +/* + * 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.api; + +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.model.ArrayEndTimestampData; +import io.tiledb.cloud.rest_api.model.Error; +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 org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for UdfApi + */ +@Disabled +public class UdfApiTest { + + private final UdfApi api = new UdfApi(); + + /** + * delete a registered UDF -- this will remove all sharing and can not be undone + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteUDFInfoTest() throws ApiException { + String namespace = null; + String name = null; + api.deleteUDFInfo(namespace, name); + // TODO: test validations + } + + /** + * get a specific UDF in the given namespace + * + * @throws ApiException if the Api call fails + */ + @Test + public void getUDFInfoTest() throws ApiException { + String namespace = null; + String name = null; + UDFInfo response = api.getUDFInfo(namespace, name); + // TODO: test validations + } + + /** + * Get all sharing details of the UDF + * + * @throws ApiException if the Api call fails + */ + @Test + public void getUDFInfoSharingPoliciesTest() throws ApiException { + String namespace = null; + String name = null; + List response = api.getUDFInfoSharingPolicies(namespace, name); + // TODO: test validations + } + + /** + * Copy a tiledb udf at the specified location + * + * @throws ApiException if the Api call fails + */ + @Test + public void handleCopyUDFTest() throws ApiException { + String namespace = null; + String name = null; + UDFCopy udFCopy = null; + String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME = null; + Integer endTimestamp = null; + UDFCopied response = api.handleCopyUDF(namespace, name, udFCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp); + // TODO: test validations + } + + /** + * register a UDF in the given namespace + * + * @throws ApiException if the Api call fails + */ + @Test + public void registerUDFInfoTest() throws ApiException { + String namespace = null; + String name = null; + UDFInfoUpdate udf = null; + api.registerUDFInfo(namespace, name, udf); + // TODO: test validations + } + + /** + * Share a UDF with a user + * + * @throws ApiException if the Api call fails + */ + @Test + public void shareUDFInfoTest() throws ApiException { + String namespace = null; + String name = null; + UDFSharing udfSharing = null; + api.shareUDFInfo(namespace, name, udfSharing); + // TODO: test validations + } + + /** + * submit a generic UDF in the given namespace + * + * @throws ApiException if the Api call fails + */ + @Test + public void submitGenericUDFTest() throws ApiException { + String namespace = null; + GenericUDF udf = null; + String acceptEncoding = null; + File response = api.submitGenericUDF(namespace, udf, acceptEncoding); + // TODO: test validations + } + + /** + * submit a multi-array UDF in the given namespace + * + * @throws ApiException if the Api call fails + */ + @Test + public void submitMultiArrayUDFTest() throws ApiException { + String namespace = null; + MultiArrayUDF udf = null; + String acceptEncoding = null; + File response = api.submitMultiArrayUDF(namespace, udf, acceptEncoding); + // TODO: test validations + } + + /** + * send a UDF to run against a specified array/URI registered to a group/project + * + * @throws ApiException if the Api call fails + */ + @Test + public void submitUDFTest() throws ApiException { + String namespace = null; + String array = null; + MultiArrayUDF udf = null; + String xPayer = null; + String acceptEncoding = null; + String v2 = null; + File response = api.submitUDF(namespace, array, udf, xPayer, acceptEncoding, v2); + // TODO: test validations + } + + /** + * retrieve a list of timestamps from the array fragment info listing in milliseconds, paginated + * + * @throws ApiException if the Api call fails + */ + @Test + public void udfNamespaceArrayEndTimestampsGetTest() throws ApiException { + String namespace = null; + String array = null; + Integer page = null; + Integer perPage = null; + ArrayEndTimestampData response = api.udfNamespaceArrayEndTimestampsGet(namespace, array, page, perPage); + // TODO: test validations + } + + /** + * update an existing registered UDF in the given namespace + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateUDFInfoTest() throws ApiException { + String namespace = null; + String name = null; + UDFInfoUpdate udf = null; + api.updateUDFInfo(namespace, name, udf); + // TODO: test validations + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/api/UserApiTest.java b/src/test/java/io/tiledb/cloud/rest_api/api/UserApiTest.java new file mode 100644 index 0000000..b84fd7a --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/api/UserApiTest.java @@ -0,0 +1,311 @@ +/* + * 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.api; + +import io.tiledb.cloud.rest_api.ApiException; +import io.tiledb.cloud.rest_api.model.AWSAccessCredentials; +import io.tiledb.cloud.rest_api.model.Error; +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 org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for UserApi + */ +@Disabled +public class UserApiTest { + + private final UserApi api = new UserApi(); + + /** + * Add aws keys + * + * @throws ApiException if the Api call fails + */ + @Test + public void addAWSAccessCredentialsTest() throws ApiException { + String namespace = null; + AWSAccessCredentials awsAccessCredentials = null; + api.addAWSAccessCredentials(namespace, awsAccessCredentials); + // TODO: test validations + } + + /** + * add a user to an organization + * + * @throws ApiException if the Api call fails + */ + @Test + public void addUserToOrganizationTest() throws ApiException { + String organization = null; + OrganizationUser user = null; + api.addUserToOrganization(organization, user); + // TODO: test validations + } + + /** + * Check if aws keys are set + * + * @throws ApiException if the Api call fails + */ + @Test + public void checkAWSAccessCredentialsTest() throws ApiException { + String namespace = null; + List response = api.checkAWSAccessCredentials(namespace); + // TODO: test validations + } + + /** + * Check if aws keys are set by name + * + * @throws ApiException if the Api call fails + */ + @Test + public void checkAWSAccessCredentialsByNameTest() throws ApiException { + String namespace = null; + String name = null; + AWSAccessCredentials response = api.checkAWSAccessCredentialsByName(namespace, name); + // TODO: test validations + } + + /** + * confirm user email + * + * @throws ApiException if the Api call fails + */ + @Test + public void confirmEmailTest() throws ApiException { + api.confirmEmail(); + // TODO: test validations + } + + /** + * create a user + * + * @throws ApiException if the Api call fails + */ + @Test + public void createUserTest() throws ApiException { + User user = null; + api.createUser(user); + // TODO: test validations + } + + /** + * delete a AWS Access credentials in a namespace. This will likely cause arrays to become unreachable + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteAWSAccessCredentialsTest() throws ApiException { + String namespace = null; + String name = null; + api.deleteAWSAccessCredentials(namespace, name); + // TODO: test validations + } + + /** + * delete a user + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteUserTest() throws ApiException { + String username = null; + api.deleteUser(username); + // TODO: test validations + } + + /** + * delete a user from an organization + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteUserFromOrganizationTest() throws ApiException { + String organization = null; + String username = null; + api.deleteUserFromOrganization(organization, username); + // TODO: test validations + } + + /** + * get a user from an organization + * + * @throws ApiException if the Api call fails + */ + @Test + public void getOrganizationUserTest() throws ApiException { + String organization = null; + String username = null; + OrganizationUser response = api.getOrganizationUser(organization, username); + // TODO: test validations + } + + /** + * Get session token for user + * + * @throws ApiException if the Api call fails + */ + @Test + public void getSessionTest() throws ApiException { + String rememberMe = null; + Token response = api.getSession(rememberMe); + // TODO: test validations + } + + /** + * retrieves available token scopes for a user + * + * @throws ApiException if the Api call fails + */ + @Test + public void getTokenScopesTest() throws ApiException { + List response = api.getTokenScopes(); + // TODO: test validations + } + + /** + * get a user + * + * @throws ApiException if the Api call fails + */ + @Test + public void getUserTest() throws ApiException { + User response = api.getUser(); + // TODO: test validations + } + + /** + * get a user + * + * @throws ApiException if the Api call fails + */ + @Test + public void getUserWithUsernameTest() throws ApiException { + String username = null; + User response = api.getUserWithUsername(username); + // TODO: test validations + } + + /** + * Request an authorization token, optionally taken a TokenRequest object to set parameters on the token + * + * @throws ApiException if the Api call fails + */ + @Test + public void requestTokenTest() throws ApiException { + TokenRequest tokenRequest = null; + Token response = api.requestToken(tokenRequest); + // TODO: test validations + } + + /** + * reset user password + * + * @throws ApiException if the Api call fails + */ + @Test + public void resetUserPasswordTest() throws ApiException { + ResetUserPasswordRequest user = null; + api.resetUserPassword(user); + // TODO: test validations + } + + /** + * revoke an authorization token + * + * @throws ApiException if the Api call fails + */ + @Test + public void revokeTokenTest() throws ApiException { + String token = null; + api.revokeToken(token); + // TODO: test validations + } + + /** + * Fetch a list of user tokens + * + * @throws ApiException if the Api call fails + */ + @Test + public void tokensGetTest() throws ApiException { + List response = api.tokensGet(); + // TODO: test validations + } + + /** + * Fetch a list of user session tokens + * + * @throws ApiException if the Api call fails + */ + @Test + public void tokensSessionGetTest() throws ApiException { + List response = api.tokensSessionGet(); + // TODO: test validations + } + + /** + * Update aws keys or associated buckets. This will update the key associations for each array in the namespace + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateAWSAccessCredentialsTest() throws ApiException { + String namespace = null; + String name = null; + AWSAccessCredentials awsAccessCredentials = null; + api.updateAWSAccessCredentials(namespace, name, awsAccessCredentials); + // TODO: test validations + } + + /** + * update a user + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateUserTest() throws ApiException { + String username = null; + User user = null; + api.updateUser(username, user); + // TODO: test validations + } + + /** + * update a user in an organization + * + * @throws ApiException if the Api call fails + */ + @Test + public void updateUserInOrganizationTest() throws ApiException { + String organization = null; + String username = null; + OrganizationUser user = null; + api.updateUserInOrganization(organization, username, user); + // TODO: test validations + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/AWSAccessCredentialsTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/AWSAccessCredentialsTest.java new file mode 100644 index 0000000..bb3820c --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/AWSAccessCredentialsTest.java @@ -0,0 +1,107 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for AWSAccessCredentials + */ +public class AWSAccessCredentialsTest { + private final AWSAccessCredentials model = new AWSAccessCredentials(); + + /** + * Model tests for AWSAccessCredentials + */ + @Test + public void testAWSAccessCredentials() { + // TODO: test AWSAccessCredentials + } + + /** + * Test the property 'secretAccessKey' + */ + @Test + public void secretAccessKeyTest() { + // TODO: test secretAccessKey + } + + /** + * Test the property 'accessKeyId' + */ + @Test + public void accessKeyIdTest() { + // TODO: test accessKeyId + } + + /** + * Test the property 'serviceRoleArn' + */ + @Test + public void serviceRoleArnTest() { + // TODO: test serviceRoleArn + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property '_default' + */ + @Test + public void _defaultTest() { + // TODO: test _default + } + + /** + * Test the property 'buckets' + */ + @Test + public void bucketsTest() { + // TODO: test buckets + } + + /** + * Test the property 'createdAt' + */ + @Test + public void createdAtTest() { + // TODO: test createdAt + } + + /** + * Test the property 'updatedAt' + */ + @Test + public void updatedAtTest() { + // TODO: test updatedAt + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ActivityEventTypeTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ActivityEventTypeTest.java new file mode 100644 index 0000000..ad9bacb --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/ActivityEventTypeTest.java @@ -0,0 +1,32 @@ +/* + * 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 com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ActivityEventType + */ +public class ActivityEventTypeTest { + /** + * Model tests for ActivityEventType + */ + @Test + public void testActivityEventType() { + // TODO: test ActivityEventType + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayActionsTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayActionsTest.java new file mode 100644 index 0000000..6eb1923 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayActionsTest.java @@ -0,0 +1,32 @@ +/* + * 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 com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ArrayActions + */ +public class ArrayActionsTest { + /** + * Model tests for ArrayActions + */ + @Test + public void testArrayActions() { + // TODO: test ArrayActions + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayActivityLogTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayActivityLogTest.java new file mode 100644 index 0000000..379bed2 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayActivityLogTest.java @@ -0,0 +1,114 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.ActivityEventType; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ArrayActivityLog + */ +public class ArrayActivityLogTest { + private final ArrayActivityLog model = new ArrayActivityLog(); + + /** + * Model tests for ArrayActivityLog + */ + @Test + public void testArrayActivityLog() { + // TODO: test ArrayActivityLog + } + + /** + * Test the property 'eventAt' + */ + @Test + public void eventAtTest() { + // TODO: test eventAt + } + + /** + * Test the property 'action' + */ + @Test + public void actionTest() { + // TODO: test action + } + + /** + * Test the property 'username' + */ + @Test + public void usernameTest() { + // TODO: test username + } + + /** + * Test the property 'bytesSent' + */ + @Test + public void bytesSentTest() { + // TODO: test bytesSent + } + + /** + * Test the property 'bytesReceived' + */ + @Test + public void bytesReceivedTest() { + // TODO: test bytesReceived + } + + /** + * Test the property 'arrayTaskId' + */ + @Test + public void arrayTaskIdTest() { + // TODO: test arrayTaskId + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'queryRanges' + */ + @Test + public void queryRangesTest() { + // TODO: test queryRanges + } + + /** + * Test the property 'queryStats' + */ + @Test + public void queryStatsTest() { + // TODO: test queryStats + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayBrowserDataTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayBrowserDataTest.java new file mode 100644 index 0000000..7742551 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayBrowserDataTest.java @@ -0,0 +1,60 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.ArrayInfo; +import io.tiledb.cloud.rest_api.model.PaginationMetadata; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ArrayBrowserData + */ +public class ArrayBrowserDataTest { + private final ArrayBrowserData model = new ArrayBrowserData(); + + /** + * Model tests for ArrayBrowserData + */ + @Test + public void testArrayBrowserData() { + // TODO: test ArrayBrowserData + } + + /** + * Test the property 'arrays' + */ + @Test + public void arraysTest() { + // TODO: test arrays + } + + /** + * Test the property 'paginationMetadata' + */ + @Test + public void paginationMetadataTest() { + // TODO: test paginationMetadata + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayBrowserSidebarTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayBrowserSidebarTest.java new file mode 100644 index 0000000..b8520e1 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayBrowserSidebarTest.java @@ -0,0 +1,66 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ArrayBrowserSidebar + */ +public class ArrayBrowserSidebarTest { + private final ArrayBrowserSidebar model = new ArrayBrowserSidebar(); + + /** + * Model tests for ArrayBrowserSidebar + */ + @Test + public void testArrayBrowserSidebar() { + // TODO: test ArrayBrowserSidebar + } + + /** + * Test the property 'namespaces' + */ + @Test + public void namespacesTest() { + // TODO: test namespaces + } + + /** + * Test the property 'resultCountForAll' + */ + @Test + public void resultCountForAllTest() { + // TODO: test resultCountForAll + } + + /** + * Test the property 'resultCountByNamespace' + */ + @Test + public void resultCountByNamespaceTest() { + // TODO: test resultCountByNamespace + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayConsolidationRequestTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayConsolidationRequestTest.java new file mode 100644 index 0000000..15b87b2 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayConsolidationRequestTest.java @@ -0,0 +1,59 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.TileDBConfig; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ArrayConsolidationRequest + */ +public class ArrayConsolidationRequestTest { + private final ArrayConsolidationRequest model = new ArrayConsolidationRequest(); + + /** + * Model tests for ArrayConsolidationRequest + */ + @Test + public void testArrayConsolidationRequest() { + // TODO: test ArrayConsolidationRequest + } + + /** + * Test the property 'config' + */ + @Test + public void configTest() { + // TODO: test config + } + + /** + * Test the property 'fragments' + */ + @Test + public void fragmentsTest() { + // TODO: test fragments + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayEndTimestampDataTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayEndTimestampDataTest.java new file mode 100644 index 0000000..ae90d8c --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayEndTimestampDataTest.java @@ -0,0 +1,59 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.PaginationMetadata; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ArrayEndTimestampData + */ +public class ArrayEndTimestampDataTest { + private final ArrayEndTimestampData model = new ArrayEndTimestampData(); + + /** + * Model tests for ArrayEndTimestampData + */ + @Test + public void testArrayEndTimestampData() { + // TODO: test ArrayEndTimestampData + } + + /** + * Test the property 'endTimestamps' + */ + @Test + public void endTimestampsTest() { + // TODO: test endTimestamps + } + + /** + * Test the property 'paginationMetadata' + */ + @Test + public void paginationMetadataTest() { + // TODO: test paginationMetadata + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayFavoriteTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayFavoriteTest.java new file mode 100644 index 0000000..8a659b0 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayFavoriteTest.java @@ -0,0 +1,64 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ArrayFavorite + */ +public class ArrayFavoriteTest { + private final ArrayFavorite model = new ArrayFavorite(); + + /** + * Model tests for ArrayFavorite + */ + @Test + public void testArrayFavorite() { + // TODO: test ArrayFavorite + } + + /** + * Test the property 'arrayUuid' + */ + @Test + public void arrayUuidTest() { + // TODO: test arrayUuid + } + + /** + * Test the property 'namespace' + */ + @Test + public void namespaceTest() { + // TODO: test namespace + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayFavoritesDataTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayFavoritesDataTest.java new file mode 100644 index 0000000..f4c8469 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayFavoritesDataTest.java @@ -0,0 +1,60 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.ArrayInfo; +import io.tiledb.cloud.rest_api.model.PaginationMetadata; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ArrayFavoritesData + */ +public class ArrayFavoritesDataTest { + private final ArrayFavoritesData model = new ArrayFavoritesData(); + + /** + * Model tests for ArrayFavoritesData + */ + @Test + public void testArrayFavoritesData() { + // TODO: test ArrayFavoritesData + } + + /** + * Test the property 'arrays' + */ + @Test + public void arraysTest() { + // TODO: test arrays + } + + /** + * Test the property 'paginationMetadata' + */ + @Test + public void paginationMetadataTest() { + // TODO: test paginationMetadata + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayInfoTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayInfoTest.java new file mode 100644 index 0000000..b532440 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayInfoTest.java @@ -0,0 +1,269 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.ArrayActions; +import io.tiledb.cloud.rest_api.model.ArrayType; +import io.tiledb.cloud.rest_api.model.FileType; +import io.tiledb.cloud.rest_api.model.MetadataStringifiedEntry; +import io.tiledb.cloud.rest_api.model.Pricing; +import io.tiledb.cloud.rest_api.model.Subscription; +import java.io.IOException; +import java.math.BigDecimal; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ArrayInfo + */ +public class ArrayInfoTest { + private final ArrayInfo model = new ArrayInfo(); + + /** + * Model tests for ArrayInfo + */ + @Test + public void testArrayInfo() { + // TODO: test ArrayInfo + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'fileType' + */ + @Test + public void fileTypeTest() { + // TODO: test fileType + } + + /** + * Test the property 'fileProperties' + */ + @Test + public void filePropertiesTest() { + // TODO: test fileProperties + } + + /** + * Test the property 'uri' + */ + @Test + public void uriTest() { + // TODO: test uri + } + + /** + * Test the property 'namespace' + */ + @Test + public void namespaceTest() { + // TODO: test namespace + } + + /** + * Test the property 'size' + */ + @Test + public void sizeTest() { + // TODO: test size + } + + /** + * Test the property 'lastAccessed' + */ + @Test + public void lastAccessedTest() { + // TODO: test lastAccessed + } + + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'allowedActions' + */ + @Test + public void allowedActionsTest() { + // TODO: test allowedActions + } + + /** + * Test the property 'pricing' + */ + @Test + public void pricingTest() { + // TODO: test pricing + } + + /** + * Test the property 'subscriptions' + */ + @Test + public void subscriptionsTest() { + // TODO: test subscriptions + } + + /** + * Test the property 'logo' + */ + @Test + public void logoTest() { + // TODO: test logo + } + + /** + * Test the property 'accessCredentialsName' + */ + @Test + public void accessCredentialsNameTest() { + // TODO: test accessCredentialsName + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'shareCount' + */ + @Test + public void shareCountTest() { + // TODO: test shareCount + } + + /** + * Test the property 'publicShare' + */ + @Test + public void publicShareTest() { + // TODO: test publicShare + } + + /** + * Test the property 'namespaceSubscribed' + */ + @Test + public void namespaceSubscribedTest() { + // TODO: test namespaceSubscribed + } + + /** + * Test the property 'tiledbUri' + */ + @Test + public void tiledbUriTest() { + // TODO: test tiledbUri + } + + /** + * Test the property 'tags' + */ + @Test + public void tagsTest() { + // TODO: test tags + } + + /** + * Test the property 'licenseId' + */ + @Test + public void licenseIdTest() { + // TODO: test licenseId + } + + /** + * Test the property 'licenseText' + */ + @Test + public void licenseTextTest() { + // TODO: test licenseText + } + + /** + * Test the property 'readOnly' + */ + @Test + public void readOnlyTest() { + // TODO: test readOnly + } + + /** + * Test the property 'isFavorite' + */ + @Test + public void isFavoriteTest() { + // TODO: test isFavorite + } + + /** + * Test the property 'createdAt' + */ + @Test + public void createdAtTest() { + // TODO: test createdAt + } + + /** + * Test the property 'createdBy' + */ + @Test + public void createdByTest() { + // TODO: test createdBy + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayInfoUpdateTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayInfoUpdateTest.java new file mode 100644 index 0000000..79ee001 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayInfoUpdateTest.java @@ -0,0 +1,134 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.FileType; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ArrayInfoUpdate + */ +public class ArrayInfoUpdateTest { + private final ArrayInfoUpdate model = new ArrayInfoUpdate(); + + /** + * Model tests for ArrayInfoUpdate + */ + @Test + public void testArrayInfoUpdate() { + // TODO: test ArrayInfoUpdate + } + + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'uri' + */ + @Test + public void uriTest() { + // TODO: test uri + } + + /** + * Test the property 'fileType' + */ + @Test + public void fileTypeTest() { + // TODO: test fileType + } + + /** + * Test the property 'fileProperties' + */ + @Test + public void filePropertiesTest() { + // TODO: test fileProperties + } + + /** + * Test the property 'accessCredentialsName' + */ + @Test + public void accessCredentialsNameTest() { + // TODO: test accessCredentialsName + } + + /** + * Test the property 'logo' + */ + @Test + public void logoTest() { + // TODO: test logo + } + + /** + * Test the property 'tags' + */ + @Test + public void tagsTest() { + // TODO: test tags + } + + /** + * Test the property 'licenseId' + */ + @Test + public void licenseIdTest() { + // TODO: test licenseId + } + + /** + * Test the property 'licenseText' + */ + @Test + public void licenseTextTest() { + // TODO: test licenseText + } + + /** + * Test the property 'readOnly' + */ + @Test + public void readOnlyTest() { + // TODO: test readOnly + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayMetadataEntryTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayMetadataEntryTest.java new file mode 100644 index 0000000..e39e7f2 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayMetadataEntryTest.java @@ -0,0 +1,82 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ArrayMetadataEntry + */ +public class ArrayMetadataEntryTest { + private final ArrayMetadataEntry model = new ArrayMetadataEntry(); + + /** + * Model tests for ArrayMetadataEntry + */ + @Test + public void testArrayMetadataEntry() { + // TODO: test ArrayMetadataEntry + } + + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'valueNum' + */ + @Test + public void valueNumTest() { + // TODO: test valueNum + } + + /** + * Test the property 'value' + */ + @Test + public void valueTest() { + // TODO: test value + } + + /** + * Test the property 'del' + */ + @Test + public void delTest() { + // TODO: test del + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayMetadataTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayMetadataTest.java new file mode 100644 index 0000000..ac1eed3 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayMetadataTest.java @@ -0,0 +1,51 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.ArrayMetadataEntry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ArrayMetadata + */ +public class ArrayMetadataTest { + private final ArrayMetadata model = new ArrayMetadata(); + + /** + * Model tests for ArrayMetadata + */ + @Test + public void testArrayMetadata() { + // TODO: test ArrayMetadata + } + + /** + * Test the property 'entries' + */ + @Test + public void entriesTest() { + // TODO: test entries + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ArraySampleTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ArraySampleTest.java new file mode 100644 index 0000000..f43176e --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/ArraySampleTest.java @@ -0,0 +1,48 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ArraySample + */ +public class ArraySampleTest { + private final ArraySample model = new ArraySample(); + + /** + * Model tests for ArraySample + */ + @Test + public void testArraySample() { + // TODO: test ArraySample + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ArraySchemaTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ArraySchemaTest.java new file mode 100644 index 0000000..7a499d1 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/ArraySchemaTest.java @@ -0,0 +1,135 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.ArrayType; +import io.tiledb.cloud.rest_api.model.Attribute; +import io.tiledb.cloud.rest_api.model.Domain; +import io.tiledb.cloud.rest_api.model.FilterPipeline; +import io.tiledb.cloud.rest_api.model.Layout; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ArraySchema + */ +public class ArraySchemaTest { + private final ArraySchema model = new ArraySchema(); + + /** + * Model tests for ArraySchema + */ + @Test + public void testArraySchema() { + // TODO: test ArraySchema + } + + /** + * Test the property 'uri' + */ + @Test + public void uriTest() { + // TODO: test uri + } + + /** + * Test the property 'version' + */ + @Test + public void versionTest() { + // TODO: test version + } + + /** + * Test the property 'arrayType' + */ + @Test + public void arrayTypeTest() { + // TODO: test arrayType + } + + /** + * Test the property 'tileOrder' + */ + @Test + public void tileOrderTest() { + // TODO: test tileOrder + } + + /** + * Test the property 'cellOrder' + */ + @Test + public void cellOrderTest() { + // TODO: test cellOrder + } + + /** + * Test the property 'capacity' + */ + @Test + public void capacityTest() { + // TODO: test capacity + } + + /** + * Test the property 'coordsFilterPipeline' + */ + @Test + public void coordsFilterPipelineTest() { + // TODO: test coordsFilterPipeline + } + + /** + * Test the property 'offsetFilterPipeline' + */ + @Test + public void offsetFilterPipelineTest() { + // TODO: test offsetFilterPipeline + } + + /** + * Test the property 'domain' + */ + @Test + public void domainTest() { + // TODO: test domain + } + + /** + * Test the property 'attributes' + */ + @Test + public void attributesTest() { + // TODO: test attributes + } + + /** + * Test the property 'allowsDuplicates' + */ + @Test + public void allowsDuplicatesTest() { + // TODO: test allowsDuplicates + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ArraySharingTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ArraySharingTest.java new file mode 100644 index 0000000..60e03ce --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/ArraySharingTest.java @@ -0,0 +1,67 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.ArrayActions; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ArraySharing + */ +public class ArraySharingTest { + private final ArraySharing model = new ArraySharing(); + + /** + * Model tests for ArraySharing + */ + @Test + public void testArraySharing() { + // TODO: test ArraySharing + } + + /** + * Test the property 'actions' + */ + @Test + public void actionsTest() { + // TODO: test actions + } + + /** + * Test the property 'namespace' + */ + @Test + public void namespaceTest() { + // TODO: test namespace + } + + /** + * Test the property 'namespaceType' + */ + @Test + public void namespaceTypeTest() { + // TODO: test namespaceType + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskBrowserSidebarTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskBrowserSidebarTest.java new file mode 100644 index 0000000..055a93f --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskBrowserSidebarTest.java @@ -0,0 +1,66 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ArrayTaskBrowserSidebar + */ +public class ArrayTaskBrowserSidebarTest { + private final ArrayTaskBrowserSidebar model = new ArrayTaskBrowserSidebar(); + + /** + * Model tests for ArrayTaskBrowserSidebar + */ + @Test + public void testArrayTaskBrowserSidebar() { + // TODO: test ArrayTaskBrowserSidebar + } + + /** + * Test the property 'organizations' + */ + @Test + public void organizationsTest() { + // TODO: test organizations + } + + /** + * Test the property 'resultCountForAll' + */ + @Test + public void resultCountForAllTest() { + // TODO: test resultCountForAll + } + + /** + * Test the property 'resultCountByNamespace' + */ + @Test + public void resultCountByNamespaceTest() { + // TODO: test resultCountByNamespace + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskDataTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskDataTest.java new file mode 100644 index 0000000..c9ca90a --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskDataTest.java @@ -0,0 +1,60 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.ArrayTask; +import io.tiledb.cloud.rest_api.model.PaginationMetadata; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ArrayTaskData + */ +public class ArrayTaskDataTest { + private final ArrayTaskData model = new ArrayTaskData(); + + /** + * Model tests for ArrayTaskData + */ + @Test + public void testArrayTaskData() { + // TODO: test ArrayTaskData + } + + /** + * Test the property 'arrayTasks' + */ + @Test + public void arrayTasksTest() { + // TODO: test arrayTasks + } + + /** + * Test the property 'paginationMetadata' + */ + @Test + public void paginationMetadataTest() { + // TODO: test paginationMetadata + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskLogTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskLogTest.java new file mode 100644 index 0000000..74b3aba --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskLogTest.java @@ -0,0 +1,56 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ArrayTaskLog + */ +public class ArrayTaskLogTest { + private final ArrayTaskLog model = new ArrayTaskLog(); + + /** + * Model tests for ArrayTaskLog + */ + @Test + public void testArrayTaskLog() { + // TODO: test ArrayTaskLog + } + + /** + * Test the property 'arrayTaskId' + */ + @Test + public void arrayTaskIdTest() { + // TODO: test arrayTaskId + } + + /** + * Test the property 'logs' + */ + @Test + public void logsTest() { + // TODO: test logs + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskStatusTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskStatusTest.java new file mode 100644 index 0000000..004e005 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskStatusTest.java @@ -0,0 +1,32 @@ +/* + * 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 com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ArrayTaskStatus + */ +public class ArrayTaskStatusTest { + /** + * Model tests for ArrayTaskStatus + */ + @Test + public void testArrayTaskStatus() { + // TODO: test ArrayTaskStatus + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskTest.java new file mode 100644 index 0000000..4c98798 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskTest.java @@ -0,0 +1,300 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.ArrayActivityLog; +import io.tiledb.cloud.rest_api.model.ArrayInfo; +import io.tiledb.cloud.rest_api.model.ArrayTaskStatus; +import io.tiledb.cloud.rest_api.model.ArrayTaskType; +import io.tiledb.cloud.rest_api.model.DomainArray; +import io.tiledb.cloud.rest_api.model.Querytype; +import io.tiledb.cloud.rest_api.model.ResultFormat; +import java.io.IOException; +import java.math.BigDecimal; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ArrayTask + */ +public class ArrayTaskTest { + private final ArrayTask model = new ArrayTask(); + + /** + * Model tests for ArrayTask + */ + @Test + public void testArrayTask() { + // TODO: test ArrayTask + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'username' + */ + @Test + public void usernameTest() { + // TODO: test username + } + + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } + + /** + * Test the property 'arrayMetadata' + */ + @Test + public void arrayMetadataTest() { + // TODO: test arrayMetadata + } + + /** + * Test the property 'subarray' + */ + @Test + public void subarrayTest() { + // TODO: test subarray + } + + /** + * Test the property 'memory' + */ + @Test + public void memoryTest() { + // TODO: test memory + } + + /** + * Test the property 'cpu' + */ + @Test + public void cpuTest() { + // TODO: test cpu + } + + /** + * Test the property 'namespace' + */ + @Test + public void namespaceTest() { + // TODO: test namespace + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'statusMessage' + */ + @Test + public void statusMessageTest() { + // TODO: test statusMessage + } + + /** + * Test the property 'startTime' + */ + @Test + public void startTimeTest() { + // TODO: test startTime + } + + /** + * Test the property 'finishTime' + */ + @Test + public void finishTimeTest() { + // TODO: test finishTime + } + + /** + * Test the property 'cost' + */ + @Test + public void costTest() { + // TODO: test cost + } + + /** + * Test the property 'egressCost' + */ + @Test + public void egressCostTest() { + // TODO: test egressCost + } + + /** + * Test the property 'accessCost' + */ + @Test + public void accessCostTest() { + // TODO: test accessCost + } + + /** + * Test the property 'queryType' + */ + @Test + public void queryTypeTest() { + // TODO: test queryType + } + + /** + * Test the property 'udfCode' + */ + @Test + public void udfCodeTest() { + // TODO: test udfCode + } + + /** + * Test the property 'udfLanguage' + */ + @Test + public void udfLanguageTest() { + // TODO: test udfLanguage + } + + /** + * Test the property 'sqlQuery' + */ + @Test + public void sqlQueryTest() { + // TODO: test sqlQuery + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'activity' + */ + @Test + public void activityTest() { + // TODO: test activity + } + + /** + * Test the property 'logs' + */ + @Test + public void logsTest() { + // TODO: test logs + } + + /** + * Test the property 'duration' + */ + @Test + public void durationTest() { + // TODO: test duration + } + + /** + * Test the property 'sqlInitCommands' + */ + @Test + public void sqlInitCommandsTest() { + // TODO: test sqlInitCommands + } + + /** + * Test the property 'sqlParameters' + */ + @Test + public void sqlParametersTest() { + // TODO: test sqlParameters + } + + /** + * Test the property 'resultFormat' + */ + @Test + public void resultFormatTest() { + // TODO: test resultFormat + } + + /** + * Test the property 'taskGraphUuid' + */ + @Test + public void taskGraphUuidTest() { + // TODO: test taskGraphUuid + } + + /** + * Test the property 'clientNodeUuid' + */ + @Test + public void clientNodeUuidTest() { + // TODO: test clientNodeUuid + } + + /** + * Test the property 'cloudProvider' + */ + @Test + public void cloudProviderTest() { + // TODO: test cloudProvider + } + + /** + * Test the property 'cloudRegion' + */ + @Test + public void cloudRegionTest() { + // TODO: test cloudRegion + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskTypeTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskTypeTest.java new file mode 100644 index 0000000..f143782 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskTypeTest.java @@ -0,0 +1,32 @@ +/* + * 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 com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ArrayTaskType + */ +public class ArrayTaskTypeTest { + /** + * Model tests for ArrayTaskType + */ + @Test + public void testArrayTaskType() { + // TODO: test ArrayTaskType + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayTest.java new file mode 100644 index 0000000..39dc993 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayTest.java @@ -0,0 +1,66 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.Querytype; +import java.io.IOException; +import java.math.BigDecimal; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for Array + */ +public class ArrayTest { + private final Array model = new Array(); + + /** + * Model tests for Array + */ + @Test + public void testArray() { + // TODO: test Array + } + + /** + * Test the property 'timestamp' + */ + @Test + public void timestampTest() { + // TODO: test timestamp + } + + /** + * Test the property 'queryType' + */ + @Test + public void queryTypeTest() { + // TODO: test queryType + } + + /** + * Test the property 'uri' + */ + @Test + public void uriTest() { + // TODO: test uri + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayTypeTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayTypeTest.java new file mode 100644 index 0000000..5b9ac78 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayTypeTest.java @@ -0,0 +1,32 @@ +/* + * 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 com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ArrayType + */ +public class ArrayTypeTest { + /** + * Model tests for ArrayType + */ + @Test + public void testArrayType() { + // TODO: test ArrayType + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayVacuumRequestTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayVacuumRequestTest.java new file mode 100644 index 0000000..409b365 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayVacuumRequestTest.java @@ -0,0 +1,49 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.TileDBConfig; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ArrayVacuumRequest + */ +public class ArrayVacuumRequestTest { + private final ArrayVacuumRequest model = new ArrayVacuumRequest(); + + /** + * Model tests for ArrayVacuumRequest + */ + @Test + public void testArrayVacuumRequest() { + // TODO: test ArrayVacuumRequest + } + + /** + * Test the property 'config' + */ + @Test + public void configTest() { + // TODO: test config + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/AssetBackingTypeTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/AssetBackingTypeTest.java new file mode 100644 index 0000000..b3a8b62 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/AssetBackingTypeTest.java @@ -0,0 +1,32 @@ +/* + * 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 com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for AssetBackingType + */ +public class AssetBackingTypeTest { + /** + * Model tests for AssetBackingType + */ + @Test + public void testAssetBackingType() { + // TODO: test AssetBackingType + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/AssetInfoTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/AssetInfoTest.java new file mode 100644 index 0000000..edf175b --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/AssetInfoTest.java @@ -0,0 +1,125 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.AssetBackingType; +import io.tiledb.cloud.rest_api.model.AssetOwnershipLevel; +import io.tiledb.cloud.rest_api.model.AssetType; +import io.tiledb.cloud.rest_api.model.MetadataStringified; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for AssetInfo + */ +public class AssetInfoTest { + private final AssetInfo model = new AssetInfo(); + + /** + * Model tests for AssetInfo + */ + @Test + public void testAssetInfo() { + // TODO: test AssetInfo + } + + /** + * Test the property 'uuid' + */ + @Test + public void uuidTest() { + // TODO: test uuid + } + + /** + * Test the property 'assetType' + */ + @Test + public void assetTypeTest() { + // TODO: test assetType + } + + /** + * Test the property 'assetBackingType' + */ + @Test + public void assetBackingTypeTest() { + // TODO: test assetBackingType + } + + /** + * Test the property 'assetOwnershipLevel' + */ + @Test + public void assetOwnershipLevelTest() { + // TODO: test assetOwnershipLevel + } + + /** + * Test the property 'namespaceName' + */ + @Test + public void namespaceNameTest() { + // TODO: test namespaceName + } + + /** + * Test the property 'namespaceUuid' + */ + @Test + public void namespaceUuidTest() { + // TODO: test namespaceUuid + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'mimeType' + */ + @Test + public void mimeTypeTest() { + // TODO: test mimeType + } + + /** + * Test the property 'createdAt' + */ + @Test + public void createdAtTest() { + // TODO: test createdAt + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/AssetListResponseTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/AssetListResponseTest.java new file mode 100644 index 0000000..9ccd7fc --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/AssetListResponseTest.java @@ -0,0 +1,60 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.AssetInfo; +import io.tiledb.cloud.rest_api.model.PaginationMetadata; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for AssetListResponse + */ +public class AssetListResponseTest { + private final AssetListResponse model = new AssetListResponse(); + + /** + * Model tests for AssetListResponse + */ + @Test + public void testAssetListResponse() { + // TODO: test AssetListResponse + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'paginationMetadata' + */ + @Test + public void paginationMetadataTest() { + // TODO: test paginationMetadata + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/AssetLocationsTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/AssetLocationsTest.java new file mode 100644 index 0000000..6a87d13 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/AssetLocationsTest.java @@ -0,0 +1,97 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.StorageLocation; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for AssetLocations + */ +public class AssetLocationsTest { + private final AssetLocations model = new AssetLocations(); + + /** + * Model tests for AssetLocations + */ + @Test + public void testAssetLocations() { + // TODO: test AssetLocations + } + + /** + * Test the property 'arrays' + */ + @Test + public void arraysTest() { + // TODO: test arrays + } + + /** + * Test the property 'files' + */ + @Test + public void filesTest() { + // TODO: test files + } + + /** + * Test the property 'groups' + */ + @Test + public void groupsTest() { + // TODO: test groups + } + + /** + * Test the property 'mlModels' + */ + @Test + public void mlModelsTest() { + // TODO: test mlModels + } + + /** + * Test the property 'notebooks' + */ + @Test + public void notebooksTest() { + // TODO: test notebooks + } + + /** + * Test the property 'taskGraphs' + */ + @Test + public void taskGraphsTest() { + // TODO: test taskGraphs + } + + /** + * Test the property 'udfs' + */ + @Test + public void udfsTest() { + // TODO: test udfs + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/AssetOwnershipLevelTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/AssetOwnershipLevelTest.java new file mode 100644 index 0000000..052e4e0 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/AssetOwnershipLevelTest.java @@ -0,0 +1,32 @@ +/* + * 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 com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for AssetOwnershipLevel + */ +public class AssetOwnershipLevelTest { + /** + * Model tests for AssetOwnershipLevel + */ + @Test + public void testAssetOwnershipLevel() { + // TODO: test AssetOwnershipLevel + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/AssetTypeTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/AssetTypeTest.java new file mode 100644 index 0000000..bfc01e1 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/AssetTypeTest.java @@ -0,0 +1,32 @@ +/* + * 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 com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for AssetType + */ +public class AssetTypeTest { + /** + * Model tests for AssetType + */ + @Test + public void testAssetType() { + // TODO: test AssetType + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/AttributeBufferHeaderTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/AttributeBufferHeaderTest.java new file mode 100644 index 0000000..ca48749 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/AttributeBufferHeaderTest.java @@ -0,0 +1,64 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for AttributeBufferHeader + */ +public class AttributeBufferHeaderTest { + private final AttributeBufferHeader model = new AttributeBufferHeader(); + + /** + * Model tests for AttributeBufferHeader + */ + @Test + public void testAttributeBufferHeader() { + // TODO: test AttributeBufferHeader + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'fixedLenBufferSizeInBytes' + */ + @Test + public void fixedLenBufferSizeInBytesTest() { + // TODO: test fixedLenBufferSizeInBytes + } + + /** + * Test the property 'varLenBufferSizeInBytes' + */ + @Test + public void varLenBufferSizeInBytesTest() { + // TODO: test varLenBufferSizeInBytes + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/AttributeBufferSizeTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/AttributeBufferSizeTest.java new file mode 100644 index 0000000..4b33244 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/AttributeBufferSizeTest.java @@ -0,0 +1,64 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for AttributeBufferSize + */ +public class AttributeBufferSizeTest { + private final AttributeBufferSize model = new AttributeBufferSize(); + + /** + * Model tests for AttributeBufferSize + */ + @Test + public void testAttributeBufferSize() { + // TODO: test AttributeBufferSize + } + + /** + * Test the property 'attribute' + */ + @Test + public void attributeTest() { + // TODO: test attribute + } + + /** + * Test the property 'offsetBytes' + */ + @Test + public void offsetBytesTest() { + // TODO: test offsetBytes + } + + /** + * Test the property 'dataBytes' + */ + @Test + public void dataBytesTest() { + // TODO: test dataBytes + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/AttributeTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/AttributeTest.java new file mode 100644 index 0000000..b5d9c73 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/AttributeTest.java @@ -0,0 +1,92 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.Datatype; +import io.tiledb.cloud.rest_api.model.FilterPipeline; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for Attribute + */ +public class AttributeTest { + private final Attribute model = new Attribute(); + + /** + * Model tests for Attribute + */ + @Test + public void testAttribute() { + // TODO: test Attribute + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'filterPipeline' + */ + @Test + public void filterPipelineTest() { + // TODO: test filterPipeline + } + + /** + * Test the property 'cellValNum' + */ + @Test + public void cellValNumTest() { + // TODO: test cellValNum + } + + /** + * Test the property 'nullable' + */ + @Test + public void nullableTest() { + // TODO: test nullable + } + + /** + * Test the property 'fillValue' + */ + @Test + public void fillValueTest() { + // TODO: test fillValue + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/BackoffTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/BackoffTest.java new file mode 100644 index 0000000..1f417de --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/BackoffTest.java @@ -0,0 +1,64 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for Backoff + */ +public class BackoffTest { + private final Backoff model = new Backoff(); + + /** + * Model tests for Backoff + */ + @Test + public void testBackoff() { + // TODO: test Backoff + } + + /** + * Test the property 'duration' + */ + @Test + public void durationTest() { + // TODO: test duration + } + + /** + * Test the property 'factor' + */ + @Test + public void factorTest() { + // TODO: test factor + } + + /** + * Test the property 'maxDuration' + */ + @Test + public void maxDurationTest() { + // TODO: test maxDuration + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/DatatypeTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/DatatypeTest.java new file mode 100644 index 0000000..b7d431f --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/DatatypeTest.java @@ -0,0 +1,32 @@ +/* + * 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 com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for Datatype + */ +public class DatatypeTest { + /** + * Model tests for Datatype + */ + @Test + public void testDatatype() { + // TODO: test Datatype + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/DimensionCoordinateTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/DimensionCoordinateTest.java new file mode 100644 index 0000000..9a2917f --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/DimensionCoordinateTest.java @@ -0,0 +1,120 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for DimensionCoordinate + */ +public class DimensionCoordinateTest { + private final DimensionCoordinate model = new DimensionCoordinate(); + + /** + * Model tests for DimensionCoordinate + */ + @Test + public void testDimensionCoordinate() { + // TODO: test DimensionCoordinate + } + + /** + * Test the property 'int8' + */ + @Test + public void int8Test() { + // TODO: test int8 + } + + /** + * Test the property 'uint8' + */ + @Test + public void uint8Test() { + // TODO: test uint8 + } + + /** + * Test the property 'int16' + */ + @Test + public void int16Test() { + // TODO: test int16 + } + + /** + * Test the property 'uint16' + */ + @Test + public void uint16Test() { + // TODO: test uint16 + } + + /** + * Test the property 'int32' + */ + @Test + public void int32Test() { + // TODO: test int32 + } + + /** + * Test the property 'uint32' + */ + @Test + public void uint32Test() { + // TODO: test uint32 + } + + /** + * Test the property 'int64' + */ + @Test + public void int64Test() { + // TODO: test int64 + } + + /** + * Test the property 'uint64' + */ + @Test + public void uint64Test() { + // TODO: test uint64 + } + + /** + * Test the property 'float32' + */ + @Test + public void float32Test() { + // TODO: test float32 + } + + /** + * Test the property 'float64' + */ + @Test + public void float64Test() { + // TODO: test float64 + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/DimensionTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/DimensionTest.java new file mode 100644 index 0000000..644f3f4 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/DimensionTest.java @@ -0,0 +1,92 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.Datatype; +import io.tiledb.cloud.rest_api.model.DimensionTileExtent; +import io.tiledb.cloud.rest_api.model.DomainArray; +import io.tiledb.cloud.rest_api.model.FilterPipeline; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for Dimension + */ +public class DimensionTest { + private final Dimension model = new Dimension(); + + /** + * Model tests for Dimension + */ + @Test + public void testDimension() { + // TODO: test Dimension + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'domain' + */ + @Test + public void domainTest() { + // TODO: test domain + } + + /** + * Test the property 'nullTileExtent' + */ + @Test + public void nullTileExtentTest() { + // TODO: test nullTileExtent + } + + /** + * Test the property 'tileExtent' + */ + @Test + public void tileExtentTest() { + // TODO: test tileExtent + } + + /** + * Test the property 'filterPipeline' + */ + @Test + public void filterPipelineTest() { + // TODO: test filterPipeline + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/DimensionTileExtentTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/DimensionTileExtentTest.java new file mode 100644 index 0000000..4aded6a --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/DimensionTileExtentTest.java @@ -0,0 +1,120 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for DimensionTileExtent + */ +public class DimensionTileExtentTest { + private final DimensionTileExtent model = new DimensionTileExtent(); + + /** + * Model tests for DimensionTileExtent + */ + @Test + public void testDimensionTileExtent() { + // TODO: test DimensionTileExtent + } + + /** + * Test the property 'int8' + */ + @Test + public void int8Test() { + // TODO: test int8 + } + + /** + * Test the property 'uint8' + */ + @Test + public void uint8Test() { + // TODO: test uint8 + } + + /** + * Test the property 'int16' + */ + @Test + public void int16Test() { + // TODO: test int16 + } + + /** + * Test the property 'uint16' + */ + @Test + public void uint16Test() { + // TODO: test uint16 + } + + /** + * Test the property 'int32' + */ + @Test + public void int32Test() { + // TODO: test int32 + } + + /** + * Test the property 'uint32' + */ + @Test + public void uint32Test() { + // TODO: test uint32 + } + + /** + * Test the property 'int64' + */ + @Test + public void int64Test() { + // TODO: test int64 + } + + /** + * Test the property 'uint64' + */ + @Test + public void uint64Test() { + // TODO: test uint64 + } + + /** + * Test the property 'float32' + */ + @Test + public void float32Test() { + // TODO: test float32 + } + + /** + * Test the property 'float64' + */ + @Test + public void float64Test() { + // TODO: test float64 + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/DomainArrayTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/DomainArrayTest.java new file mode 100644 index 0000000..e376fac --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/DomainArrayTest.java @@ -0,0 +1,122 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for DomainArray + */ +public class DomainArrayTest { + private final DomainArray model = new DomainArray(); + + /** + * Model tests for DomainArray + */ + @Test + public void testDomainArray() { + // TODO: test DomainArray + } + + /** + * Test the property 'int8' + */ + @Test + public void int8Test() { + // TODO: test int8 + } + + /** + * Test the property 'uint8' + */ + @Test + public void uint8Test() { + // TODO: test uint8 + } + + /** + * Test the property 'int16' + */ + @Test + public void int16Test() { + // TODO: test int16 + } + + /** + * Test the property 'uint16' + */ + @Test + public void uint16Test() { + // TODO: test uint16 + } + + /** + * Test the property 'int32' + */ + @Test + public void int32Test() { + // TODO: test int32 + } + + /** + * Test the property 'uint32' + */ + @Test + public void uint32Test() { + // TODO: test uint32 + } + + /** + * Test the property 'int64' + */ + @Test + public void int64Test() { + // TODO: test int64 + } + + /** + * Test the property 'uint64' + */ + @Test + public void uint64Test() { + // TODO: test uint64 + } + + /** + * Test the property 'float32' + */ + @Test + public void float32Test() { + // TODO: test float32 + } + + /** + * Test the property 'float64' + */ + @Test + public void float64Test() { + // TODO: test float64 + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/DomainCheckResultTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/DomainCheckResultTest.java new file mode 100644 index 0000000..73ed1c7 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/DomainCheckResultTest.java @@ -0,0 +1,58 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.DomainCheckStatus; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for DomainCheckResult + */ +public class DomainCheckResultTest { + private final DomainCheckResult model = new DomainCheckResult(); + + /** + * Model tests for DomainCheckResult + */ + @Test + public void testDomainCheckResult() { + // TODO: test DomainCheckResult + } + + /** + * Test the property 'time' + */ + @Test + public void timeTest() { + // TODO: test time + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/DomainCheckStatusTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/DomainCheckStatusTest.java new file mode 100644 index 0000000..95060b0 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/DomainCheckStatusTest.java @@ -0,0 +1,32 @@ +/* + * 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 com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for DomainCheckStatus + */ +public class DomainCheckStatusTest { + /** + * Model tests for DomainCheckStatus + */ + @Test + public void testDomainCheckStatus() { + // TODO: test DomainCheckStatus + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/DomainTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/DomainTest.java new file mode 100644 index 0000000..acc0b4c --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/DomainTest.java @@ -0,0 +1,77 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.Datatype; +import io.tiledb.cloud.rest_api.model.Dimension; +import io.tiledb.cloud.rest_api.model.Layout; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for Domain + */ +public class DomainTest { + private final Domain model = new Domain(); + + /** + * Model tests for Domain + */ + @Test + public void testDomain() { + // TODO: test Domain + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'tileOrder' + */ + @Test + public void tileOrderTest() { + // TODO: test tileOrder + } + + /** + * Test the property 'cellOrder' + */ + @Test + public void cellOrderTest() { + // TODO: test cellOrder + } + + /** + * Test the property 'dimensions' + */ + @Test + public void dimensionsTest() { + // TODO: test dimensions + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/DomainVerificationStatusTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/DomainVerificationStatusTest.java new file mode 100644 index 0000000..1868467 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/DomainVerificationStatusTest.java @@ -0,0 +1,32 @@ +/* + * 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 com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for DomainVerificationStatus + */ +public class DomainVerificationStatusTest { + /** + * Model tests for DomainVerificationStatus + */ + @Test + public void testDomainVerificationStatus() { + // TODO: test DomainVerificationStatus + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/EnumerationTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/EnumerationTest.java new file mode 100644 index 0000000..be83ac6 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/EnumerationTest.java @@ -0,0 +1,98 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for Enumeration + */ +public class EnumerationTest { + private final Enumeration model = new Enumeration(); + + /** + * Model tests for Enumeration + */ + @Test + public void testEnumeration() { + // TODO: test Enumeration + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'pathName' + */ + @Test + public void pathNameTest() { + // TODO: test pathName + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'cellValNum' + */ + @Test + public void cellValNumTest() { + // TODO: test cellValNum + } + + /** + * Test the property 'ordered' + */ + @Test + public void orderedTest() { + // TODO: test ordered + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'offsets' + */ + @Test + public void offsetsTest() { + // TODO: test offsets + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ErrorTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ErrorTest.java new file mode 100644 index 0000000..de698bf --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/ErrorTest.java @@ -0,0 +1,64 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for Error + */ +public class ErrorTest { + private final Error model = new Error(); + + /** + * Model tests for Error + */ + @Test + public void testError() { + // TODO: test Error + } + + /** + * Test the property 'code' + */ + @Test + public void codeTest() { + // TODO: test code + } + + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } + + /** + * Test the property 'requestId' + */ + @Test + public void requestIdTest() { + // TODO: test requestId + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/FileCreateTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/FileCreateTest.java new file mode 100644 index 0000000..baa4bfb --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/FileCreateTest.java @@ -0,0 +1,64 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for FileCreate + */ +public class FileCreateTest { + private final FileCreate model = new FileCreate(); + + /** + * Model tests for FileCreate + */ + @Test + public void testFileCreate() { + // TODO: test FileCreate + } + + /** + * Test the property 'inputUri' + */ + @Test + public void inputUriTest() { + // TODO: test inputUri + } + + /** + * Test the property 'outputUri' + */ + @Test + public void outputUriTest() { + // TODO: test outputUri + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/FileCreatedTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/FileCreatedTest.java new file mode 100644 index 0000000..842fa0a --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/FileCreatedTest.java @@ -0,0 +1,56 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for FileCreated + */ +public class FileCreatedTest { + private final FileCreated model = new FileCreated(); + + /** + * Model tests for FileCreated + */ + @Test + public void testFileCreated() { + // TODO: test FileCreated + } + + /** + * Test the property 'outputUri' + */ + @Test + public void outputUriTest() { + // TODO: test outputUri + } + + /** + * Test the property 'fileName' + */ + @Test + public void fileNameTest() { + // TODO: test fileName + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/FileExportTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/FileExportTest.java new file mode 100644 index 0000000..0a0a8e2 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/FileExportTest.java @@ -0,0 +1,48 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for FileExport + */ +public class FileExportTest { + private final FileExport model = new FileExport(); + + /** + * Model tests for FileExport + */ + @Test + public void testFileExport() { + // TODO: test FileExport + } + + /** + * Test the property 'outputUri' + */ + @Test + public void outputUriTest() { + // TODO: test outputUri + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/FileExportedTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/FileExportedTest.java new file mode 100644 index 0000000..c5d6d2b --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/FileExportedTest.java @@ -0,0 +1,48 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for FileExported + */ +public class FileExportedTest { + private final FileExported model = new FileExported(); + + /** + * Model tests for FileExported + */ + @Test + public void testFileExported() { + // TODO: test FileExported + } + + /** + * Test the property 'outputUri' + */ + @Test + public void outputUriTest() { + // TODO: test outputUri + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/FilePropertyNameTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/FilePropertyNameTest.java new file mode 100644 index 0000000..d90303c --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/FilePropertyNameTest.java @@ -0,0 +1,32 @@ +/* + * 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 com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for FilePropertyName + */ +public class FilePropertyNameTest { + /** + * Model tests for FilePropertyName + */ + @Test + public void testFilePropertyName() { + // TODO: test FilePropertyName + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/FileTypeTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/FileTypeTest.java new file mode 100644 index 0000000..df9ac86 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/FileTypeTest.java @@ -0,0 +1,32 @@ +/* + * 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 com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for FileType + */ +public class FileTypeTest { + /** + * Model tests for FileType + */ + @Test + public void testFileType() { + // TODO: test FileType + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/FileUploadedTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/FileUploadedTest.java new file mode 100644 index 0000000..de13834 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/FileUploadedTest.java @@ -0,0 +1,64 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for FileUploaded + */ +public class FileUploadedTest { + private final FileUploaded model = new FileUploaded(); + + /** + * Model tests for FileUploaded + */ + @Test + public void testFileUploaded() { + // TODO: test FileUploaded + } + + /** + * Test the property 'outputUri' + */ + @Test + public void outputUriTest() { + // TODO: test outputUri + } + + /** + * Test the property 'fileName' + */ + @Test + public void fileNameTest() { + // TODO: test fileName + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/FilterDataTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/FilterDataTest.java new file mode 100644 index 0000000..a69e423 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/FilterDataTest.java @@ -0,0 +1,120 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for FilterData + */ +public class FilterDataTest { + private final FilterData model = new FilterData(); + + /** + * Model tests for FilterData + */ + @Test + public void testFilterData() { + // TODO: test FilterData + } + + /** + * Test the property 'int8' + */ + @Test + public void int8Test() { + // TODO: test int8 + } + + /** + * Test the property 'uint8' + */ + @Test + public void uint8Test() { + // TODO: test uint8 + } + + /** + * Test the property 'int16' + */ + @Test + public void int16Test() { + // TODO: test int16 + } + + /** + * Test the property 'uint16' + */ + @Test + public void uint16Test() { + // TODO: test uint16 + } + + /** + * Test the property 'int32' + */ + @Test + public void int32Test() { + // TODO: test int32 + } + + /** + * Test the property 'uint32' + */ + @Test + public void uint32Test() { + // TODO: test uint32 + } + + /** + * Test the property 'int64' + */ + @Test + public void int64Test() { + // TODO: test int64 + } + + /** + * Test the property 'uint64' + */ + @Test + public void uint64Test() { + // TODO: test uint64 + } + + /** + * Test the property 'float32' + */ + @Test + public void float32Test() { + // TODO: test float32 + } + + /** + * Test the property 'float64' + */ + @Test + public void float64Test() { + // TODO: test float64 + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/FilterOptionTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/FilterOptionTest.java new file mode 100644 index 0000000..c95b345 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/FilterOptionTest.java @@ -0,0 +1,32 @@ +/* + * 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 com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for FilterOption + */ +public class FilterOptionTest { + /** + * Model tests for FilterOption + */ + @Test + public void testFilterOption() { + // TODO: test FilterOption + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/FilterPipelineTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/FilterPipelineTest.java new file mode 100644 index 0000000..2972b54 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/FilterPipelineTest.java @@ -0,0 +1,51 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.Filter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for FilterPipeline + */ +public class FilterPipelineTest { + private final FilterPipeline model = new FilterPipeline(); + + /** + * Model tests for FilterPipeline + */ + @Test + public void testFilterPipeline() { + // TODO: test FilterPipeline + } + + /** + * Test the property 'filters' + */ + @Test + public void filtersTest() { + // TODO: test filters + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/FilterTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/FilterTest.java new file mode 100644 index 0000000..718f594 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/FilterTest.java @@ -0,0 +1,58 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.FilterData; +import io.tiledb.cloud.rest_api.model.FilterType; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for Filter + */ +public class FilterTest { + private final Filter model = new Filter(); + + /** + * Model tests for Filter + */ + @Test + public void testFilter() { + // TODO: test Filter + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/FilterTypeTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/FilterTypeTest.java new file mode 100644 index 0000000..8b5d733 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/FilterTypeTest.java @@ -0,0 +1,32 @@ +/* + * 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 com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for FilterType + */ +public class FilterTypeTest { + /** + * Model tests for FilterType + */ + @Test + public void testFilterType() { + // TODO: test FilterType + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/FragmentInfoRequestTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/FragmentInfoRequestTest.java new file mode 100644 index 0000000..d14b2ec --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/FragmentInfoRequestTest.java @@ -0,0 +1,49 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.TileDBConfig; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for FragmentInfoRequest + */ +public class FragmentInfoRequestTest { + private final FragmentInfoRequest model = new FragmentInfoRequest(); + + /** + * Model tests for FragmentInfoRequest + */ + @Test + public void testFragmentInfoRequest() { + // TODO: test FragmentInfoRequest + } + + /** + * Test the property 'config' + */ + @Test + public void configTest() { + // TODO: test config + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/FragmentInfoTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/FragmentInfoTest.java new file mode 100644 index 0000000..b5c3256 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/FragmentInfoTest.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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.ArraySchema; +import io.tiledb.cloud.rest_api.model.SingleFragmentInfo; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for FragmentInfo + */ +public class FragmentInfoTest { + private final FragmentInfo model = new FragmentInfo(); + + /** + * Model tests for FragmentInfo + */ + @Test + public void testFragmentInfo() { + // TODO: test FragmentInfo + } + + /** + * Test the property 'arraySchemaAll' + */ + @Test + public void arraySchemaAllTest() { + // TODO: test arraySchemaAll + } + + /** + * Test the property 'fragmentInfo' + */ + @Test + public void fragmentInfoTest() { + // TODO: test fragmentInfo + } + + /** + * Test the property 'toVacuum' + */ + @Test + public void toVacuumTest() { + // TODO: test toVacuum + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/FragmentMetadataTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/FragmentMetadataTest.java new file mode 100644 index 0000000..d8524c4 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/FragmentMetadataTest.java @@ -0,0 +1,242 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for FragmentMetadata + */ +public class FragmentMetadataTest { + private final FragmentMetadata model = new FragmentMetadata(); + + /** + * Model tests for FragmentMetadata + */ + @Test + public void testFragmentMetadata() { + // TODO: test FragmentMetadata + } + + /** + * Test the property 'fileSizes' + */ + @Test + public void fileSizesTest() { + // TODO: test fileSizes + } + + /** + * Test the property 'fileVarSizes' + */ + @Test + public void fileVarSizesTest() { + // TODO: test fileVarSizes + } + + /** + * Test the property 'fileValiditySizes' + */ + @Test + public void fileValiditySizesTest() { + // TODO: test fileValiditySizes + } + + /** + * Test the property 'fragmentUri' + */ + @Test + public void fragmentUriTest() { + // TODO: test fragmentUri + } + + /** + * Test the property 'hasTimestamps' + */ + @Test + public void hasTimestampsTest() { + // TODO: test hasTimestamps + } + + /** + * Test the property 'hasDeleteMeta' + */ + @Test + public void hasDeleteMetaTest() { + // TODO: test hasDeleteMeta + } + + /** + * Test the property 'sparseTileNum' + */ + @Test + public void sparseTileNumTest() { + // TODO: test sparseTileNum + } + + /** + * Test the property 'tileIndexBase' + */ + @Test + public void tileIndexBaseTest() { + // TODO: test tileIndexBase + } + + /** + * Test the property 'tileOffsets' + */ + @Test + public void tileOffsetsTest() { + // TODO: test tileOffsets + } + + /** + * Test the property 'tileVarOffsets' + */ + @Test + public void tileVarOffsetsTest() { + // TODO: test tileVarOffsets + } + + /** + * Test the property 'tileVarSizes' + */ + @Test + public void tileVarSizesTest() { + // TODO: test tileVarSizes + } + + /** + * Test the property 'tileValidityOffsets' + */ + @Test + public void tileValidityOffsetsTest() { + // TODO: test tileValidityOffsets + } + + /** + * Test the property 'tileMinBuffer' + */ + @Test + public void tileMinBufferTest() { + // TODO: test tileMinBuffer + } + + /** + * Test the property 'tileMinVarBuffer' + */ + @Test + public void tileMinVarBufferTest() { + // TODO: test tileMinVarBuffer + } + + /** + * Test the property 'tileMaxBuffer' + */ + @Test + public void tileMaxBufferTest() { + // TODO: test tileMaxBuffer + } + + /** + * Test the property 'tileMaxVarBuffer' + */ + @Test + public void tileMaxVarBufferTest() { + // TODO: test tileMaxVarBuffer + } + + /** + * Test the property 'tileSums' + */ + @Test + public void tileSumsTest() { + // TODO: test tileSums + } + + /** + * Test the property 'tileNullCounts' + */ + @Test + public void tileNullCountsTest() { + // TODO: test tileNullCounts + } + + /** + * Test the property 'fragmentMins' + */ + @Test + public void fragmentMinsTest() { + // TODO: test fragmentMins + } + + /** + * Test the property 'fragmentMaxs' + */ + @Test + public void fragmentMaxsTest() { + // TODO: test fragmentMaxs + } + + /** + * Test the property 'fragmentSums' + */ + @Test + public void fragmentSumsTest() { + // TODO: test fragmentSums + } + + /** + * Test the property 'fragmentNullCounts' + */ + @Test + public void fragmentNullCountsTest() { + // TODO: test fragmentNullCounts + } + + /** + * Test the property 'version' + */ + @Test + public void versionTest() { + // TODO: test version + } + + /** + * Test the property 'timestampRange' + */ + @Test + public void timestampRangeTest() { + // TODO: test timestampRange + } + + /** + * Test the property 'lastTileCellNum' + */ + @Test + public void lastTileCellNumTest() { + // TODO: test lastTileCellNum + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/GenericUDFTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/GenericUDFTest.java new file mode 100644 index 0000000..0053d36 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/GenericUDFTest.java @@ -0,0 +1,180 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.ResultFormat; +import io.tiledb.cloud.rest_api.model.UDFLanguage; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for GenericUDF + */ +public class GenericUDFTest { + private final GenericUDF model = new GenericUDF(); + + /** + * Model tests for GenericUDF + */ + @Test + public void testGenericUDF() { + // TODO: test GenericUDF + } + + /** + * Test the property 'udfInfoName' + */ + @Test + public void udfInfoNameTest() { + // TODO: test udfInfoName + } + + /** + * Test the property 'language' + */ + @Test + public void languageTest() { + // TODO: test language + } + + /** + * Test the property 'version' + */ + @Test + public void versionTest() { + // TODO: test version + } + + /** + * Test the property 'imageName' + */ + @Test + public void imageNameTest() { + // TODO: test imageName + } + + /** + * Test the property 'accessCredentialsName' + */ + @Test + public void accessCredentialsNameTest() { + // TODO: test accessCredentialsName + } + + /** + * Test the property 'resourceClass' + */ + @Test + public void resourceClassTest() { + // TODO: test resourceClass + } + + /** + * Test the property 'exec' + */ + @Test + public void execTest() { + // TODO: test exec + } + + /** + * Test the property 'execRaw' + */ + @Test + public void execRawTest() { + // TODO: test execRaw + } + + /** + * Test the property 'argument' + */ + @Test + public void argumentTest() { + // TODO: test argument + } + + /** + * Test the property 'storedParamUuids' + */ + @Test + public void storedParamUuidsTest() { + // TODO: test storedParamUuids + } + + /** + * Test the property 'resultFormat' + */ + @Test + public void resultFormatTest() { + // TODO: test resultFormat + } + + /** + * Test the property 'taskName' + */ + @Test + public void taskNameTest() { + // TODO: test taskName + } + + /** + * Test the property 'storeResults' + */ + @Test + public void storeResultsTest() { + // TODO: test storeResults + } + + /** + * Test the property 'timeout' + */ + @Test + public void timeoutTest() { + // TODO: test timeout + } + + /** + * Test the property 'dontDownloadResults' + */ + @Test + public void dontDownloadResultsTest() { + // TODO: test dontDownloadResults + } + + /** + * Test the property 'taskGraphUuid' + */ + @Test + public void taskGraphUuidTest() { + // TODO: test taskGraphUuid + } + + /** + * Test the property 'clientNodeUuid' + */ + @Test + public void clientNodeUuidTest() { + // TODO: test clientNodeUuid + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/GetTiledbStats200ResponseTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/GetTiledbStats200ResponseTest.java new file mode 100644 index 0000000..6066461 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/GetTiledbStats200ResponseTest.java @@ -0,0 +1,48 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for GetTiledbStats200Response + */ +public class GetTiledbStats200ResponseTest { + private final GetTiledbStats200Response model = new GetTiledbStats200Response(); + + /** + * Model tests for GetTiledbStats200Response + */ + @Test + public void testGetTiledbStats200Response() { + // TODO: test GetTiledbStats200Response + } + + /** + * Test the property 'stats' + */ + @Test + public void statsTest() { + // TODO: test stats + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/GroupActionsTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/GroupActionsTest.java new file mode 100644 index 0000000..a2e8020 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/GroupActionsTest.java @@ -0,0 +1,32 @@ +/* + * 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 com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for GroupActions + */ +public class GroupActionsTest { + /** + * Model tests for GroupActions + */ + @Test + public void testGroupActions() { + // TODO: test GroupActions + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/GroupBrowserDataTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/GroupBrowserDataTest.java new file mode 100644 index 0000000..e0d1a14 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/GroupBrowserDataTest.java @@ -0,0 +1,60 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.GroupInfo; +import io.tiledb.cloud.rest_api.model.PaginationMetadata; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for GroupBrowserData + */ +public class GroupBrowserDataTest { + private final GroupBrowserData model = new GroupBrowserData(); + + /** + * Model tests for GroupBrowserData + */ + @Test + public void testGroupBrowserData() { + // TODO: test GroupBrowserData + } + + /** + * Test the property 'groups' + */ + @Test + public void groupsTest() { + // TODO: test groups + } + + /** + * Test the property 'paginationMetadata' + */ + @Test + public void paginationMetadataTest() { + // TODO: test paginationMetadata + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/GroupBrowserFilterDataTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/GroupBrowserFilterDataTest.java new file mode 100644 index 0000000..977d7e8 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/GroupBrowserFilterDataTest.java @@ -0,0 +1,59 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.GroupType; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for GroupBrowserFilterData + */ +public class GroupBrowserFilterDataTest { + private final GroupBrowserFilterData model = new GroupBrowserFilterData(); + + /** + * Model tests for GroupBrowserFilterData + */ + @Test + public void testGroupBrowserFilterData() { + // TODO: test GroupBrowserFilterData + } + + /** + * Test the property 'namespaces' + */ + @Test + public void namespacesTest() { + // TODO: test namespaces + } + + /** + * Test the property 'groupTypes' + */ + @Test + public void groupTypesTest() { + // TODO: test groupTypes + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/GroupChangesTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/GroupChangesTest.java new file mode 100644 index 0000000..300a33c --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/GroupChangesTest.java @@ -0,0 +1,59 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.GroupMember; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for GroupChanges + */ +public class GroupChangesTest { + private final GroupChanges model = new GroupChanges(); + + /** + * Model tests for GroupChanges + */ + @Test + public void testGroupChanges() { + // TODO: test GroupChanges + } + + /** + * Test the property 'add' + */ + @Test + public void addTest() { + // TODO: test add + } + + /** + * Test the property 'remove' + */ + @Test + public void removeTest() { + // TODO: test remove + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/GroupContentActivityAssetTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/GroupContentActivityAssetTest.java new file mode 100644 index 0000000..0b014b6 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/GroupContentActivityAssetTest.java @@ -0,0 +1,73 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.AssetType; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for GroupContentActivityAsset + */ +public class GroupContentActivityAssetTest { + private final GroupContentActivityAsset model = new GroupContentActivityAsset(); + + /** + * Model tests for GroupContentActivityAsset + */ + @Test + public void testGroupContentActivityAsset() { + // TODO: test GroupContentActivityAsset + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'namespace' + */ + @Test + public void namespaceTest() { + // TODO: test namespace + } + + /** + * Test the property 'assetType' + */ + @Test + public void assetTypeTest() { + // TODO: test assetType + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/GroupContentActivityResponseTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/GroupContentActivityResponseTest.java new file mode 100644 index 0000000..24ecdca --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/GroupContentActivityResponseTest.java @@ -0,0 +1,60 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.GroupContentActivity; +import io.tiledb.cloud.rest_api.model.PaginationMetadata; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for GroupContentActivityResponse + */ +public class GroupContentActivityResponseTest { + private final GroupContentActivityResponse model = new GroupContentActivityResponse(); + + /** + * Model tests for GroupContentActivityResponse + */ + @Test + public void testGroupContentActivityResponse() { + // TODO: test GroupContentActivityResponse + } + + /** + * Test the property 'activity' + */ + @Test + public void activityTest() { + // TODO: test activity + } + + /** + * Test the property 'paginationMetadata' + */ + @Test + public void paginationMetadataTest() { + // TODO: test paginationMetadata + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/GroupContentActivityTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/GroupContentActivityTest.java new file mode 100644 index 0000000..61b4f81 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/GroupContentActivityTest.java @@ -0,0 +1,58 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.ArrayActivityLog; +import io.tiledb.cloud.rest_api.model.GroupContentActivityAsset; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for GroupContentActivity + */ +public class GroupContentActivityTest { + private final GroupContentActivity model = new GroupContentActivity(); + + /** + * Model tests for GroupContentActivity + */ + @Test + public void testGroupContentActivity() { + // TODO: test GroupContentActivity + } + + /** + * Test the property 'asset' + */ + @Test + public void assetTest() { + // TODO: test asset + } + + /** + * Test the property 'activityLog' + */ + @Test + public void activityLogTest() { + // TODO: test activityLog + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/GroupContentsFilterDataTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/GroupContentsFilterDataTest.java new file mode 100644 index 0000000..f07ffcf --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/GroupContentsFilterDataTest.java @@ -0,0 +1,50 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for GroupContentsFilterData + */ +public class GroupContentsFilterDataTest { + private final GroupContentsFilterData model = new GroupContentsFilterData(); + + /** + * Model tests for GroupContentsFilterData + */ + @Test + public void testGroupContentsFilterData() { + // TODO: test GroupContentsFilterData + } + + /** + * Test the property 'namespaces' + */ + @Test + public void namespacesTest() { + // TODO: test namespaces + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/GroupContentsTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/GroupContentsTest.java new file mode 100644 index 0000000..7616644 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/GroupContentsTest.java @@ -0,0 +1,60 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.GroupEntry; +import io.tiledb.cloud.rest_api.model.PaginationMetadata; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for GroupContents + */ +public class GroupContentsTest { + private final GroupContents model = new GroupContents(); + + /** + * Model tests for GroupContents + */ + @Test + public void testGroupContents() { + // TODO: test GroupContents + } + + /** + * Test the property 'entries' + */ + @Test + public void entriesTest() { + // TODO: test entries + } + + /** + * Test the property 'paginationMetadata' + */ + @Test + public void paginationMetadataTest() { + // TODO: test paginationMetadata + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/GroupCreateTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/GroupCreateTest.java new file mode 100644 index 0000000..e0b5c64 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/GroupCreateTest.java @@ -0,0 +1,114 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for GroupCreate + */ +public class GroupCreateTest { + private final GroupCreate model = new GroupCreate(); + + /** + * Model tests for GroupCreate + */ + @Test + public void testGroupCreate() { + // TODO: test GroupCreate + } + + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'parent' + */ + @Test + public void parentTest() { + // TODO: test parent + } + + /** + * Test the property 'uri' + */ + @Test + public void uriTest() { + // TODO: test uri + } + + /** + * Test the property 'logo' + */ + @Test + public void logoTest() { + // TODO: test logo + } + + /** + * Test the property 'accessCredentialsName' + */ + @Test + public void accessCredentialsNameTest() { + // TODO: test accessCredentialsName + } + + /** + * Test the property 'tags' + */ + @Test + public void tagsTest() { + // TODO: test tags + } + + /** + * Test the property 'licenseId' + */ + @Test + public void licenseIdTest() { + // TODO: test licenseId + } + + /** + * Test the property 'licenseText' + */ + @Test + public void licenseTextTest() { + // TODO: test licenseText + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/GroupEntryTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/GroupEntryTest.java new file mode 100644 index 0000000..214560c --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/GroupEntryTest.java @@ -0,0 +1,66 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.ArrayInfo; +import io.tiledb.cloud.rest_api.model.GroupInfo; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for GroupEntry + */ +public class GroupEntryTest { + private final GroupEntry model = new GroupEntry(); + + /** + * Model tests for GroupEntry + */ + @Test + public void testGroupEntry() { + // TODO: test GroupEntry + } + + /** + * Test the property 'memberId' + */ + @Test + public void memberIdTest() { + // TODO: test memberId + } + + /** + * Test the property 'group' + */ + @Test + public void groupTest() { + // TODO: test group + } + + /** + * Test the property 'array' + */ + @Test + public void arrayTest() { + // TODO: test array + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/GroupInfoTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/GroupInfoTest.java new file mode 100644 index 0000000..71aac99 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/GroupInfoTest.java @@ -0,0 +1,224 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.GroupActions; +import io.tiledb.cloud.rest_api.model.GroupType; +import io.tiledb.cloud.rest_api.model.MetadataStringifiedEntry; +import java.io.IOException; +import java.math.BigDecimal; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for GroupInfo + */ +public class GroupInfoTest { + private final GroupInfo model = new GroupInfo(); + + /** + * Model tests for GroupInfo + */ + @Test + public void testGroupInfo() { + // TODO: test GroupInfo + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'namespace' + */ + @Test + public void namespaceTest() { + // TODO: test namespace + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } + + /** + * Test the property 'uri' + */ + @Test + public void uriTest() { + // TODO: test uri + } + + /** + * Test the property 'tiledbUri' + */ + @Test + public void tiledbUriTest() { + // TODO: test tiledbUri + } + + /** + * Test the property 'assetCount' + */ + @Test + public void assetCountTest() { + // TODO: test assetCount + } + + /** + * Test the property 'groupCount' + */ + @Test + public void groupCountTest() { + // TODO: test groupCount + } + + /** + * Test the property 'size' + */ + @Test + public void sizeTest() { + // TODO: test size + } + + /** + * Test the property 'lastAccessed' + */ + @Test + public void lastAccessedTest() { + // TODO: test lastAccessed + } + + /** + * Test the property 'allowedActions' + */ + @Test + public void allowedActionsTest() { + // TODO: test allowedActions + } + + /** + * Test the property 'groupType' + */ + @Test + public void groupTypeTest() { + // TODO: test groupType + } + + /** + * Test the property 'logo' + */ + @Test + public void logoTest() { + // TODO: test logo + } + + /** + * Test the property 'accessCredentialsName' + */ + @Test + public void accessCredentialsNameTest() { + // TODO: test accessCredentialsName + } + + /** + * Test the property 'shareCount' + */ + @Test + public void shareCountTest() { + // TODO: test shareCount + } + + /** + * Test the property 'publicShare' + */ + @Test + public void publicShareTest() { + // TODO: test publicShare + } + + /** + * Test the property 'tags' + */ + @Test + public void tagsTest() { + // TODO: test tags + } + + /** + * Test the property 'licenseId' + */ + @Test + public void licenseIdTest() { + // TODO: test licenseId + } + + /** + * Test the property 'licenseText' + */ + @Test + public void licenseTextTest() { + // TODO: test licenseText + } + + /** + * Test the property 'createdAt' + */ + @Test + public void createdAtTest() { + // TODO: test createdAt + } + + /** + * Test the property 'createdBy' + */ + @Test + public void createdByTest() { + // TODO: test createdBy + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/GroupMemberAssetTypeTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/GroupMemberAssetTypeTest.java new file mode 100644 index 0000000..3f5d99e --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/GroupMemberAssetTypeTest.java @@ -0,0 +1,32 @@ +/* + * 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 com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for GroupMemberAssetType + */ +public class GroupMemberAssetTypeTest { + /** + * Model tests for GroupMemberAssetType + */ + @Test + public void testGroupMemberAssetType() { + // TODO: test GroupMemberAssetType + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/GroupMemberTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/GroupMemberTest.java new file mode 100644 index 0000000..2922b50 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/GroupMemberTest.java @@ -0,0 +1,65 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.GroupMemberType; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for GroupMember + */ +public class GroupMemberTest { + private final GroupMember model = new GroupMember(); + + /** + * Model tests for GroupMember + */ + @Test + public void testGroupMember() { + // TODO: test GroupMember + } + + /** + * Test the property 'namespace' + */ + @Test + public void namespaceTest() { + // TODO: test namespace + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'memberType' + */ + @Test + public void memberTypeTest() { + // TODO: test memberType + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/GroupMemberTypeTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/GroupMemberTypeTest.java new file mode 100644 index 0000000..5ef9878 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/GroupMemberTypeTest.java @@ -0,0 +1,32 @@ +/* + * 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 com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for GroupMemberType + */ +public class GroupMemberTypeTest { + /** + * Model tests for GroupMemberType + */ + @Test + public void testGroupMemberType() { + // TODO: test GroupMemberType + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/GroupRegisterTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/GroupRegisterTest.java new file mode 100644 index 0000000..d6aa184 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/GroupRegisterTest.java @@ -0,0 +1,114 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for GroupRegister + */ +public class GroupRegisterTest { + private final GroupRegister model = new GroupRegister(); + + /** + * Model tests for GroupRegister + */ + @Test + public void testGroupRegister() { + // TODO: test GroupRegister + } + + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'parent' + */ + @Test + public void parentTest() { + // TODO: test parent + } + + /** + * Test the property 'uri' + */ + @Test + public void uriTest() { + // TODO: test uri + } + + /** + * Test the property 'logo' + */ + @Test + public void logoTest() { + // TODO: test logo + } + + /** + * Test the property 'accessCredentialsName' + */ + @Test + public void accessCredentialsNameTest() { + // TODO: test accessCredentialsName + } + + /** + * Test the property 'tags' + */ + @Test + public void tagsTest() { + // TODO: test tags + } + + /** + * Test the property 'licenseId' + */ + @Test + public void licenseIdTest() { + // TODO: test licenseId + } + + /** + * Test the property 'licenseText' + */ + @Test + public void licenseTextTest() { + // TODO: test licenseText + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/GroupSharingRequestTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/GroupSharingRequestTest.java new file mode 100644 index 0000000..b75d8d3 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/GroupSharingRequestTest.java @@ -0,0 +1,68 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.ArrayActions; +import io.tiledb.cloud.rest_api.model.GroupActions; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for GroupSharingRequest + */ +public class GroupSharingRequestTest { + private final GroupSharingRequest model = new GroupSharingRequest(); + + /** + * Model tests for GroupSharingRequest + */ + @Test + public void testGroupSharingRequest() { + // TODO: test GroupSharingRequest + } + + /** + * Test the property 'groupActions' + */ + @Test + public void groupActionsTest() { + // TODO: test groupActions + } + + /** + * Test the property 'arrayActions' + */ + @Test + public void arrayActionsTest() { + // TODO: test arrayActions + } + + /** + * Test the property 'namespace' + */ + @Test + public void namespaceTest() { + // TODO: test namespace + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/GroupSharingTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/GroupSharingTest.java new file mode 100644 index 0000000..a70d42d --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/GroupSharingTest.java @@ -0,0 +1,76 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.ArrayActions; +import io.tiledb.cloud.rest_api.model.GroupActions; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for GroupSharing + */ +public class GroupSharingTest { + private final GroupSharing model = new GroupSharing(); + + /** + * Model tests for GroupSharing + */ + @Test + public void testGroupSharing() { + // TODO: test GroupSharing + } + + /** + * Test the property 'groupActions' + */ + @Test + public void groupActionsTest() { + // TODO: test groupActions + } + + /** + * Test the property 'arrayActions' + */ + @Test + public void arrayActionsTest() { + // TODO: test arrayActions + } + + /** + * Test the property 'namespace' + */ + @Test + public void namespaceTest() { + // TODO: test namespace + } + + /** + * Test the property 'namespaceType' + */ + @Test + public void namespaceTypeTest() { + // TODO: test namespaceType + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/GroupTypeMetadataKeyTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/GroupTypeMetadataKeyTest.java new file mode 100644 index 0000000..9333cf6 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/GroupTypeMetadataKeyTest.java @@ -0,0 +1,32 @@ +/* + * 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 com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for GroupTypeMetadataKey + */ +public class GroupTypeMetadataKeyTest { + /** + * Model tests for GroupTypeMetadataKey + */ + @Test + public void testGroupTypeMetadataKey() { + // TODO: test GroupTypeMetadataKey + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/GroupTypeTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/GroupTypeTest.java new file mode 100644 index 0000000..527453f --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/GroupTypeTest.java @@ -0,0 +1,32 @@ +/* + * 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 com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for GroupType + */ +public class GroupTypeTest { + /** + * Model tests for GroupType + */ + @Test + public void testGroupType() { + // TODO: test GroupType + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/GroupUpdateTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/GroupUpdateTest.java new file mode 100644 index 0000000..c0d9c29 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/GroupUpdateTest.java @@ -0,0 +1,99 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for GroupUpdate + */ +public class GroupUpdateTest { + private final GroupUpdate model = new GroupUpdate(); + + /** + * Model tests for GroupUpdate + */ + @Test + public void testGroupUpdate() { + // TODO: test GroupUpdate + } + + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'logo' + */ + @Test + public void logoTest() { + // TODO: test logo + } + + /** + * Test the property 'accessCredentialsName' + */ + @Test + public void accessCredentialsNameTest() { + // TODO: test accessCredentialsName + } + + /** + * Test the property 'tags' + */ + @Test + public void tagsTest() { + // TODO: test tags + } + + /** + * Test the property 'licenseId' + */ + @Test + public void licenseIdTest() { + // TODO: test licenseId + } + + /** + * Test the property 'licenseText' + */ + @Test + public void licenseTextTest() { + // TODO: test licenseText + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/InvitationArrayShareEmailTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/InvitationArrayShareEmailTest.java new file mode 100644 index 0000000..577a29c --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/InvitationArrayShareEmailTest.java @@ -0,0 +1,59 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.ArrayActions; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for InvitationArrayShareEmail + */ +public class InvitationArrayShareEmailTest { + private final InvitationArrayShareEmail model = new InvitationArrayShareEmail(); + + /** + * Model tests for InvitationArrayShareEmail + */ + @Test + public void testInvitationArrayShareEmail() { + // TODO: test InvitationArrayShareEmail + } + + /** + * Test the property 'actions' + */ + @Test + public void actionsTest() { + // TODO: test actions + } + + /** + * Test the property 'inviteeEmail' + */ + @Test + public void inviteeEmailTest() { + // TODO: test inviteeEmail + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/InvitationDataTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/InvitationDataTest.java new file mode 100644 index 0000000..1f73c80 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/InvitationDataTest.java @@ -0,0 +1,60 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.Invitation; +import io.tiledb.cloud.rest_api.model.PaginationMetadata; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for InvitationData + */ +public class InvitationDataTest { + private final InvitationData model = new InvitationData(); + + /** + * Model tests for InvitationData + */ + @Test + public void testInvitationData() { + // TODO: test InvitationData + } + + /** + * Test the property 'invitations' + */ + @Test + public void invitationsTest() { + // TODO: test invitations + } + + /** + * Test the property 'paginationMetadata' + */ + @Test + public void paginationMetadataTest() { + // TODO: test paginationMetadata + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/InvitationFailedRecipientsTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/InvitationFailedRecipientsTest.java new file mode 100644 index 0000000..35addfd --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/InvitationFailedRecipientsTest.java @@ -0,0 +1,50 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for InvitationFailedRecipients + */ +public class InvitationFailedRecipientsTest { + private final InvitationFailedRecipients model = new InvitationFailedRecipients(); + + /** + * Model tests for InvitationFailedRecipients + */ + @Test + public void testInvitationFailedRecipients() { + // TODO: test InvitationFailedRecipients + } + + /** + * Test the property 'failedRecipients' + */ + @Test + public void failedRecipientsTest() { + // TODO: test failedRecipients + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/InvitationGroupShareEmailTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/InvitationGroupShareEmailTest.java new file mode 100644 index 0000000..7df4576 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/InvitationGroupShareEmailTest.java @@ -0,0 +1,68 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.ArrayActions; +import io.tiledb.cloud.rest_api.model.GroupActions; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for InvitationGroupShareEmail + */ +public class InvitationGroupShareEmailTest { + private final InvitationGroupShareEmail model = new InvitationGroupShareEmail(); + + /** + * Model tests for InvitationGroupShareEmail + */ + @Test + public void testInvitationGroupShareEmail() { + // TODO: test InvitationGroupShareEmail + } + + /** + * Test the property 'arrayActions' + */ + @Test + public void arrayActionsTest() { + // TODO: test arrayActions + } + + /** + * Test the property 'groupActions' + */ + @Test + public void groupActionsTest() { + // TODO: test groupActions + } + + /** + * Test the property 'inviteeEmailOrName' + */ + @Test + public void inviteeEmailOrNameTest() { + // TODO: test inviteeEmailOrName + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/InvitationOrganizationJoinEmailTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/InvitationOrganizationJoinEmailTest.java new file mode 100644 index 0000000..0578631 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/InvitationOrganizationJoinEmailTest.java @@ -0,0 +1,68 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.NamespaceActions; +import io.tiledb.cloud.rest_api.model.OrganizationRoles; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for InvitationOrganizationJoinEmail + */ +public class InvitationOrganizationJoinEmailTest { + private final InvitationOrganizationJoinEmail model = new InvitationOrganizationJoinEmail(); + + /** + * Model tests for InvitationOrganizationJoinEmail + */ + @Test + public void testInvitationOrganizationJoinEmail() { + // TODO: test InvitationOrganizationJoinEmail + } + + /** + * Test the property 'actions' + */ + @Test + public void actionsTest() { + // TODO: test actions + } + + /** + * Test the property 'organizationRole' + */ + @Test + public void organizationRoleTest() { + // TODO: test organizationRole + } + + /** + * Test the property 'inviteeEmail' + */ + @Test + public void inviteeEmailTest() { + // TODO: test inviteeEmail + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/InvitationStatusTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/InvitationStatusTest.java new file mode 100644 index 0000000..3db4ca7 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/InvitationStatusTest.java @@ -0,0 +1,32 @@ +/* + * 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 com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for InvitationStatus + */ +public class InvitationStatusTest { + /** + * Model tests for InvitationStatus + */ + @Test + public void testInvitationStatus() { + // TODO: test InvitationStatus + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/InvitationTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/InvitationTest.java new file mode 100644 index 0000000..716fb18 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/InvitationTest.java @@ -0,0 +1,204 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.InvitationStatus; +import io.tiledb.cloud.rest_api.model.InvitationType; +import io.tiledb.cloud.rest_api.model.OrganizationRoles; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for Invitation + */ +public class InvitationTest { + private final Invitation model = new Invitation(); + + /** + * Model tests for Invitation + */ + @Test + public void testInvitation() { + // TODO: test Invitation + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'invitationType' + */ + @Test + public void invitationTypeTest() { + // TODO: test invitationType + } + + /** + * Test the property 'ownerNamespaceUuid' + */ + @Test + public void ownerNamespaceUuidTest() { + // TODO: test ownerNamespaceUuid + } + + /** + * Test the property 'inviterUuid' + */ + @Test + public void inviterUuidTest() { + // TODO: test inviterUuid + } + + /** + * Test the property 'userNamespaceUuid' + */ + @Test + public void userNamespaceUuidTest() { + // TODO: test userNamespaceUuid + } + + /** + * Test the property 'organizationUserUuid' + */ + @Test + public void organizationUserUuidTest() { + // TODO: test organizationUserUuid + } + + /** + * Test the property 'organizationName' + */ + @Test + public void organizationNameTest() { + // TODO: test organizationName + } + + /** + * Test the property 'organizationRole' + */ + @Test + public void organizationRoleTest() { + // TODO: test organizationRole + } + + /** + * Test the property 'organizationUuid' + */ + @Test + public void organizationUuidTest() { + // TODO: test organizationUuid + } + + /** + * Test the property 'arrayUuid' + */ + @Test + public void arrayUuidTest() { + // TODO: test arrayUuid + } + + /** + * Test the property 'groupUuid' + */ + @Test + public void groupUuidTest() { + // TODO: test groupUuid + } + + /** + * Test the property 'arrayName' + */ + @Test + public void arrayNameTest() { + // TODO: test arrayName + } + + /** + * Test the property 'email' + */ + @Test + public void emailTest() { + // TODO: test email + } + + /** + * Test the property 'actions' + */ + @Test + public void actionsTest() { + // TODO: test actions + } + + /** + * Test the property 'groupActions' + */ + @Test + public void groupActionsTest() { + // TODO: test groupActions + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'createdAt' + */ + @Test + public void createdAtTest() { + // TODO: test createdAt + } + + /** + * Test the property 'expiresAt' + */ + @Test + public void expiresAtTest() { + // TODO: test expiresAt + } + + /** + * Test the property 'acceptedAt' + */ + @Test + public void acceptedAtTest() { + // TODO: test acceptedAt + } + + /** + * Test the property 'namespaceInvited' + */ + @Test + public void namespaceInvitedTest() { + // TODO: test namespaceInvited + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/InvitationTypeTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/InvitationTypeTest.java new file mode 100644 index 0000000..67d5d98 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/InvitationTypeTest.java @@ -0,0 +1,32 @@ +/* + * 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 com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for InvitationType + */ +public class InvitationTypeTest { + /** + * Model tests for InvitationType + */ + @Test + public void testInvitationType() { + // TODO: test InvitationType + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/LastAccessedArrayTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/LastAccessedArrayTest.java new file mode 100644 index 0000000..8d318b7 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/LastAccessedArrayTest.java @@ -0,0 +1,82 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.ActivityEventType; +import java.io.IOException; +import java.math.BigDecimal; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for LastAccessedArray + */ +public class LastAccessedArrayTest { + private final LastAccessedArray model = new LastAccessedArray(); + + /** + * Model tests for LastAccessedArray + */ + @Test + public void testLastAccessedArray() { + // TODO: test LastAccessedArray + } + + /** + * Test the property 'arrayId' + */ + @Test + public void arrayIdTest() { + // TODO: test arrayId + } + + /** + * Test the property 'arrayName' + */ + @Test + public void arrayNameTest() { + // TODO: test arrayName + } + + /** + * Test the property 'namespace' + */ + @Test + public void namespaceTest() { + // TODO: test namespace + } + + /** + * Test the property 'accessedTime' + */ + @Test + public void accessedTimeTest() { + // TODO: test accessedTime + } + + /** + * Test the property 'accessType' + */ + @Test + public void accessTypeTest() { + // TODO: test accessType + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/LayoutTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/LayoutTest.java new file mode 100644 index 0000000..1fabaa4 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/LayoutTest.java @@ -0,0 +1,32 @@ +/* + * 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 com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for Layout + */ +public class LayoutTest { + /** + * Model tests for Layout + */ + @Test + public void testLayout() { + // TODO: test Layout + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaRequestTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaRequestTest.java new file mode 100644 index 0000000..f396523 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaRequestTest.java @@ -0,0 +1,49 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.TileDBConfig; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for LoadArraySchemaRequest + */ +public class LoadArraySchemaRequestTest { + private final LoadArraySchemaRequest model = new LoadArraySchemaRequest(); + + /** + * Model tests for LoadArraySchemaRequest + */ + @Test + public void testLoadArraySchemaRequest() { + // TODO: test LoadArraySchemaRequest + } + + /** + * Test the property 'config' + */ + @Test + public void configTest() { + // TODO: test config + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaResponseTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaResponseTest.java new file mode 100644 index 0000000..663cb7f --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaResponseTest.java @@ -0,0 +1,59 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.ArraySchema; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for LoadArraySchemaResponse + */ +public class LoadArraySchemaResponseTest { + private final LoadArraySchemaResponse model = new LoadArraySchemaResponse(); + + /** + * Model tests for LoadArraySchemaResponse + */ + @Test + public void testLoadArraySchemaResponse() { + // TODO: test LoadArraySchemaResponse + } + + /** + * Test the property 'latestArraySchema' + */ + @Test + public void latestArraySchemaTest() { + // TODO: test latestArraySchema + } + + /** + * Test the property 'allArraySchemas' + */ + @Test + public void allArraySchemasTest() { + // TODO: test allArraySchemas + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsRequestTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsRequestTest.java new file mode 100644 index 0000000..9a6192e --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsRequestTest.java @@ -0,0 +1,59 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.TileDBConfig; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for LoadEnumerationsRequest + */ +public class LoadEnumerationsRequestTest { + private final LoadEnumerationsRequest model = new LoadEnumerationsRequest(); + + /** + * Model tests for LoadEnumerationsRequest + */ + @Test + public void testLoadEnumerationsRequest() { + // TODO: test LoadEnumerationsRequest + } + + /** + * Test the property 'config' + */ + @Test + public void configTest() { + // TODO: test config + } + + /** + * Test the property 'enumerations' + */ + @Test + public void enumerationsTest() { + // TODO: test enumerations + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsResponseTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsResponseTest.java new file mode 100644 index 0000000..cbb0ea6 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsResponseTest.java @@ -0,0 +1,51 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.Enumeration; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for LoadEnumerationsResponse + */ +public class LoadEnumerationsResponseTest { + private final LoadEnumerationsResponse model = new LoadEnumerationsResponse(); + + /** + * Model tests for LoadEnumerationsResponse + */ + @Test + public void testLoadEnumerationsResponse() { + // TODO: test LoadEnumerationsResponse + } + + /** + * Test the property 'enumerations' + */ + @Test + public void enumerationsTest() { + // TODO: test enumerations + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/MLModelFavoriteTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/MLModelFavoriteTest.java new file mode 100644 index 0000000..129ca69 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/MLModelFavoriteTest.java @@ -0,0 +1,64 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for MLModelFavorite + */ +public class MLModelFavoriteTest { + private final MLModelFavorite model = new MLModelFavorite(); + + /** + * Model tests for MLModelFavorite + */ + @Test + public void testMLModelFavorite() { + // TODO: test MLModelFavorite + } + + /** + * Test the property 'mlmodelUuid' + */ + @Test + public void mlmodelUuidTest() { + // TODO: test mlmodelUuid + } + + /** + * Test the property 'namespace' + */ + @Test + public void namespaceTest() { + // TODO: test namespace + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/MLModelFavoritesDataTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/MLModelFavoritesDataTest.java new file mode 100644 index 0000000..f6dd647 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/MLModelFavoritesDataTest.java @@ -0,0 +1,60 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.ArrayInfo; +import io.tiledb.cloud.rest_api.model.PaginationMetadata; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for MLModelFavoritesData + */ +public class MLModelFavoritesDataTest { + private final MLModelFavoritesData model = new MLModelFavoritesData(); + + /** + * Model tests for MLModelFavoritesData + */ + @Test + public void testMLModelFavoritesData() { + // TODO: test MLModelFavoritesData + } + + /** + * Test the property 'mlmodels' + */ + @Test + public void mlmodelsTest() { + // TODO: test mlmodels + } + + /** + * Test the property 'paginationMetadata' + */ + @Test + public void paginationMetadataTest() { + // TODO: test paginationMetadata + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/MaxBufferSizesTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/MaxBufferSizesTest.java new file mode 100644 index 0000000..bb10442 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/MaxBufferSizesTest.java @@ -0,0 +1,51 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.AttributeBufferSize; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for MaxBufferSizes + */ +public class MaxBufferSizesTest { + private final MaxBufferSizes model = new MaxBufferSizes(); + + /** + * Model tests for MaxBufferSizes + */ + @Test + public void testMaxBufferSizes() { + // TODO: test MaxBufferSizes + } + + /** + * Test the property 'maxBufferSizes' + */ + @Test + public void maxBufferSizesTest() { + // TODO: test maxBufferSizes + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/MetadataStringifiedEntryTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/MetadataStringifiedEntryTest.java new file mode 100644 index 0000000..958e4e2 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/MetadataStringifiedEntryTest.java @@ -0,0 +1,64 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for MetadataStringifiedEntry + */ +public class MetadataStringifiedEntryTest { + private final MetadataStringifiedEntry model = new MetadataStringifiedEntry(); + + /** + * Model tests for MetadataStringifiedEntry + */ + @Test + public void testMetadataStringifiedEntry() { + // TODO: test MetadataStringifiedEntry + } + + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } + + /** + * Test the property 'value' + */ + @Test + public void valueTest() { + // TODO: test value + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/MetadataStringifiedTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/MetadataStringifiedTest.java new file mode 100644 index 0000000..3d3edca --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/MetadataStringifiedTest.java @@ -0,0 +1,51 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.MetadataStringifiedEntry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for MetadataStringified + */ +public class MetadataStringifiedTest { + private final MetadataStringified model = new MetadataStringified(); + + /** + * Model tests for MetadataStringified + */ + @Test + public void testMetadataStringified() { + // TODO: test MetadataStringified + } + + /** + * Test the property 'entries' + */ + @Test + public void entriesTest() { + // TODO: test entries + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/MultiArrayUDFTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/MultiArrayUDFTest.java new file mode 100644 index 0000000..64c0a9d --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/MultiArrayUDFTest.java @@ -0,0 +1,225 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.QueryRanges; +import io.tiledb.cloud.rest_api.model.ResultFormat; +import io.tiledb.cloud.rest_api.model.TGUDFArgument; +import io.tiledb.cloud.rest_api.model.UDFArrayDetails; +import io.tiledb.cloud.rest_api.model.UDFLanguage; +import io.tiledb.cloud.rest_api.model.UDFSubarray; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for MultiArrayUDF + */ +public class MultiArrayUDFTest { + private final MultiArrayUDF model = new MultiArrayUDF(); + + /** + * Model tests for MultiArrayUDF + */ + @Test + public void testMultiArrayUDF() { + // TODO: test MultiArrayUDF + } + + /** + * Test the property 'udfInfoName' + */ + @Test + public void udfInfoNameTest() { + // TODO: test udfInfoName + } + + /** + * Test the property 'language' + */ + @Test + public void languageTest() { + // TODO: test language + } + + /** + * Test the property 'version' + */ + @Test + public void versionTest() { + // TODO: test version + } + + /** + * Test the property 'imageName' + */ + @Test + public void imageNameTest() { + // TODO: test imageName + } + + /** + * Test the property 'accessCredentialsName' + */ + @Test + public void accessCredentialsNameTest() { + // TODO: test accessCredentialsName + } + + /** + * Test the property 'resourceClass' + */ + @Test + public void resourceClassTest() { + // TODO: test resourceClass + } + + /** + * Test the property 'exec' + */ + @Test + public void execTest() { + // TODO: test exec + } + + /** + * Test the property 'execRaw' + */ + @Test + public void execRawTest() { + // TODO: test execRaw + } + + /** + * Test the property 'resultFormat' + */ + @Test + public void resultFormatTest() { + // TODO: test resultFormat + } + + /** + * Test the property 'taskName' + */ + @Test + public void taskNameTest() { + // TODO: test taskName + } + + /** + * Test the property 'argument' + */ + @Test + public void argumentTest() { + // TODO: test argument + } + + /** + * Test the property 'argumentsJson' + */ + @Test + public void argumentsJsonTest() { + // TODO: test argumentsJson + } + + /** + * Test the property 'storedParamUuids' + */ + @Test + public void storedParamUuidsTest() { + // TODO: test storedParamUuids + } + + /** + * Test the property 'storeResults' + */ + @Test + public void storeResultsTest() { + // TODO: test storeResults + } + + /** + * Test the property 'dontDownloadResults' + */ + @Test + public void dontDownloadResultsTest() { + // TODO: test dontDownloadResults + } + + /** + * Test the property 'ranges' + */ + @Test + public void rangesTest() { + // TODO: test ranges + } + + /** + * Test the property 'subarray' + */ + @Test + public void subarrayTest() { + // TODO: test subarray + } + + /** + * Test the property 'buffers' + */ + @Test + public void buffersTest() { + // TODO: test buffers + } + + /** + * Test the property 'arrays' + */ + @Test + public void arraysTest() { + // TODO: test arrays + } + + /** + * Test the property 'timeout' + */ + @Test + public void timeoutTest() { + // TODO: test timeout + } + + /** + * Test the property 'taskGraphUuid' + */ + @Test + public void taskGraphUuidTest() { + // TODO: test taskGraphUuid + } + + /** + * Test the property 'clientNodeUuid' + */ + @Test + public void clientNodeUuidTest() { + // TODO: test clientNodeUuid + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/NamespaceActionsTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/NamespaceActionsTest.java new file mode 100644 index 0000000..d5d93f6 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/NamespaceActionsTest.java @@ -0,0 +1,32 @@ +/* + * 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 com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for NamespaceActions + */ +public class NamespaceActionsTest { + /** + * Model tests for NamespaceActions + */ + @Test + public void testNamespaceActions() { + // TODO: test NamespaceActions + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/NonEmptyDomainTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/NonEmptyDomainTest.java new file mode 100644 index 0000000..76b9b70 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/NonEmptyDomainTest.java @@ -0,0 +1,57 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.DomainArray; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for NonEmptyDomain + */ +public class NonEmptyDomainTest { + private final NonEmptyDomain model = new NonEmptyDomain(); + + /** + * Model tests for NonEmptyDomain + */ + @Test + public void testNonEmptyDomain() { + // TODO: test NonEmptyDomain + } + + /** + * Test the property 'nonEmptyDomain' + */ + @Test + public void nonEmptyDomainTest() { + // TODO: test nonEmptyDomain + } + + /** + * Test the property 'isEmpty' + */ + @Test + public void isEmptyTest() { + // TODO: test isEmpty + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/NotebookCopiedTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/NotebookCopiedTest.java new file mode 100644 index 0000000..0f2c19e --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/NotebookCopiedTest.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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for NotebookCopied + */ +public class NotebookCopiedTest { + private final NotebookCopied model = new NotebookCopied(); + + /** + * Model tests for NotebookCopied + */ + @Test + public void testNotebookCopied() { + // TODO: test NotebookCopied + } + + /** + * Test the property 'outputUri' + */ + @Test + public void outputUriTest() { + // TODO: test outputUri + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'namespace' + */ + @Test + public void namespaceTest() { + // TODO: test namespace + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/NotebookCopyTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/NotebookCopyTest.java new file mode 100644 index 0000000..3a128f2 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/NotebookCopyTest.java @@ -0,0 +1,64 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for NotebookCopy + */ +public class NotebookCopyTest { + private final NotebookCopy model = new NotebookCopy(); + + /** + * Model tests for NotebookCopy + */ + @Test + public void testNotebookCopy() { + // TODO: test NotebookCopy + } + + /** + * Test the property 'outputUri' + */ + @Test + public void outputUriTest() { + // TODO: test outputUri + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'namespace' + */ + @Test + public void namespaceTest() { + // TODO: test namespace + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/NotebookFavoriteTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/NotebookFavoriteTest.java new file mode 100644 index 0000000..39c844a --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/NotebookFavoriteTest.java @@ -0,0 +1,64 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for NotebookFavorite + */ +public class NotebookFavoriteTest { + private final NotebookFavorite model = new NotebookFavorite(); + + /** + * Model tests for NotebookFavorite + */ + @Test + public void testNotebookFavorite() { + // TODO: test NotebookFavorite + } + + /** + * Test the property 'notebookUuid' + */ + @Test + public void notebookUuidTest() { + // TODO: test notebookUuid + } + + /** + * Test the property 'namespace' + */ + @Test + public void namespaceTest() { + // TODO: test namespace + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/NotebookFavoritesDataTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/NotebookFavoritesDataTest.java new file mode 100644 index 0000000..62b66f4 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/NotebookFavoritesDataTest.java @@ -0,0 +1,60 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.ArrayInfo; +import io.tiledb.cloud.rest_api.model.PaginationMetadata; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for NotebookFavoritesData + */ +public class NotebookFavoritesDataTest { + private final NotebookFavoritesData model = new NotebookFavoritesData(); + + /** + * Model tests for NotebookFavoritesData + */ + @Test + public void testNotebookFavoritesData() { + // TODO: test NotebookFavoritesData + } + + /** + * Test the property 'notebooks' + */ + @Test + public void notebooksTest() { + // TODO: test notebooks + } + + /** + * Test the property 'paginationMetadata' + */ + @Test + public void paginationMetadataTest() { + // TODO: test paginationMetadata + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/NotebookStatusTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/NotebookStatusTest.java new file mode 100644 index 0000000..afdba1f --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/NotebookStatusTest.java @@ -0,0 +1,138 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.PodStatus; +import java.io.IOException; +import java.util.Arrays; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for NotebookStatus + */ +public class NotebookStatusTest { + private final NotebookStatus model = new NotebookStatus(); + + /** + * Model tests for NotebookStatus + */ + @Test + public void testNotebookStatus() { + // TODO: test NotebookStatus + } + + /** + * Test the property 'namespace' + */ + @Test + public void namespaceTest() { + // TODO: test namespace + } + + /** + * Test the property 'uptime' + */ + @Test + public void uptimeTest() { + // TODO: test uptime + } + + /** + * Test the property 'cpuUsage' + */ + @Test + public void cpuUsageTest() { + // TODO: test cpuUsage + } + + /** + * Test the property 'gpuUsage' + */ + @Test + public void gpuUsageTest() { + // TODO: test gpuUsage + } + + /** + * Test the property 'memoryUsage' + */ + @Test + public void memoryUsageTest() { + // TODO: test memoryUsage + } + + /** + * Test the property 'gpuLimit' + */ + @Test + public void gpuLimitTest() { + // TODO: test gpuLimit + } + + /** + * Test the property 'memoryLimit' + */ + @Test + public void memoryLimitTest() { + // TODO: test memoryLimit + } + + /** + * Test the property 'storageUsage' + */ + @Test + public void storageUsageTest() { + // TODO: test storageUsage + } + + /** + * Test the property 'storageLimit' + */ + @Test + public void storageLimitTest() { + // TODO: test storageLimit + } + + /** + * Test the property 'cpuCount' + */ + @Test + public void cpuCountTest() { + // TODO: test cpuCount + } + + /** + * Test the property 'cost' + */ + @Test + public void costTest() { + // TODO: test cost + } + + /** + * Test the property 'podStatus' + */ + @Test + public void podStatusTest() { + // TODO: test podStatus + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/OrganizationRolesTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/OrganizationRolesTest.java new file mode 100644 index 0000000..7f2d138 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/OrganizationRolesTest.java @@ -0,0 +1,32 @@ +/* + * 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 com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for OrganizationRoles + */ +public class OrganizationRolesTest { + /** + * Model tests for OrganizationRoles + */ + @Test + public void testOrganizationRoles() { + // TODO: test OrganizationRoles + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/OrganizationTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/OrganizationTest.java new file mode 100644 index 0000000..cb0086c --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/OrganizationTest.java @@ -0,0 +1,185 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.AssetLocations; +import io.tiledb.cloud.rest_api.model.NamespaceActions; +import io.tiledb.cloud.rest_api.model.OrganizationRoles; +import io.tiledb.cloud.rest_api.model.OrganizationUser; +import java.io.IOException; +import java.math.BigDecimal; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for Organization + */ +public class OrganizationTest { + private final Organization model = new Organization(); + + /** + * Model tests for Organization + */ + @Test + public void testOrganization() { + // TODO: test Organization + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'role' + */ + @Test + public void roleTest() { + // TODO: test role + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'createdAt' + */ + @Test + public void createdAtTest() { + // TODO: test createdAt + } + + /** + * Test the property 'updatedAt' + */ + @Test + public void updatedAtTest() { + // TODO: test updatedAt + } + + /** + * Test the property 'logo' + */ + @Test + public void logoTest() { + // TODO: test logo + } + + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } + + /** + * Test the property 'users' + */ + @Test + public void usersTest() { + // TODO: test users + } + + /** + * Test the property 'allowedActions' + */ + @Test + public void allowedActionsTest() { + // TODO: test allowedActions + } + + /** + * Test the property 'numOfArrays' + */ + @Test + public void numOfArraysTest() { + // TODO: test numOfArrays + } + + /** + * Test the property 'enabledFeatures' + */ + @Test + public void enabledFeaturesTest() { + // TODO: test enabledFeatures + } + + /** + * Test the property 'unpaidSubscription' + */ + @Test + public void unpaidSubscriptionTest() { + // TODO: test unpaidSubscription + } + + /** + * Test the property 'defaultS3Path' + */ + @Test + public void defaultS3PathTest() { + // TODO: test defaultS3Path + } + + /** + * Test the property 'defaultS3PathCredentialsName' + */ + @Test + public void defaultS3PathCredentialsNameTest() { + // TODO: test defaultS3PathCredentialsName + } + + /** + * Test the property 'assetLocations' + */ + @Test + public void assetLocationsTest() { + // TODO: test assetLocations + } + + /** + * Test the property 'stripeConnect' + */ + @Test + public void stripeConnectTest() { + // TODO: test stripeConnect + } + + /** + * Test the property 'assumeRoleArn' + */ + @Test + public void assumeRoleArnTest() { + // TODO: test assumeRoleArn + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/OrganizationUpdateTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/OrganizationUpdateTest.java new file mode 100644 index 0000000..ee75e71 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/OrganizationUpdateTest.java @@ -0,0 +1,90 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.AssetLocations; +import java.io.IOException; +import java.util.Arrays; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for OrganizationUpdate + */ +public class OrganizationUpdateTest { + private final OrganizationUpdate model = new OrganizationUpdate(); + + /** + * Model tests for OrganizationUpdate + */ + @Test + public void testOrganizationUpdate() { + // TODO: test OrganizationUpdate + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'logo' + */ + @Test + public void logoTest() { + // TODO: test logo + } + + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } + + /** + * Test the property 'defaultS3Path' + */ + @Test + public void defaultS3PathTest() { + // TODO: test defaultS3Path + } + + /** + * Test the property 'defaultS3PathCredentialsName' + */ + @Test + public void defaultS3PathCredentialsNameTest() { + // TODO: test defaultS3PathCredentialsName + } + + /** + * Test the property 'assetLocations' + */ + @Test + public void assetLocationsTest() { + // TODO: test assetLocations + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/OrganizationUserTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/OrganizationUserTest.java new file mode 100644 index 0000000..9a4efce --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/OrganizationUserTest.java @@ -0,0 +1,108 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.NamespaceActions; +import io.tiledb.cloud.rest_api.model.OrganizationRoles; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for OrganizationUser + */ +public class OrganizationUserTest { + private final OrganizationUser model = new OrganizationUser(); + + /** + * Model tests for OrganizationUser + */ + @Test + public void testOrganizationUser() { + // TODO: test OrganizationUser + } + + /** + * Test the property 'userId' + */ + @Test + public void userIdTest() { + // TODO: test userId + } + + /** + * Test the property 'organizationId' + */ + @Test + public void organizationIdTest() { + // TODO: test organizationId + } + + /** + * Test the property 'username' + */ + @Test + public void usernameTest() { + // TODO: test username + } + + /** + * Test the property 'userFullName' + */ + @Test + public void userFullNameTest() { + // TODO: test userFullName + } + + /** + * Test the property 'userEmail' + */ + @Test + public void userEmailTest() { + // TODO: test userEmail + } + + /** + * Test the property 'organizationName' + */ + @Test + public void organizationNameTest() { + // TODO: test organizationName + } + + /** + * Test the property 'role' + */ + @Test + public void roleTest() { + // TODO: test role + } + + /** + * Test the property 'allowedActions' + */ + @Test + public void allowedActionsTest() { + // TODO: test allowedActions + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/PaginationMetadataTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/PaginationMetadataTest.java new file mode 100644 index 0000000..394207e --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/PaginationMetadataTest.java @@ -0,0 +1,73 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.math.BigDecimal; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for PaginationMetadata + */ +public class PaginationMetadataTest { + private final PaginationMetadata model = new PaginationMetadata(); + + /** + * Model tests for PaginationMetadata + */ + @Test + public void testPaginationMetadata() { + // TODO: test PaginationMetadata + } + + /** + * Test the property 'page' + */ + @Test + public void pageTest() { + // TODO: test page + } + + /** + * Test the property 'perPage' + */ + @Test + public void perPageTest() { + // TODO: test perPage + } + + /** + * Test the property 'totalPages' + */ + @Test + public void totalPagesTest() { + // TODO: test totalPages + } + + /** + * Test the property 'totalItems' + */ + @Test + public void totalItemsTest() { + // TODO: test totalItems + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/PodStatusTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/PodStatusTest.java new file mode 100644 index 0000000..d0c7430 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/PodStatusTest.java @@ -0,0 +1,32 @@ +/* + * 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 com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for PodStatus + */ +public class PodStatusTest { + /** + * Model tests for PodStatus + */ + @Test + public void testPodStatus() { + // TODO: test PodStatus + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/PricingAggregateUsageTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/PricingAggregateUsageTest.java new file mode 100644 index 0000000..f9292cc --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/PricingAggregateUsageTest.java @@ -0,0 +1,32 @@ +/* + * 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 com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for PricingAggregateUsage + */ +public class PricingAggregateUsageTest { + /** + * Model tests for PricingAggregateUsage + */ + @Test + public void testPricingAggregateUsage() { + // TODO: test PricingAggregateUsage + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/PricingCurrencyTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/PricingCurrencyTest.java new file mode 100644 index 0000000..e122625 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/PricingCurrencyTest.java @@ -0,0 +1,32 @@ +/* + * 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 com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for PricingCurrency + */ +public class PricingCurrencyTest { + /** + * Model tests for PricingCurrency + */ + @Test + public void testPricingCurrency() { + // TODO: test PricingCurrency + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/PricingIntervalTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/PricingIntervalTest.java new file mode 100644 index 0000000..9f1cda6 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/PricingIntervalTest.java @@ -0,0 +1,32 @@ +/* + * 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 com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for PricingInterval + */ +public class PricingIntervalTest { + /** + * Model tests for PricingInterval + */ + @Test + public void testPricingInterval() { + // TODO: test PricingInterval + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/PricingTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/PricingTest.java new file mode 100644 index 0000000..d476ea0 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/PricingTest.java @@ -0,0 +1,149 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.PricingAggregateUsage; +import io.tiledb.cloud.rest_api.model.PricingCurrency; +import io.tiledb.cloud.rest_api.model.PricingInterval; +import io.tiledb.cloud.rest_api.model.PricingType; +import io.tiledb.cloud.rest_api.model.PricingUnitLabel; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for Pricing + */ +public class PricingTest { + private final Pricing model = new Pricing(); + + /** + * Model tests for Pricing + */ + @Test + public void testPricing() { + // TODO: test Pricing + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'arrayUuid' + */ + @Test + public void arrayUuidTest() { + // TODO: test arrayUuid + } + + /** + * Test the property 'pricingName' + */ + @Test + public void pricingNameTest() { + // TODO: test pricingName + } + + /** + * Test the property 'pricingType' + */ + @Test + public void pricingTypeTest() { + // TODO: test pricingType + } + + /** + * Test the property 'productName' + */ + @Test + public void productNameTest() { + // TODO: test productName + } + + /** + * Test the property 'productStatementDescriptor' + */ + @Test + public void productStatementDescriptorTest() { + // TODO: test productStatementDescriptor + } + + /** + * Test the property 'productUnitLabel' + */ + @Test + public void productUnitLabelTest() { + // TODO: test productUnitLabel + } + + /** + * Test the property 'currency' + */ + @Test + public void currencyTest() { + // TODO: test currency + } + + /** + * Test the property 'aggregateUsage' + */ + @Test + public void aggregateUsageTest() { + // TODO: test aggregateUsage + } + + /** + * Test the property 'interval' + */ + @Test + public void intervalTest() { + // TODO: test interval + } + + /** + * Test the property 'dividedBy' + */ + @Test + public void dividedByTest() { + // TODO: test dividedBy + } + + /** + * Test the property 'charge' + */ + @Test + public void chargeTest() { + // TODO: test charge + } + + /** + * Test the property 'activated' + */ + @Test + public void activatedTest() { + // TODO: test activated + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/PricingTypeTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/PricingTypeTest.java new file mode 100644 index 0000000..0497ac8 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/PricingTypeTest.java @@ -0,0 +1,32 @@ +/* + * 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 com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for PricingType + */ +public class PricingTypeTest { + /** + * Model tests for PricingType + */ + @Test + public void testPricingType() { + // TODO: test PricingType + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/PricingUnitLabelTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/PricingUnitLabelTest.java new file mode 100644 index 0000000..ba88f3c --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/PricingUnitLabelTest.java @@ -0,0 +1,32 @@ +/* + * 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 com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for PricingUnitLabel + */ +public class PricingUnitLabelTest { + /** + * Model tests for PricingUnitLabel + */ + @Test + public void testPricingUnitLabel() { + // TODO: test PricingUnitLabel + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/PublicShareFilterTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/PublicShareFilterTest.java new file mode 100644 index 0000000..f6165a0 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/PublicShareFilterTest.java @@ -0,0 +1,32 @@ +/* + * 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 com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for PublicShareFilter + */ +public class PublicShareFilterTest { + /** + * Model tests for PublicShareFilter + */ + @Test + public void testPublicShareFilter() { + // TODO: test PublicShareFilter + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/QueryJsonTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/QueryJsonTest.java new file mode 100644 index 0000000..db804ac --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/QueryJsonTest.java @@ -0,0 +1,59 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.QueryRanges; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for QueryJson + */ +public class QueryJsonTest { + private final QueryJson model = new QueryJson(); + + /** + * Model tests for QueryJson + */ + @Test + public void testQueryJson() { + // TODO: test QueryJson + } + + /** + * Test the property 'queryRanges' + */ + @Test + public void queryRangesTest() { + // TODO: test queryRanges + } + + /** + * Test the property 'fields' + */ + @Test + public void fieldsTest() { + // TODO: test fields + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/QueryRangesTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/QueryRangesTest.java new file mode 100644 index 0000000..b9b3097 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/QueryRangesTest.java @@ -0,0 +1,60 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.Layout; +import java.io.IOException; +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for QueryRanges + */ +public class QueryRangesTest { + private final QueryRanges model = new QueryRanges(); + + /** + * Model tests for QueryRanges + */ + @Test + public void testQueryRanges() { + // TODO: test QueryRanges + } + + /** + * Test the property 'layout' + */ + @Test + public void layoutTest() { + // TODO: test layout + } + + /** + * Test the property 'ranges' + */ + @Test + public void rangesTest() { + // TODO: test ranges + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/QueryReaderTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/QueryReaderTest.java new file mode 100644 index 0000000..44200f1 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/QueryReaderTest.java @@ -0,0 +1,91 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.Layout; +import io.tiledb.cloud.rest_api.model.ReadState; +import io.tiledb.cloud.rest_api.model.Subarray; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for QueryReader + */ +public class QueryReaderTest { + private final QueryReader model = new QueryReader(); + + /** + * Model tests for QueryReader + */ + @Test + public void testQueryReader() { + // TODO: test QueryReader + } + + /** + * Test the property 'layout' + */ + @Test + public void layoutTest() { + // TODO: test layout + } + + /** + * Test the property 'subarray' + */ + @Test + public void subarrayTest() { + // TODO: test subarray + } + + /** + * Test the property 'readState' + */ + @Test + public void readStateTest() { + // TODO: test readState + } + + /** + * Test the property 'varOffsetsMode' + */ + @Test + public void varOffsetsModeTest() { + // TODO: test varOffsetsMode + } + + /** + * Test the property 'varOffsetsAddExtraElement' + */ + @Test + public void varOffsetsAddExtraElementTest() { + // TODO: test varOffsetsAddExtraElement + } + + /** + * Test the property 'varOffsetsBitsize' + */ + @Test + public void varOffsetsBitsizeTest() { + // TODO: test varOffsetsBitsize + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/QueryTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/QueryTest.java new file mode 100644 index 0000000..e06fb52 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/QueryTest.java @@ -0,0 +1,120 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.AttributeBufferHeader; +import io.tiledb.cloud.rest_api.model.Layout; +import io.tiledb.cloud.rest_api.model.QueryReader; +import io.tiledb.cloud.rest_api.model.Querystatus; +import io.tiledb.cloud.rest_api.model.Querytype; +import io.tiledb.cloud.rest_api.model.Writer; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for Query + */ +public class QueryTest { + private final Query model = new Query(); + + /** + * Model tests for Query + */ + @Test + public void testQuery() { + // TODO: test Query + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'layout' + */ + @Test + public void layoutTest() { + // TODO: test layout + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'attributeBufferHeaders' + */ + @Test + public void attributeBufferHeadersTest() { + // TODO: test attributeBufferHeaders + } + + /** + * Test the property 'writer' + */ + @Test + public void writerTest() { + // TODO: test writer + } + + /** + * Test the property 'reader' + */ + @Test + public void readerTest() { + // TODO: test reader + } + + /** + * Test the property 'array' + */ + @Test + public void arrayTest() { + // TODO: test array + } + + /** + * Test the property 'totalFixedLengthBufferBytes' + */ + @Test + public void totalFixedLengthBufferBytesTest() { + // TODO: test totalFixedLengthBufferBytes + } + + /** + * Test the property 'totalVarLenBufferBytes' + */ + @Test + public void totalVarLenBufferBytesTest() { + // TODO: test totalVarLenBufferBytes + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/QuerystatusTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/QuerystatusTest.java new file mode 100644 index 0000000..3da5ce2 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/QuerystatusTest.java @@ -0,0 +1,32 @@ +/* + * 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 com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for Querystatus + */ +public class QuerystatusTest { + /** + * Model tests for Querystatus + */ + @Test + public void testQuerystatus() { + // TODO: test Querystatus + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/QuerytypeTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/QuerytypeTest.java new file mode 100644 index 0000000..1d0bc89 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/QuerytypeTest.java @@ -0,0 +1,32 @@ +/* + * 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 com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for Querytype + */ +public class QuerytypeTest { + /** + * Model tests for Querytype + */ + @Test + public void testQuerytype() { + // TODO: test Querytype + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ReadStateTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ReadStateTest.java new file mode 100644 index 0000000..ab1245a --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/ReadStateTest.java @@ -0,0 +1,73 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.SubarrayPartitioner; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ReadState + */ +public class ReadStateTest { + private final ReadState model = new ReadState(); + + /** + * Model tests for ReadState + */ + @Test + public void testReadState() { + // TODO: test ReadState + } + + /** + * Test the property 'initialized' + */ + @Test + public void initializedTest() { + // TODO: test initialized + } + + /** + * Test the property 'overflowed' + */ + @Test + public void overflowedTest() { + // TODO: test overflowed + } + + /** + * Test the property 'unsplittable' + */ + @Test + public void unsplittableTest() { + // TODO: test unsplittable + } + + /** + * Test the property 'subarrayPartitioner' + */ + @Test + public void subarrayPartitionerTest() { + // TODO: test subarrayPartitioner + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/RegisteredTaskGraphTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/RegisteredTaskGraphTest.java new file mode 100644 index 0000000..be76e73 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/RegisteredTaskGraphTest.java @@ -0,0 +1,108 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.TaskGraphNode; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for RegisteredTaskGraph + */ +public class RegisteredTaskGraphTest { + private final RegisteredTaskGraph model = new RegisteredTaskGraph(); + + /** + * Model tests for RegisteredTaskGraph + */ + @Test + public void testRegisteredTaskGraph() { + // TODO: test RegisteredTaskGraph + } + + /** + * Test the property 'uuid' + */ + @Test + public void uuidTest() { + // TODO: test uuid + } + + /** + * Test the property 'namespace' + */ + @Test + public void namespaceTest() { + // TODO: test namespace + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'readme' + */ + @Test + public void readmeTest() { + // TODO: test readme + } + + /** + * Test the property 'licenseId' + */ + @Test + public void licenseIdTest() { + // TODO: test licenseId + } + + /** + * Test the property 'licenseText' + */ + @Test + public void licenseTextTest() { + // TODO: test licenseText + } + + /** + * Test the property 'tags' + */ + @Test + public void tagsTest() { + // TODO: test tags + } + + /** + * Test the property 'nodes' + */ + @Test + public void nodesTest() { + // TODO: test nodes + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ResetUserPasswordRequestTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ResetUserPasswordRequestTest.java new file mode 100644 index 0000000..34b3984 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/ResetUserPasswordRequestTest.java @@ -0,0 +1,48 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ResetUserPasswordRequest + */ +public class ResetUserPasswordRequestTest { + private final ResetUserPasswordRequest model = new ResetUserPasswordRequest(); + + /** + * Model tests for ResetUserPasswordRequest + */ + @Test + public void testResetUserPasswordRequest() { + // TODO: test ResetUserPasswordRequest + } + + /** + * Test the property 'password' + */ + @Test + public void passwordTest() { + // TODO: test password + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/ResultFormatTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ResultFormatTest.java new file mode 100644 index 0000000..38b9006 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/ResultFormatTest.java @@ -0,0 +1,32 @@ +/* + * 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 com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ResultFormat + */ +public class ResultFormatTest { + /** + * Model tests for ResultFormat + */ + @Test + public void testResultFormat() { + // TODO: test ResultFormat + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/RetryPolicyTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/RetryPolicyTest.java new file mode 100644 index 0000000..51cc819 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/RetryPolicyTest.java @@ -0,0 +1,32 @@ +/* + * 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 com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for RetryPolicy + */ +public class RetryPolicyTest { + /** + * Model tests for RetryPolicy + */ + @Test + public void testRetryPolicy() { + // TODO: test RetryPolicy + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/RetryStrategyTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/RetryStrategyTest.java new file mode 100644 index 0000000..602c20b --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/RetryStrategyTest.java @@ -0,0 +1,74 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.Backoff; +import io.tiledb.cloud.rest_api.model.RetryPolicy; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for RetryStrategy + */ +public class RetryStrategyTest { + private final RetryStrategy model = new RetryStrategy(); + + /** + * Model tests for RetryStrategy + */ + @Test + public void testRetryStrategy() { + // TODO: test RetryStrategy + } + + /** + * Test the property 'backoff' + */ + @Test + public void backoffTest() { + // TODO: test backoff + } + + /** + * Test the property 'expression' + */ + @Test + public void expressionTest() { + // TODO: test expression + } + + /** + * Test the property 'limit' + */ + @Test + public void limitTest() { + // TODO: test limit + } + + /** + * Test the property 'retryPolicy' + */ + @Test + public void retryPolicyTest() { + // TODO: test retryPolicy + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/SQLParametersTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/SQLParametersTest.java new file mode 100644 index 0000000..90859a1 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/SQLParametersTest.java @@ -0,0 +1,131 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.ResultFormat; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for SQLParameters + */ +public class SQLParametersTest { + private final SQLParameters model = new SQLParameters(); + + /** + * Model tests for SQLParameters + */ + @Test + public void testSQLParameters() { + // TODO: test SQLParameters + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'query' + */ + @Test + public void queryTest() { + // TODO: test query + } + + /** + * Test the property 'outputUri' + */ + @Test + public void outputUriTest() { + // TODO: test outputUri + } + + /** + * Test the property 'storeResults' + */ + @Test + public void storeResultsTest() { + // TODO: test storeResults + } + + /** + * Test the property 'dontDownloadResults' + */ + @Test + public void dontDownloadResultsTest() { + // TODO: test dontDownloadResults + } + + /** + * Test the property 'resourceClass' + */ + @Test + public void resourceClassTest() { + // TODO: test resourceClass + } + + /** + * Test the property 'resultFormat' + */ + @Test + public void resultFormatTest() { + // TODO: test resultFormat + } + + /** + * Test the property 'initCommands' + */ + @Test + public void initCommandsTest() { + // TODO: test initCommands + } + + /** + * Test the property 'parameters' + */ + @Test + public void parametersTest() { + // TODO: test parameters + } + + /** + * Test the property 'taskGraphUuid' + */ + @Test + public void taskGraphUuidTest() { + // TODO: test taskGraphUuid + } + + /** + * Test the property 'clientNodeUuid' + */ + @Test + public void clientNodeUuidTest() { + // TODO: test clientNodeUuid + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/SSODomainConfigResponseTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/SSODomainConfigResponseTest.java new file mode 100644 index 0000000..a6f87d0 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/SSODomainConfigResponseTest.java @@ -0,0 +1,51 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.SSODomainConfig; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for SSODomainConfigResponse + */ +public class SSODomainConfigResponseTest { + private final SSODomainConfigResponse model = new SSODomainConfigResponse(); + + /** + * Model tests for SSODomainConfigResponse + */ + @Test + public void testSSODomainConfigResponse() { + // TODO: test SSODomainConfigResponse + } + + /** + * Test the property 'domainConfigs' + */ + @Test + public void domainConfigsTest() { + // TODO: test domainConfigs + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/SSODomainConfigTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/SSODomainConfigTest.java new file mode 100644 index 0000000..b6b8e6b --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/SSODomainConfigTest.java @@ -0,0 +1,110 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.DomainCheckResult; +import io.tiledb.cloud.rest_api.model.DomainVerificationStatus; +import io.tiledb.cloud.rest_api.model.SSODomainSetup; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for SSODomainConfig + */ +public class SSODomainConfigTest { + private final SSODomainConfig model = new SSODomainConfig(); + + /** + * Model tests for SSODomainConfig + */ + @Test + public void testSSODomainConfig() { + // TODO: test SSODomainConfig + } + + /** + * Test the property 'uuid' + */ + @Test + public void uuidTest() { + // TODO: test uuid + } + + /** + * Test the property 'domain' + */ + @Test + public void domainTest() { + // TODO: test domain + } + + /** + * Test the property 'oidcIssuer' + */ + @Test + public void oidcIssuerTest() { + // TODO: test oidcIssuer + } + + /** + * Test the property 'oidcClientId' + */ + @Test + public void oidcClientIdTest() { + // TODO: test oidcClientId + } + + /** + * Test the property 'oidcClientSecret' + */ + @Test + public void oidcClientSecretTest() { + // TODO: test oidcClientSecret + } + + /** + * Test the property 'domainSetup' + */ + @Test + public void domainSetupTest() { + // TODO: test domainSetup + } + + /** + * Test the property 'verificationStatus' + */ + @Test + public void verificationStatusTest() { + // TODO: test verificationStatus + } + + /** + * Test the property 'checkResults' + */ + @Test + public void checkResultsTest() { + // TODO: test checkResults + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/SSODomainSetupTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/SSODomainSetupTest.java new file mode 100644 index 0000000..48c7e97 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/SSODomainSetupTest.java @@ -0,0 +1,64 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for SSODomainSetup + */ +public class SSODomainSetupTest { + private final SSODomainSetup model = new SSODomainSetup(); + + /** + * Model tests for SSODomainSetup + */ + @Test + public void testSSODomainSetup() { + // TODO: test SSODomainSetup + } + + /** + * Test the property 'txt' + */ + @Test + public void txtTest() { + // TODO: test txt + } + + /** + * Test the property 'cnameSrc' + */ + @Test + public void cnameSrcTest() { + // TODO: test cnameSrc + } + + /** + * Test the property 'cnameDst' + */ + @Test + public void cnameDstTest() { + // TODO: test cnameDst + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/SSOProviderTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/SSOProviderTest.java new file mode 100644 index 0000000..e945209 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/SSOProviderTest.java @@ -0,0 +1,32 @@ +/* + * 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 com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for SSOProvider + */ +public class SSOProviderTest { + /** + * Model tests for SSOProvider + */ + @Test + public void testSSOProvider() { + // TODO: test SSOProvider + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/SharePaymentRequestTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/SharePaymentRequestTest.java new file mode 100644 index 0000000..dbf5bb4 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/SharePaymentRequestTest.java @@ -0,0 +1,50 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for SharePaymentRequest + */ +public class SharePaymentRequestTest { + private final SharePaymentRequest model = new SharePaymentRequest(); + + /** + * Model tests for SharePaymentRequest + */ + @Test + public void testSharePaymentRequest() { + // TODO: test SharePaymentRequest + } + + /** + * Test the property 'namespaces' + */ + @Test + public void namespacesTest() { + // TODO: test namespaces + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/SingleFragmentInfoTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/SingleFragmentInfoTest.java new file mode 100644 index 0000000..0f5dd37 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/SingleFragmentInfoTest.java @@ -0,0 +1,57 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.FragmentMetadata; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for SingleFragmentInfo + */ +public class SingleFragmentInfoTest { + private final SingleFragmentInfo model = new SingleFragmentInfo(); + + /** + * Model tests for SingleFragmentInfo + */ + @Test + public void testSingleFragmentInfo() { + // TODO: test SingleFragmentInfo + } + + /** + * Test the property 'arraySchemaName' + */ + @Test + public void arraySchemaNameTest() { + // TODO: test arraySchemaName + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/StorageLocationTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/StorageLocationTest.java new file mode 100644 index 0000000..05302a0 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/StorageLocationTest.java @@ -0,0 +1,57 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for StorageLocation + */ +public class StorageLocationTest { + private final StorageLocation model = new StorageLocation(); + + /** + * Model tests for StorageLocation + */ + @Test + public void testStorageLocation() { + // TODO: test StorageLocation + } + + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } + + /** + * Test the property 'credentialsName' + */ + @Test + public void credentialsNameTest() { + // TODO: test credentialsName + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerCurrentTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerCurrentTest.java new file mode 100644 index 0000000..d8b5dab --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerCurrentTest.java @@ -0,0 +1,73 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.Subarray; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for SubarrayPartitionerCurrent + */ +public class SubarrayPartitionerCurrentTest { + private final SubarrayPartitionerCurrent model = new SubarrayPartitionerCurrent(); + + /** + * Model tests for SubarrayPartitionerCurrent + */ + @Test + public void testSubarrayPartitionerCurrent() { + // TODO: test SubarrayPartitionerCurrent + } + + /** + * Test the property 'subarray' + */ + @Test + public void subarrayTest() { + // TODO: test subarray + } + + /** + * Test the property 'start' + */ + @Test + public void startTest() { + // TODO: test start + } + + /** + * Test the property 'end' + */ + @Test + public void endTest() { + // TODO: test end + } + + /** + * Test the property 'splitMultiRange' + */ + @Test + public void splitMultiRangeTest() { + // TODO: test splitMultiRange + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerStateTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerStateTest.java new file mode 100644 index 0000000..71b5f58 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerStateTest.java @@ -0,0 +1,75 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.Subarray; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for SubarrayPartitionerState + */ +public class SubarrayPartitionerStateTest { + private final SubarrayPartitionerState model = new SubarrayPartitionerState(); + + /** + * Model tests for SubarrayPartitionerState + */ + @Test + public void testSubarrayPartitionerState() { + // TODO: test SubarrayPartitionerState + } + + /** + * Test the property 'start' + */ + @Test + public void startTest() { + // TODO: test start + } + + /** + * Test the property 'end' + */ + @Test + public void endTest() { + // TODO: test end + } + + /** + * Test the property 'singleRange' + */ + @Test + public void singleRangeTest() { + // TODO: test singleRange + } + + /** + * Test the property 'multiRange' + */ + @Test + public void multiRangeTest() { + // TODO: test multiRange + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerTest.java new file mode 100644 index 0000000..e16535c --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerTest.java @@ -0,0 +1,94 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.AttributeBufferSize; +import io.tiledb.cloud.rest_api.model.Subarray; +import io.tiledb.cloud.rest_api.model.SubarrayPartitionerCurrent; +import io.tiledb.cloud.rest_api.model.SubarrayPartitionerState; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for SubarrayPartitioner + */ +public class SubarrayPartitionerTest { + private final SubarrayPartitioner model = new SubarrayPartitioner(); + + /** + * Model tests for SubarrayPartitioner + */ + @Test + public void testSubarrayPartitioner() { + // TODO: test SubarrayPartitioner + } + + /** + * Test the property 'subarray' + */ + @Test + public void subarrayTest() { + // TODO: test subarray + } + + /** + * Test the property 'budget' + */ + @Test + public void budgetTest() { + // TODO: test budget + } + + /** + * Test the property 'current' + */ + @Test + public void currentTest() { + // TODO: test current + } + + /** + * Test the property 'state' + */ + @Test + public void stateTest() { + // TODO: test state + } + + /** + * Test the property 'memoryBudget' + */ + @Test + public void memoryBudgetTest() { + // TODO: test memoryBudget + } + + /** + * Test the property 'memoryBudgetVar' + */ + @Test + public void memoryBudgetVarTest() { + // TODO: test memoryBudgetVar + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/SubarrayRangesTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/SubarrayRangesTest.java new file mode 100644 index 0000000..5b2d5b9 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/SubarrayRangesTest.java @@ -0,0 +1,67 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.Datatype; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for SubarrayRanges + */ +public class SubarrayRangesTest { + private final SubarrayRanges model = new SubarrayRanges(); + + /** + * Model tests for SubarrayRanges + */ + @Test + public void testSubarrayRanges() { + // TODO: test SubarrayRanges + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'hasDefaultRange' + */ + @Test + public void hasDefaultRangeTest() { + // TODO: test hasDefaultRange + } + + /** + * Test the property 'buffer' + */ + @Test + public void bufferTest() { + // TODO: test buffer + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/SubarrayTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/SubarrayTest.java new file mode 100644 index 0000000..e2bbd69 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/SubarrayTest.java @@ -0,0 +1,60 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.Layout; +import io.tiledb.cloud.rest_api.model.SubarrayRanges; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for Subarray + */ +public class SubarrayTest { + private final Subarray model = new Subarray(); + + /** + * Model tests for Subarray + */ + @Test + public void testSubarray() { + // TODO: test Subarray + } + + /** + * Test the property 'layout' + */ + @Test + public void layoutTest() { + // TODO: test layout + } + + /** + * Test the property 'ranges' + */ + @Test + public void rangesTest() { + // TODO: test ranges + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/SubscriptionTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/SubscriptionTest.java new file mode 100644 index 0000000..d9353ef --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/SubscriptionTest.java @@ -0,0 +1,75 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.Pricing; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for Subscription + */ +public class SubscriptionTest { + private final Subscription model = new Subscription(); + + /** + * Model tests for Subscription + */ + @Test + public void testSubscription() { + // TODO: test Subscription + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'ownerNamespaceUuid' + */ + @Test + public void ownerNamespaceUuidTest() { + // TODO: test ownerNamespaceUuid + } + + /** + * Test the property 'customerNamespaceUuid' + */ + @Test + public void customerNamespaceUuidTest() { + // TODO: test customerNamespaceUuid + } + + /** + * Test the property 'pricing' + */ + @Test + public void pricingTest() { + // TODO: test pricing + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/TGArrayNodeDataTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TGArrayNodeDataTest.java new file mode 100644 index 0000000..14932b1 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/TGArrayNodeDataTest.java @@ -0,0 +1,65 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.TGQueryRanges; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for TGArrayNodeData + */ +public class TGArrayNodeDataTest { + private final TGArrayNodeData model = new TGArrayNodeData(); + + /** + * Model tests for TGArrayNodeData + */ + @Test + public void testTGArrayNodeData() { + // TODO: test TGArrayNodeData + } + + /** + * Test the property 'uri' + */ + @Test + public void uriTest() { + // TODO: test uri + } + + /** + * Test the property 'ranges' + */ + @Test + public void rangesTest() { + // TODO: test ranges + } + + /** + * Test the property 'buffers' + */ + @Test + public void buffersTest() { + // TODO: test buffers + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/TGInputNodeDataTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TGInputNodeDataTest.java new file mode 100644 index 0000000..4c98e54 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/TGInputNodeDataTest.java @@ -0,0 +1,57 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for TGInputNodeData + */ +public class TGInputNodeDataTest { + private final TGInputNodeData model = new TGInputNodeData(); + + /** + * Model tests for TGInputNodeData + */ + @Test + public void testTGInputNodeData() { + // TODO: test TGInputNodeData + } + + /** + * Test the property 'defaultValue' + */ + @Test + public void defaultValueTest() { + // TODO: test defaultValue + } + + /** + * Test the property 'datatype' + */ + @Test + public void datatypeTest() { + // TODO: test datatype + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/TGQueryRangesTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TGQueryRangesTest.java new file mode 100644 index 0000000..1285707 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/TGQueryRangesTest.java @@ -0,0 +1,65 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.Layout; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for TGQueryRanges + */ +public class TGQueryRangesTest { + private final TGQueryRanges model = new TGQueryRanges(); + + /** + * Model tests for TGQueryRanges + */ + @Test + public void testTGQueryRanges() { + // TODO: test TGQueryRanges + } + + /** + * Test the property 'layout' + */ + @Test + public void layoutTest() { + // TODO: test layout + } + + /** + * Test the property 'friendlyRanges' + */ + @Test + public void friendlyRangesTest() { + // TODO: test friendlyRanges + } + + /** + * Test the property 'ranges' + */ + @Test + public void rangesTest() { + // TODO: test ranges + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/TGSQLNodeDataTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TGSQLNodeDataTest.java new file mode 100644 index 0000000..4c89d97 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/TGSQLNodeDataTest.java @@ -0,0 +1,84 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.ResultFormat; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for TGSQLNodeData + */ +public class TGSQLNodeDataTest { + private final TGSQLNodeData model = new TGSQLNodeData(); + + /** + * Model tests for TGSQLNodeData + */ + @Test + public void testTGSQLNodeData() { + // TODO: test TGSQLNodeData + } + + /** + * Test the property 'initCommands' + */ + @Test + public void initCommandsTest() { + // TODO: test initCommands + } + + /** + * Test the property 'query' + */ + @Test + public void queryTest() { + // TODO: test query + } + + /** + * Test the property 'parameters' + */ + @Test + public void parametersTest() { + // TODO: test parameters + } + + /** + * Test the property 'resultFormat' + */ + @Test + public void resultFormatTest() { + // TODO: test resultFormat + } + + /** + * Test the property 'namespace' + */ + @Test + public void namespaceTest() { + // TODO: test namespace + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/TGUDFArgumentTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TGUDFArgumentTest.java new file mode 100644 index 0000000..170c749 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/TGUDFArgumentTest.java @@ -0,0 +1,57 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for TGUDFArgument + */ +public class TGUDFArgumentTest { + private final TGUDFArgument model = new TGUDFArgument(); + + /** + * Model tests for TGUDFArgument + */ + @Test + public void testTGUDFArgument() { + // TODO: test TGUDFArgument + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'value' + */ + @Test + public void valueTest() { + // TODO: test value + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironmentResourcesTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironmentResourcesTest.java new file mode 100644 index 0000000..1f21731 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironmentResourcesTest.java @@ -0,0 +1,64 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for TGUDFEnvironmentResources + */ +public class TGUDFEnvironmentResourcesTest { + private final TGUDFEnvironmentResources model = new TGUDFEnvironmentResources(); + + /** + * Model tests for TGUDFEnvironmentResources + */ + @Test + public void testTGUDFEnvironmentResources() { + // TODO: test TGUDFEnvironmentResources + } + + /** + * Test the property 'cpu' + */ + @Test + public void cpuTest() { + // TODO: test cpu + } + + /** + * Test the property 'memory' + */ + @Test + public void memoryTest() { + // TODO: test memory + } + + /** + * Test the property 'gpu' + */ + @Test + public void gpuTest() { + // TODO: test gpu + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironmentTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironmentTest.java new file mode 100644 index 0000000..640771d --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironmentTest.java @@ -0,0 +1,126 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.TGUDFEnvironmentResources; +import io.tiledb.cloud.rest_api.model.UDFLanguage; +import java.io.IOException; +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for TGUDFEnvironment + */ +public class TGUDFEnvironmentTest { + private final TGUDFEnvironment model = new TGUDFEnvironment(); + + /** + * Model tests for TGUDFEnvironment + */ + @Test + public void testTGUDFEnvironment() { + // TODO: test TGUDFEnvironment + } + + /** + * Test the property 'language' + */ + @Test + public void languageTest() { + // TODO: test language + } + + /** + * Test the property 'languageVersion' + */ + @Test + public void languageVersionTest() { + // TODO: test languageVersion + } + + /** + * Test the property 'imageName' + */ + @Test + public void imageNameTest() { + // TODO: test imageName + } + + /** + * Test the property 'accessCredentialsName' + */ + @Test + public void accessCredentialsNameTest() { + // TODO: test accessCredentialsName + } + + /** + * Test the property 'namespace' + */ + @Test + public void namespaceTest() { + // TODO: test namespace + } + + /** + * Test the property 'resourceClass' + */ + @Test + public void resourceClassTest() { + // TODO: test resourceClass + } + + /** + * Test the property 'resources' + */ + @Test + public void resourcesTest() { + // TODO: test resources + } + + /** + * Test the property 'runClientSide' + */ + @Test + public void runClientSideTest() { + // TODO: test runClientSide + } + + /** + * Test the property 'timeout' + */ + @Test + public void timeoutTest() { + // TODO: test timeout + } + + /** + * Test the property 'paths' + */ + @Test + public void pathsTest() { + // TODO: test paths + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/TGUDFNodeDataTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TGUDFNodeDataTest.java new file mode 100644 index 0000000..39c3b78 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/TGUDFNodeDataTest.java @@ -0,0 +1,94 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.ResultFormat; +import io.tiledb.cloud.rest_api.model.TGUDFArgument; +import io.tiledb.cloud.rest_api.model.TGUDFEnvironment; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for TGUDFNodeData + */ +public class TGUDFNodeDataTest { + private final TGUDFNodeData model = new TGUDFNodeData(); + + /** + * Model tests for TGUDFNodeData + */ + @Test + public void testTGUDFNodeData() { + // TODO: test TGUDFNodeData + } + + /** + * Test the property 'registeredUdfName' + */ + @Test + public void registeredUdfNameTest() { + // TODO: test registeredUdfName + } + + /** + * Test the property 'executableCode' + */ + @Test + public void executableCodeTest() { + // TODO: test executableCode + } + + /** + * Test the property 'sourceText' + */ + @Test + public void sourceTextTest() { + // TODO: test sourceText + } + + /** + * Test the property 'environment' + */ + @Test + public void environmentTest() { + // TODO: test environment + } + + /** + * Test the property 'arguments' + */ + @Test + public void argumentsTest() { + // TODO: test arguments + } + + /** + * Test the property 'resultFormat' + */ + @Test + public void resultFormatTest() { + // TODO: test resultFormat + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/TGUDFStorageTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TGUDFStorageTest.java new file mode 100644 index 0000000..a1f0a25 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/TGUDFStorageTest.java @@ -0,0 +1,64 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for TGUDFStorage + */ +public class TGUDFStorageTest { + private final TGUDFStorage model = new TGUDFStorage(); + + /** + * Model tests for TGUDFStorage + */ + @Test + public void testTGUDFStorage() { + // TODO: test TGUDFStorage + } + + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } + + /** + * Test the property 'size' + */ + @Test + public void sizeTest() { + // TODO: test size + } + + /** + * Test the property 'storageClass' + */ + @Test + public void storageClassTest() { + // TODO: test storageClass + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphActionsTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphActionsTest.java new file mode 100644 index 0000000..16d4636 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphActionsTest.java @@ -0,0 +1,32 @@ +/* + * 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 com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for TaskGraphActions + */ +public class TaskGraphActionsTest { + /** + * Model tests for TaskGraphActions + */ + @Test + public void testTaskGraphActions() { + // TODO: test TaskGraphActions + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphClientNodeStatusTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphClientNodeStatusTest.java new file mode 100644 index 0000000..9e20b5c --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphClientNodeStatusTest.java @@ -0,0 +1,57 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.ArrayTaskStatus; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for TaskGraphClientNodeStatus + */ +public class TaskGraphClientNodeStatusTest { + private final TaskGraphClientNodeStatus model = new TaskGraphClientNodeStatus(); + + /** + * Model tests for TaskGraphClientNodeStatus + */ + @Test + public void testTaskGraphClientNodeStatus() { + // TODO: test TaskGraphClientNodeStatus + } + + /** + * Test the property 'clientNodeUuid' + */ + @Test + public void clientNodeUuidTest() { + // TODO: test clientNodeUuid + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphLogRunLocationTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphLogRunLocationTest.java new file mode 100644 index 0000000..ec0eff8 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphLogRunLocationTest.java @@ -0,0 +1,32 @@ +/* + * 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 com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for TaskGraphLogRunLocation + */ +public class TaskGraphLogRunLocationTest { + /** + * Model tests for TaskGraphLogRunLocation + */ + @Test + public void testTaskGraphLogRunLocation() { + // TODO: test TaskGraphLogRunLocation + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphLogStatusTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphLogStatusTest.java new file mode 100644 index 0000000..4a25b77 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphLogStatusTest.java @@ -0,0 +1,32 @@ +/* + * 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 com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for TaskGraphLogStatus + */ +public class TaskGraphLogStatusTest { + /** + * Model tests for TaskGraphLogStatus + */ + @Test + public void testTaskGraphLogStatus() { + // TODO: test TaskGraphLogStatus + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphLogTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphLogTest.java new file mode 100644 index 0000000..cd3943f --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphLogTest.java @@ -0,0 +1,194 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.TaskGraphLogStatus; +import io.tiledb.cloud.rest_api.model.TaskGraphNodeMetadata; +import io.tiledb.cloud.rest_api.model.TaskGraphType; +import java.io.IOException; +import java.math.BigDecimal; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for TaskGraphLog + */ +public class TaskGraphLogTest { + private final TaskGraphLog model = new TaskGraphLog(); + + /** + * Model tests for TaskGraphLog + */ + @Test + public void testTaskGraphLog() { + // TODO: test TaskGraphLog + } + + /** + * Test the property 'uuid' + */ + @Test + public void uuidTest() { + // TODO: test uuid + } + + /** + * Test the property 'namespace' + */ + @Test + public void namespaceTest() { + // TODO: test namespace + } + + /** + * Test the property 'createdBy' + */ + @Test + public void createdByTest() { + // TODO: test createdBy + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'createdAt' + */ + @Test + public void createdAtTest() { + // TODO: test createdAt + } + + /** + * Test the property 'startTime' + */ + @Test + public void startTimeTest() { + // TODO: test startTime + } + + /** + * Test the property 'endTime' + */ + @Test + public void endTimeTest() { + // TODO: test endTime + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'totalCost' + */ + @Test + public void totalCostTest() { + // TODO: test totalCost + } + + /** + * Test the property 'accessCost' + */ + @Test + public void accessCostTest() { + // TODO: test accessCost + } + + /** + * Test the property 'egressCost' + */ + @Test + public void egressCostTest() { + // TODO: test egressCost + } + + /** + * Test the property 'executionTime' + */ + @Test + public void executionTimeTest() { + // TODO: test executionTime + } + + /** + * Test the property 'statusCount' + */ + @Test + public void statusCountTest() { + // TODO: test statusCount + } + + /** + * Test the property 'nodes' + */ + @Test + public void nodesTest() { + // TODO: test nodes + } + + /** + * Test the property 'taskGraphType' + */ + @Test + public void taskGraphTypeTest() { + // TODO: test taskGraphType + } + + /** + * Test the property 'taskGraphId' + */ + @Test + public void taskGraphIdTest() { + // TODO: test taskGraphId + } + + /** + * Test the property 'cloudProvider' + */ + @Test + public void cloudProviderTest() { + // TODO: test cloudProvider + } + + /** + * Test the property 'cloudRegion' + */ + @Test + public void cloudRegionTest() { + // TODO: test cloudRegion + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphLogsDataTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphLogsDataTest.java new file mode 100644 index 0000000..959bb6e --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphLogsDataTest.java @@ -0,0 +1,60 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.PaginationMetadata; +import io.tiledb.cloud.rest_api.model.TaskGraphLog; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for TaskGraphLogsData + */ +public class TaskGraphLogsDataTest { + private final TaskGraphLogsData model = new TaskGraphLogsData(); + + /** + * Model tests for TaskGraphLogsData + */ + @Test + public void testTaskGraphLogsData() { + // TODO: test TaskGraphLogsData + } + + /** + * Test the property 'taskGraphLogs' + */ + @Test + public void taskGraphLogsTest() { + // TODO: test taskGraphLogs + } + + /** + * Test the property 'paginationMetadata' + */ + @Test + public void paginationMetadataTest() { + // TODO: test paginationMetadata + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphNodeMetadataTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphNodeMetadataTest.java new file mode 100644 index 0000000..c286f7f --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphNodeMetadataTest.java @@ -0,0 +1,102 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.ArrayTask; +import io.tiledb.cloud.rest_api.model.ArrayTaskStatus; +import io.tiledb.cloud.rest_api.model.TaskGraphLogRunLocation; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for TaskGraphNodeMetadata + */ +public class TaskGraphNodeMetadataTest { + private final TaskGraphNodeMetadata model = new TaskGraphNodeMetadata(); + + /** + * Model tests for TaskGraphNodeMetadata + */ + @Test + public void testTaskGraphNodeMetadata() { + // TODO: test TaskGraphNodeMetadata + } + + /** + * Test the property 'clientNodeUuid' + */ + @Test + public void clientNodeUuidTest() { + // TODO: test clientNodeUuid + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'dependsOn' + */ + @Test + public void dependsOnTest() { + // TODO: test dependsOn + } + + /** + * Test the property 'runLocation' + */ + @Test + public void runLocationTest() { + // TODO: test runLocation + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'statusMessage' + */ + @Test + public void statusMessageTest() { + // TODO: test statusMessage + } + + /** + * Test the property 'executions' + */ + @Test + public void executionsTest() { + // TODO: test executions + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphNodeTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphNodeTest.java new file mode 100644 index 0000000..26177fc --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphNodeTest.java @@ -0,0 +1,128 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.RetryStrategy; +import io.tiledb.cloud.rest_api.model.TGInputNodeData; +import io.tiledb.cloud.rest_api.model.TGSQLNodeData; +import io.tiledb.cloud.rest_api.model.TGUDFNodeData; +import io.tiledb.cloud.rest_api.model.UDFArrayDetails; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for TaskGraphNode + */ +public class TaskGraphNodeTest { + private final TaskGraphNode model = new TaskGraphNode(); + + /** + * Model tests for TaskGraphNode + */ + @Test + public void testTaskGraphNode() { + // TODO: test TaskGraphNode + } + + /** + * Test the property 'clientNodeId' + */ + @Test + public void clientNodeIdTest() { + // TODO: test clientNodeId + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'dependsOn' + */ + @Test + public void dependsOnTest() { + // TODO: test dependsOn + } + + /** + * Test the property 'arrayNode' + */ + @Test + public void arrayNodeTest() { + // TODO: test arrayNode + } + + /** + * Test the property 'inputNode' + */ + @Test + public void inputNodeTest() { + // TODO: test inputNode + } + + /** + * Test the property 'sqlNode' + */ + @Test + public void sqlNodeTest() { + // TODO: test sqlNode + } + + /** + * Test the property 'udfNode' + */ + @Test + public void udfNodeTest() { + // TODO: test udfNode + } + + /** + * Test the property 'retryStrategy' + */ + @Test + public void retryStrategyTest() { + // TODO: test retryStrategy + } + + /** + * Test the property 'expandNodeOutput' + */ + @Test + public void expandNodeOutputTest() { + // TODO: test expandNodeOutput + } + + /** + * Test the property 'deadline' + */ + @Test + public void deadlineTest() { + // TODO: test deadline + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphSharingTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphSharingTest.java new file mode 100644 index 0000000..1c4366c --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphSharingTest.java @@ -0,0 +1,67 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.TaskGraphActions; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for TaskGraphSharing + */ +public class TaskGraphSharingTest { + private final TaskGraphSharing model = new TaskGraphSharing(); + + /** + * Model tests for TaskGraphSharing + */ + @Test + public void testTaskGraphSharing() { + // TODO: test TaskGraphSharing + } + + /** + * Test the property 'actions' + */ + @Test + public void actionsTest() { + // TODO: test actions + } + + /** + * Test the property 'namespace' + */ + @Test + public void namespaceTest() { + // TODO: test namespace + } + + /** + * Test the property 'namespaceType' + */ + @Test + public void namespaceTypeTest() { + // TODO: test namespaceType + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphTest.java new file mode 100644 index 0000000..4b31500 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphTest.java @@ -0,0 +1,127 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.RetryStrategy; +import io.tiledb.cloud.rest_api.model.TaskGraphNode; +import io.tiledb.cloud.rest_api.model.TaskGraphType; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for TaskGraph + */ +public class TaskGraphTest { + private final TaskGraph model = new TaskGraph(); + + /** + * Model tests for TaskGraph + */ + @Test + public void testTaskGraph() { + // TODO: test TaskGraph + } + + /** + * Test the property 'uuid' + */ + @Test + public void uuidTest() { + // TODO: test uuid + } + + /** + * Test the property 'namespace' + */ + @Test + public void namespaceTest() { + // TODO: test namespace + } + + /** + * Test the property 'createdBy' + */ + @Test + public void createdByTest() { + // TODO: test createdBy + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'createdAt' + */ + @Test + public void createdAtTest() { + // TODO: test createdAt + } + + /** + * Test the property 'nodes' + */ + @Test + public void nodesTest() { + // TODO: test nodes + } + + /** + * Test the property 'parallelism' + */ + @Test + public void parallelismTest() { + // TODO: test parallelism + } + + /** + * Test the property 'retryStrategy' + */ + @Test + public void retryStrategyTest() { + // TODO: test retryStrategy + } + + /** + * Test the property 'deadline' + */ + @Test + public void deadlineTest() { + // TODO: test deadline + } + + /** + * Test the property 'taskGraphType' + */ + @Test + public void taskGraphTypeTest() { + // TODO: test taskGraphType + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphTypeTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphTypeTest.java new file mode 100644 index 0000000..e50f617 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphTypeTest.java @@ -0,0 +1,32 @@ +/* + * 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 com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for TaskGraphType + */ +public class TaskGraphTypeTest { + /** + * Model tests for TaskGraphType + */ + @Test + public void testTaskGraphType() { + // TODO: test TaskGraphType + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphsTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphsTest.java new file mode 100644 index 0000000..c23168b --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphsTest.java @@ -0,0 +1,51 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.TaskGraph; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for TaskGraphs + */ +public class TaskGraphsTest { + private final TaskGraphs model = new TaskGraphs(); + + /** + * Model tests for TaskGraphs + */ + @Test + public void testTaskGraphs() { + // TODO: test TaskGraphs + } + + /** + * Test the property 'graphs' + */ + @Test + public void graphsTest() { + // TODO: test graphs + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/TileDBConfigEntriesInnerTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TileDBConfigEntriesInnerTest.java new file mode 100644 index 0000000..9e6a32a --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/TileDBConfigEntriesInnerTest.java @@ -0,0 +1,56 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for TileDBConfigEntriesInner + */ +public class TileDBConfigEntriesInnerTest { + private final TileDBConfigEntriesInner model = new TileDBConfigEntriesInner(); + + /** + * Model tests for TileDBConfigEntriesInner + */ + @Test + public void testTileDBConfigEntriesInner() { + // TODO: test TileDBConfigEntriesInner + } + + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } + + /** + * Test the property 'value' + */ + @Test + public void valueTest() { + // TODO: test value + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/TileDBConfigTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TileDBConfigTest.java new file mode 100644 index 0000000..ac32736 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/TileDBConfigTest.java @@ -0,0 +1,51 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.TileDBConfigEntriesInner; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for TileDBConfig + */ +public class TileDBConfigTest { + private final TileDBConfig model = new TileDBConfig(); + + /** + * Model tests for TileDBConfig + */ + @Test + public void testTileDBConfig() { + // TODO: test TileDBConfig + } + + /** + * Test the property 'entries' + */ + @Test + public void entriesTest() { + // TODO: test entries + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/TokenRequestTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TokenRequestTest.java new file mode 100644 index 0000000..9277524 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/TokenRequestTest.java @@ -0,0 +1,68 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.TokenScope; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for TokenRequest + */ +public class TokenRequestTest { + private final TokenRequest model = new TokenRequest(); + + /** + * Model tests for TokenRequest + */ + @Test + public void testTokenRequest() { + // TODO: test TokenRequest + } + + /** + * Test the property 'expires' + */ + @Test + public void expiresTest() { + // TODO: test expires + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'scope' + */ + @Test + public void scopeTest() { + // TODO: test scope + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/TokenScopeTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TokenScopeTest.java new file mode 100644 index 0000000..6750521 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/TokenScopeTest.java @@ -0,0 +1,32 @@ +/* + * 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 com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for TokenScope + */ +public class TokenScopeTest { + /** + * Model tests for TokenScope + */ + @Test + public void testTokenScope() { + // TODO: test TokenScope + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/TokenTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TokenTest.java new file mode 100644 index 0000000..c4335dc --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/TokenTest.java @@ -0,0 +1,84 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.TokenScope; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for Token + */ +public class TokenTest { + private final Token model = new Token(); + + /** + * Model tests for Token + */ + @Test + public void testToken() { + // TODO: test Token + } + + /** + * Test the property 'token' + */ + @Test + public void tokenTest() { + // TODO: test token + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'issuedAt' + */ + @Test + public void issuedAtTest() { + // TODO: test issuedAt + } + + /** + * Test the property 'expiresAt' + */ + @Test + public void expiresAtTest() { + // TODO: test expiresAt + } + + /** + * Test the property 'scope' + */ + @Test + public void scopeTest() { + // TODO: test scope + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/UDFActionsTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/UDFActionsTest.java new file mode 100644 index 0000000..e5d8ee8 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/UDFActionsTest.java @@ -0,0 +1,32 @@ +/* + * 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 com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for UDFActions + */ +public class UDFActionsTest { + /** + * Model tests for UDFActions + */ + @Test + public void testUDFActions() { + // TODO: test UDFActions + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/UDFArrayDetailsTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/UDFArrayDetailsTest.java new file mode 100644 index 0000000..8b688b5 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/UDFArrayDetailsTest.java @@ -0,0 +1,76 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.QueryRanges; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for UDFArrayDetails + */ +public class UDFArrayDetailsTest { + private final UDFArrayDetails model = new UDFArrayDetails(); + + /** + * Model tests for UDFArrayDetails + */ + @Test + public void testUDFArrayDetails() { + // TODO: test UDFArrayDetails + } + + /** + * Test the property 'parameterId' + */ + @Test + public void parameterIdTest() { + // TODO: test parameterId + } + + /** + * Test the property 'uri' + */ + @Test + public void uriTest() { + // TODO: test uri + } + + /** + * Test the property 'ranges' + */ + @Test + public void rangesTest() { + // TODO: test ranges + } + + /** + * Test the property 'buffers' + */ + @Test + public void buffersTest() { + // TODO: test buffers + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/UDFCopiedTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/UDFCopiedTest.java new file mode 100644 index 0000000..d10d7c0 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/UDFCopiedTest.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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for UDFCopied + */ +public class UDFCopiedTest { + private final UDFCopied model = new UDFCopied(); + + /** + * Model tests for UDFCopied + */ + @Test + public void testUDFCopied() { + // TODO: test UDFCopied + } + + /** + * Test the property 'outputUri' + */ + @Test + public void outputUriTest() { + // TODO: test outputUri + } + + /** + * Test the property 'namespace' + */ + @Test + public void namespaceTest() { + // TODO: test namespace + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/UDFCopyTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/UDFCopyTest.java new file mode 100644 index 0000000..2f6f82b --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/UDFCopyTest.java @@ -0,0 +1,64 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for UDFCopy + */ +public class UDFCopyTest { + private final UDFCopy model = new UDFCopy(); + + /** + * Model tests for UDFCopy + */ + @Test + public void testUDFCopy() { + // TODO: test UDFCopy + } + + /** + * Test the property 'outputUri' + */ + @Test + public void outputUriTest() { + // TODO: test outputUri + } + + /** + * Test the property 'namespace' + */ + @Test + public void namespaceTest() { + // TODO: test namespace + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/UDFFavoriteTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/UDFFavoriteTest.java new file mode 100644 index 0000000..42b8c70 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/UDFFavoriteTest.java @@ -0,0 +1,64 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for UDFFavorite + */ +public class UDFFavoriteTest { + private final UDFFavorite model = new UDFFavorite(); + + /** + * Model tests for UDFFavorite + */ + @Test + public void testUDFFavorite() { + // TODO: test UDFFavorite + } + + /** + * Test the property 'udfUuid' + */ + @Test + public void udfUuidTest() { + // TODO: test udfUuid + } + + /** + * Test the property 'namespace' + */ + @Test + public void namespaceTest() { + // TODO: test namespace + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/UDFFavoritesDataTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/UDFFavoritesDataTest.java new file mode 100644 index 0000000..abda37f --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/UDFFavoritesDataTest.java @@ -0,0 +1,60 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.ArrayInfo; +import io.tiledb.cloud.rest_api.model.PaginationMetadata; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for UDFFavoritesData + */ +public class UDFFavoritesDataTest { + private final UDFFavoritesData model = new UDFFavoritesData(); + + /** + * Model tests for UDFFavoritesData + */ + @Test + public void testUDFFavoritesData() { + // TODO: test UDFFavoritesData + } + + /** + * Test the property 'udfs' + */ + @Test + public void udfsTest() { + // TODO: test udfs + } + + /** + * Test the property 'paginationMetadata' + */ + @Test + public void paginationMetadataTest() { + // TODO: test paginationMetadata + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/UDFImageTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/UDFImageTest.java new file mode 100644 index 0000000..6a5ec44 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/UDFImageTest.java @@ -0,0 +1,65 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.UDFLanguage; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for UDFImage + */ +public class UDFImageTest { + private final UDFImage model = new UDFImage(); + + /** + * Model tests for UDFImage + */ + @Test + public void testUDFImage() { + // TODO: test UDFImage + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'language' + */ + @Test + public void languageTest() { + // TODO: test language + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/UDFImageVersionTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/UDFImageVersionTest.java new file mode 100644 index 0000000..71fcd4c --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/UDFImageVersionTest.java @@ -0,0 +1,97 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.math.BigDecimal; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for UDFImageVersion + */ +public class UDFImageVersionTest { + private final UDFImageVersion model = new UDFImageVersion(); + + /** + * Model tests for UDFImageVersion + */ + @Test + public void testUDFImageVersion() { + // TODO: test UDFImageVersion + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'udfImageUuid' + */ + @Test + public void udfImageUuidTest() { + // TODO: test udfImageUuid + } + + /** + * Test the property 'dockerImage' + */ + @Test + public void dockerImageTest() { + // TODO: test dockerImage + } + + /** + * Test the property 'version' + */ + @Test + public void versionTest() { + // TODO: test version + } + + /** + * Test the property '_default' + */ + @Test + public void _defaultTest() { + // TODO: test _default + } + + /** + * Test the property 'latest' + */ + @Test + public void latestTest() { + // TODO: test latest + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/UDFInfoTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/UDFInfoTest.java new file mode 100644 index 0000000..d4a6e91 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/UDFInfoTest.java @@ -0,0 +1,108 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.UDFLanguage; +import io.tiledb.cloud.rest_api.model.UDFType; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for UDFInfo + */ +public class UDFInfoTest { + private final UDFInfo model = new UDFInfo(); + + /** + * Model tests for UDFInfo + */ + @Test + public void testUDFInfo() { + // TODO: test UDFInfo + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'language' + */ + @Test + public void languageTest() { + // TODO: test language + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'readme' + */ + @Test + public void readmeTest() { + // TODO: test readme + } + + /** + * Test the property 'licenseId' + */ + @Test + public void licenseIdTest() { + // TODO: test licenseId + } + + /** + * Test the property 'licenseText' + */ + @Test + public void licenseTextTest() { + // TODO: test licenseText + } + + /** + * Test the property 'tags' + */ + @Test + public void tagsTest() { + // TODO: test tags + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/UDFInfoUpdateTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/UDFInfoUpdateTest.java new file mode 100644 index 0000000..d16291a --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/UDFInfoUpdateTest.java @@ -0,0 +1,132 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.UDFLanguage; +import io.tiledb.cloud.rest_api.model.UDFType; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for UDFInfoUpdate + */ +public class UDFInfoUpdateTest { + private final UDFInfoUpdate model = new UDFInfoUpdate(); + + /** + * Model tests for UDFInfoUpdate + */ + @Test + public void testUDFInfoUpdate() { + // TODO: test UDFInfoUpdate + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'language' + */ + @Test + public void languageTest() { + // TODO: test language + } + + /** + * Test the property 'version' + */ + @Test + public void versionTest() { + // TODO: test version + } + + /** + * Test the property 'imageName' + */ + @Test + public void imageNameTest() { + // TODO: test imageName + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'exec' + */ + @Test + public void execTest() { + // TODO: test exec + } + + /** + * Test the property 'execRaw' + */ + @Test + public void execRawTest() { + // TODO: test execRaw + } + + /** + * Test the property 'readme' + */ + @Test + public void readmeTest() { + // TODO: test readme + } + + /** + * Test the property 'licenseId' + */ + @Test + public void licenseIdTest() { + // TODO: test licenseId + } + + /** + * Test the property 'licenseText' + */ + @Test + public void licenseTextTest() { + // TODO: test licenseText + } + + /** + * Test the property 'tags' + */ + @Test + public void tagsTest() { + // TODO: test tags + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/UDFLanguageTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/UDFLanguageTest.java new file mode 100644 index 0000000..8aca766 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/UDFLanguageTest.java @@ -0,0 +1,32 @@ +/* + * 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 com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for UDFLanguage + */ +public class UDFLanguageTest { + /** + * Model tests for UDFLanguage + */ + @Test + public void testUDFLanguage() { + // TODO: test UDFLanguage + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/UDFSharingTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/UDFSharingTest.java new file mode 100644 index 0000000..2d945d0 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/UDFSharingTest.java @@ -0,0 +1,67 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.UDFActions; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for UDFSharing + */ +public class UDFSharingTest { + private final UDFSharing model = new UDFSharing(); + + /** + * Model tests for UDFSharing + */ + @Test + public void testUDFSharing() { + // TODO: test UDFSharing + } + + /** + * Test the property 'actions' + */ + @Test + public void actionsTest() { + // TODO: test actions + } + + /** + * Test the property 'namespace' + */ + @Test + public void namespaceTest() { + // TODO: test namespace + } + + /** + * Test the property 'namespaceType' + */ + @Test + public void namespaceTypeTest() { + // TODO: test namespaceType + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/UDFSubarrayRangeTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/UDFSubarrayRangeTest.java new file mode 100644 index 0000000..befdd55 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/UDFSubarrayRangeTest.java @@ -0,0 +1,65 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.DimensionCoordinate; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for UDFSubarrayRange + */ +public class UDFSubarrayRangeTest { + private final UDFSubarrayRange model = new UDFSubarrayRange(); + + /** + * Model tests for UDFSubarrayRange + */ + @Test + public void testUDFSubarrayRange() { + // TODO: test UDFSubarrayRange + } + + /** + * Test the property 'dimensionId' + */ + @Test + public void dimensionIdTest() { + // TODO: test dimensionId + } + + /** + * Test the property 'rangeStart' + */ + @Test + public void rangeStartTest() { + // TODO: test rangeStart + } + + /** + * Test the property 'rangeEnd' + */ + @Test + public void rangeEndTest() { + // TODO: test rangeEnd + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/UDFSubarrayTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/UDFSubarrayTest.java new file mode 100644 index 0000000..889f74f --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/UDFSubarrayTest.java @@ -0,0 +1,60 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.Layout; +import io.tiledb.cloud.rest_api.model.UDFSubarrayRange; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for UDFSubarray + */ +public class UDFSubarrayTest { + private final UDFSubarray model = new UDFSubarray(); + + /** + * Model tests for UDFSubarray + */ + @Test + public void testUDFSubarray() { + // TODO: test UDFSubarray + } + + /** + * Test the property 'layout' + */ + @Test + public void layoutTest() { + // TODO: test layout + } + + /** + * Test the property 'ranges' + */ + @Test + public void rangesTest() { + // TODO: test ranges + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/UDFTypeTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/UDFTypeTest.java new file mode 100644 index 0000000..bac3003 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/UDFTypeTest.java @@ -0,0 +1,32 @@ +/* + * 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 com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for UDFType + */ +public class UDFTypeTest { + /** + * Model tests for UDFType + */ + @Test + public void testUDFType() { + // TODO: test UDFType + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/UserTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/UserTest.java new file mode 100644 index 0000000..e53fbfe --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/UserTest.java @@ -0,0 +1,198 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.AssetLocations; +import io.tiledb.cloud.rest_api.model.NamespaceActions; +import io.tiledb.cloud.rest_api.model.OrganizationUser; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for User + */ +public class UserTest { + private final User model = new User(); + + /** + * Model tests for User + */ + @Test + public void testUser() { + // TODO: test User + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'username' + */ + @Test + public void usernameTest() { + // TODO: test username + } + + /** + * Test the property 'password' + */ + @Test + public void passwordTest() { + // TODO: test password + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'email' + */ + @Test + public void emailTest() { + // TODO: test email + } + + /** + * Test the property 'isValidEmail' + */ + @Test + public void isValidEmailTest() { + // TODO: test isValidEmail + } + + /** + * Test the property 'stripeConnect' + */ + @Test + public void stripeConnectTest() { + // TODO: test stripeConnect + } + + /** + * Test the property 'company' + */ + @Test + public void companyTest() { + // TODO: test company + } + + /** + * Test the property 'logo' + */ + @Test + public void logoTest() { + // TODO: test logo + } + + /** + * Test the property 'timezone' + */ + @Test + public void timezoneTest() { + // TODO: test timezone + } + + /** + * Test the property 'organizations' + */ + @Test + public void organizationsTest() { + // TODO: test organizations + } + + /** + * Test the property 'allowedActions' + */ + @Test + public void allowedActionsTest() { + // TODO: test allowedActions + } + + /** + * Test the property 'enabledFeatures' + */ + @Test + public void enabledFeaturesTest() { + // TODO: test enabledFeatures + } + + /** + * Test the property 'unpaidSubscription' + */ + @Test + public void unpaidSubscriptionTest() { + // TODO: test unpaidSubscription + } + + /** + * Test the property 'defaultS3Path' + */ + @Test + public void defaultS3PathTest() { + // TODO: test defaultS3Path + } + + /** + * Test the property 'defaultS3PathCredentialsName' + */ + @Test + public void defaultS3PathCredentialsNameTest() { + // TODO: test defaultS3PathCredentialsName + } + + /** + * Test the property 'assetLocations' + */ + @Test + public void assetLocationsTest() { + // TODO: test assetLocations + } + + /** + * Test the property 'defaultNamespaceCharged' + */ + @Test + public void defaultNamespaceChargedTest() { + // TODO: test defaultNamespaceCharged + } + + /** + * Test the property 'defaultRegion' + */ + @Test + public void defaultRegionTest() { + // TODO: test defaultRegion + } + +} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/WriterTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/WriterTest.java new file mode 100644 index 0000000..35521a4 --- /dev/null +++ b/src/test/java/io/tiledb/cloud/rest_api/model/WriterTest.java @@ -0,0 +1,73 @@ +/* + * 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 com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.tiledb.cloud.rest_api.model.DomainArray; +import java.io.IOException; +import java.util.Arrays; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for Writer + */ +public class WriterTest { + private final Writer model = new Writer(); + + /** + * Model tests for Writer + */ + @Test + public void testWriter() { + // TODO: test Writer + } + + /** + * Test the property 'checkCoordDups' + */ + @Test + public void checkCoordDupsTest() { + // TODO: test checkCoordDups + } + + /** + * Test the property 'checkCoordOOB' + */ + @Test + public void checkCoordOOBTest() { + // TODO: test checkCoordOOB + } + + /** + * Test the property 'dedupCoords' + */ + @Test + public void dedupCoordsTest() { + // TODO: test dedupCoords + } + + /** + * Test the property 'subarray' + */ + @Test + public void subarrayTest() { + // TODO: test subarray + } + +} From a5d139a77da09d93e066e9df7ede20b1f26bb24e Mon Sep 17 00:00:00 2001 From: Seth Shelnutt Date: Sun, 15 Sep 2024 11:31:45 -0400 Subject: [PATCH 2/8] Update login function --- .../java/io/tiledb/cloud/TileDBLogin.java | 47 +++++++++++++++++-- 1 file changed, 42 insertions(+), 5 deletions(-) diff --git a/src/main/java/io/tiledb/cloud/TileDBLogin.java b/src/main/java/io/tiledb/cloud/TileDBLogin.java index 5269d25..93da6c6 100644 --- a/src/main/java/io/tiledb/cloud/TileDBLogin.java +++ b/src/main/java/io/tiledb/cloud/TileDBLogin.java @@ -27,14 +27,12 @@ public class TileDBLogin { /** * Constructor * - * @param username The username - * @param password The password * @param apiKey The User's api token. Can be found in the TileDB console at https://www.console.tiledb.com * @param verifySSL True to verify SSL * @param rememberMe True if the user wants their login credentials to be remembered * @param overwritePrevious True if the user wants their current login input to overwrite the last one */ - public TileDBLogin(String username, String password, String apiKey, boolean verifySSL, + public TileDBLogin(String apiKey, boolean verifySSL, boolean rememberMe, boolean overwritePrevious) { this.password = password; this.username = username; @@ -48,14 +46,53 @@ public TileDBLogin(String username, String password, String apiKey, boolean veri /** * Constructor * - * @param username The username - * @param password The password * @param apiKey The User's api token. Can be found in the TileDB console at https://www.console.tiledb.com + * @param host The host name * @param verifySSL True to verify SSL * @param rememberMe True if the user wants their login credentials to be remembered * @param overwritePrevious True if the user wants their current login input to overwrite the last one + */ + public TileDBLogin(String apiKey, String host, boolean verifySSL, + boolean rememberMe, boolean overwritePrevious) { + this.apiKey = apiKey; + this.verifySSL = verifySSL; + this.rememberMe = rememberMe; + this.overwritePrevious = overwritePrevious; + this.host = host; + } + + /** + * Constructor + * + * @param username The username + * @param password The password * @param host The host name + * @param verifySSL True to verify SSL + * @param rememberMe True if the user wants their login credentials to be remembered + * @param overwritePrevious True if the user wants their current login input to overwrite the last one */ + public TileDBLogin(String username, String password, String host, boolean verifySSL, + boolean rememberMe, boolean overwritePrevious) { + this.password = password; + this.username = username; + this.verifySSL = verifySSL; + this.rememberMe = rememberMe; + this.overwritePrevious = overwritePrevious; + this.host = host; + } + + + /** + * Constructor + * + * @param username The username + * @param password The password + * @param apiKey The User's api token. Can be found in the TileDB console at https://www.console.tiledb.com + * @param verifySSL True to verify SSL + * @param rememberMe True if the user wants their login credentials to be remembered + * @param overwritePrevious True if the user wants their current login input to overwrite the last one + * @param host The host name + */ public TileDBLogin(String username, String password, String apiKey, boolean verifySSL, boolean rememberMe, boolean overwritePrevious, String host) throws ApiException { From 4307236ebfe2bd8badf18f6f2a0ad49fa8633d63 Mon Sep 17 00:00:00 2001 From: Seth Shelnutt Date: Sun, 15 Sep 2024 13:26:55 -0400 Subject: [PATCH 3/8] Add new enums --- src/main/java/io/tiledb/cloud/rest_api/model/UDFLanguage.java | 4 +++- src/main/java/io/tiledb/cloud/rest_api/model/UDFType.java | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) 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 480951d..0d790fa 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 @@ -31,7 +31,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/UDFType.java b/src/main/java/io/tiledb/cloud/rest_api/model/UDFType.java index 5554783..3d30f63 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 @@ -33,7 +33,9 @@ public enum UDFType { SINGLE_ARRAY("single_array"), - GENERIC("generic"); + GENERIC("generic"), + + BASH("bash"); private String value; From 90e22932876ae77f0859728d929febea3cf45792 Mon Sep 17 00:00:00 2001 From: Nikos Papailiou Date: Fri, 17 Jan 2025 16:34:03 +0200 Subject: [PATCH 4/8] Add Nextflow API changes --- .../cloud/rest_api/api/TaskGraphsApi.java | 22 ++++++---- .../rest_api/model/TGUDFEnvironment.java | 42 +++++++++---------- 2 files changed, 34 insertions(+), 30 deletions(-) diff --git a/src/main/java/io/tiledb/cloud/rest_api/api/TaskGraphsApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/TaskGraphsApi.java index 4025376..d8cd4d8 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/api/TaskGraphsApi.java +++ b/src/main/java/io/tiledb/cloud/rest_api/api/TaskGraphsApi.java @@ -503,7 +503,7 @@ public okhttp3.Call listTaskGraphsAsync(String namespace, final ApiCallback 0 error response - */ - public okhttp3.Call submitTaskGraphCall(String namespace, String id, final ApiCallback _callback) throws ApiException { + public okhttp3.Call submitTaskGraphCall(String namespace, String id, String rootId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -530,6 +530,10 @@ public okhttp3.Call submitTaskGraphCall(String namespace, String id, final ApiCa Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (rootId != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("root_task_graph_uuid", rootId)); + } + final String[] localVarAccepts = { "application/json" }; @@ -550,7 +554,7 @@ public okhttp3.Call submitTaskGraphCall(String namespace, String id, final ApiCa } @SuppressWarnings("rawtypes") - private okhttp3.Call submitTaskGraphValidateBeforeCall(String namespace, String id, final ApiCallback _callback) throws ApiException { + private okhttp3.Call submitTaskGraphValidateBeforeCall(String namespace, String id, String rootId, 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)"); @@ -561,7 +565,7 @@ private okhttp3.Call submitTaskGraphValidateBeforeCall(String namespace, String throw new ApiException("Missing the required parameter 'id' when calling submitTaskGraph(Async)"); } - return submitTaskGraphCall(namespace, id, _callback); + return submitTaskGraphCall(namespace, id, rootId, _callback); } @@ -580,8 +584,8 @@ private okhttp3.Call submitTaskGraphValidateBeforeCall(String namespace, String 0 error response - */ - public TaskGraphLog submitTaskGraph(String namespace, String id) throws ApiException { - ApiResponse localVarResp = submitTaskGraphWithHttpInfo(namespace, id); + public TaskGraphLog submitTaskGraph(String namespace, String id, String rootId) throws ApiException { + ApiResponse localVarResp = submitTaskGraphWithHttpInfo(namespace, id, rootId); return localVarResp.getData(); } @@ -600,8 +604,8 @@ public TaskGraphLog submitTaskGraph(String namespace, String id) throws ApiExcep 0 error response - */ - public ApiResponse submitTaskGraphWithHttpInfo(String namespace, String id) throws ApiException { - okhttp3.Call localVarCall = submitTaskGraphValidateBeforeCall(namespace, id, null); + public ApiResponse submitTaskGraphWithHttpInfo(String namespace, String id, String rootId) throws ApiException { + okhttp3.Call localVarCall = submitTaskGraphValidateBeforeCall(namespace, id, rootId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -622,9 +626,9 @@ public ApiResponse submitTaskGraphWithHttpInfo(String namespace, S 0 error response - */ - public okhttp3.Call submitTaskGraphAsync(String namespace, String id, final ApiCallback _callback) throws ApiException { + public okhttp3.Call submitTaskGraphAsync(String namespace, String id, String rootId, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = submitTaskGraphValidateBeforeCall(namespace, id, _callback); + okhttp3.Call localVarCall = submitTaskGraphValidateBeforeCall(namespace, id, rootId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; 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 456d59b..79168f6 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 @@ -93,9 +93,9 @@ public class TGUDFEnvironment { @SerializedName(SERIALIZED_NAME_TIMEOUT) private BigDecimal timeout; - public static final String SERIALIZED_NAME_PATHS = "paths"; - @SerializedName(SERIALIZED_NAME_PATHS) - private List paths = new ArrayList<>(); + public static final String SERIALIZED_NAME_STORAGE = "storage"; + @SerializedName(SERIALIZED_NAME_STORAGE) + private List storage = new ArrayList<>(); public TGUDFEnvironment() { } @@ -271,30 +271,30 @@ public void setTimeout(BigDecimal timeout) { } - public TGUDFEnvironment paths(List paths) { - this.paths = paths; + public TGUDFEnvironment storage(List storage) { + this.storage = storage; return this; } - public TGUDFEnvironment addPathsItem(Object pathsItem) { - if (this.paths == null) { - this.paths = new ArrayList<>(); + public TGUDFEnvironment addStorageItem(Object storageItem) { + if (this.storage == null) { + this.storage = new ArrayList<>(); } - this.paths.add(pathsItem); + this.storage.add(storageItem); return this; } /** - * Mapping for storage paths to mount - * @return paths + * Storage options for mounting persistent volumes + * @return storage */ @javax.annotation.Nullable - public List getPaths() { - return paths; + public List getStorage() { + return storage; } - public void setPaths(List paths) { - this.paths = paths; + public void setStorage(List storage) { + this.storage = storage; } /** @@ -361,7 +361,7 @@ public boolean equals(Object o) { Objects.equals(this.resources, tgUDFEnvironment.resources) && Objects.equals(this.runClientSide, tgUDFEnvironment.runClientSide) && Objects.equals(this.timeout, tgUDFEnvironment.timeout) && - Objects.equals(this.paths, tgUDFEnvironment.paths)&& + Objects.equals(this.storage, tgUDFEnvironment.storage)&& Objects.equals(this.additionalProperties, tgUDFEnvironment.additionalProperties); } @@ -371,7 +371,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, paths, additionalProperties); + return Objects.hash(language, languageVersion, imageName, accessCredentialsName, namespace, resourceClass, resources, runClientSide, timeout, storage, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -394,7 +394,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(" paths: ").append(toIndentedString(paths)).append("\n"); + sb.append(" storage: ").append(toIndentedString(storage)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -427,7 +427,7 @@ private String toIndentedString(Object o) { openapiFields.add("resources"); openapiFields.add("run_client_side"); openapiFields.add("timeout"); - openapiFields.add("paths"); + openapiFields.add("storage"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -470,8 +470,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti TGUDFEnvironmentResources.validateJsonElement(jsonObj.get("resources")); } // ensure the optional json data is an array if present - if (jsonObj.get("paths") != null && !jsonObj.get("paths").isJsonNull() && !jsonObj.get("paths").isJsonArray()) { - throw new IllegalArgumentException(String.format("Expected the field `paths` to be an array in the JSON string but got `%s`", jsonObj.get("paths").toString())); + if (jsonObj.get("storage") != null && !jsonObj.get("storage").isJsonNull() && !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())); } } From a0d999d1ba0f565e3a756fbc8829386686ade627 Mon Sep 17 00:00:00 2001 From: Nikos Papailiou Date: Thu, 6 Feb 2025 13:38:17 +0200 Subject: [PATCH 5/8] Update API --- .../java/io/tiledb/cloud/rest_api/model/TGUDFStorage.java | 8 ++++---- .../io/tiledb/cloud/rest_api/model/TaskGraphType.java | 6 ++++-- 2 files changed, 8 insertions(+), 6 deletions(-) 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 index 3f0e1b3..17a0f5e 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFStorage.java +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFStorage.java @@ -57,7 +57,7 @@ public class TGUDFStorage { public static final String SERIALIZED_NAME_SIZE = "size"; @SerializedName(SERIALIZED_NAME_SIZE) - private Integer size; + private String size; public static final String SERIALIZED_NAME_STORAGE_CLASS = "storage_class"; @SerializedName(SERIALIZED_NAME_STORAGE_CLASS) @@ -85,7 +85,7 @@ public void setPath(String path) { } - public TGUDFStorage size(Integer size) { + public TGUDFStorage size(String size) { this.size = size; return this; } @@ -95,11 +95,11 @@ public TGUDFStorage size(Integer size) { * @return size */ @javax.annotation.Nullable - public Integer getSize() { + public String getSize() { return size; } - public void setSize(Integer size) { + public void setSize(String size) { this.size = size; } 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 56c45c8..c1ad82d 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 @@ -30,8 +30,10 @@ public enum TaskGraphType { BATCH("batch"), - - REALTIME("realtime"); + + REALTIME("realtime"), + + NEXTFLOW("nextflow"); private String value; From ebd31ee708222363dc549a955fd5ce3816a340ca Mon Sep 17 00:00:00 2001 From: Nikos Papailiou Date: Thu, 6 Feb 2025 13:44:14 +0200 Subject: [PATCH 6/8] Fix tests --- .github/workflows/github_actions.yml | 7 +++++++ src/main/java/examples/Examples.java | 31 +++++++++++++--------------- 2 files changed, 21 insertions(+), 17 deletions(-) diff --git a/.github/workflows/github_actions.yml b/.github/workflows/github_actions.yml index 436b658..6d65d25 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: '11' + 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 ae20c75..7f693aa 100644 --- a/src/main/java/examples/Examples.java +++ b/src/main/java/examples/Examples.java @@ -55,14 +55,14 @@ 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); + 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); + TileDBSQL tileDBSQL = new TileDBSQL(tileDBClient, "unittest", sqlParameters); Pair, Integer> a = tileDBSQL.execArrow(); } @@ -71,7 +71,7 @@ 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"); HashMap arguments = new HashMap<>(); @@ -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)); @@ -110,7 +110,7 @@ public static void runArrayUDF(TileDBClient tileDBClient){ UDFArrayDetails array = new UDFArrayDetails(); array.setUri("tiledb://TileDB-Inc/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)); @@ -139,14 +139,14 @@ public static void runMultiArrayUDF(TileDBClient tileDBClient){ //array1 UDFArrayDetails array1 = new UDFArrayDetails(); - array1.setUri("tiledb://shaunreed/dense-array"); + array1.setUri("tiledb://TileDB-Inc/quickstart_sparse"); array1.setRanges(queryRanges); - array1.setBuffers(Arrays.asList("rows", "cols", "a1")); + array1.setBuffers(Arrays.asList("rows", "cols", "a")); arrays.add(array1); //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); @@ -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)); @@ -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 @@ -215,9 +215,8 @@ private static void listGroups(TileDBClient tileDBClient) List excludeTag = null; // 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 = null; // String | search only the children of the groups with this uuid - Boolean withMetadata = false; try { - GroupBrowserData result = apiInstance.listPublicGroups(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, withMetadata); + GroupBrowserData result = apiInstance.listPublicGroups(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent); //or use api.listOwnedGroups(...) / api.listSharedGroups(...) System.out.println(result.getGroups()); } catch (ApiException e) { @@ -232,12 +231,11 @@ 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) - Boolean withMetadata = false; + String namespace = "unittest"; // String | namespace array is in (an organization name or user's username) ArrayApi apiInstance = new ArrayApi(tileDBClient.getApiClient()); try { - List result = apiInstance.getArraysInNamespace(namespace, withMetadata); + List result = apiInstance.getArraysInNamespace(namespace); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ArrayApi#getArraysInNamespace"); @@ -349,4 +347,3 @@ public static void registerArray(TileDBClient tileDBClient){ } } } - From 6517807b78a48031632bcfdf9f7f5932752aec43 Mon Sep 17 00:00:00 2001 From: Nikos Papailiou Date: Thu, 6 Feb 2025 13:49:38 +0200 Subject: [PATCH 7/8] Fix tests --- src/main/java/examples/Examples.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/examples/Examples.java b/src/main/java/examples/Examples.java index 7f693aa..18a7442 100644 --- a/src/main/java/examples/Examples.java +++ b/src/main/java/examples/Examples.java @@ -215,8 +215,9 @@ private static void listGroups(TileDBClient tileDBClient) List excludeTag = null; // 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 = null; // String | search only the children of the groups with this uuid + Boolean withMetadata = false; try { - GroupBrowserData result = apiInstance.listPublicGroups(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent); + GroupBrowserData result = apiInstance.listPublicGroups(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, withMetadata); //or use api.listOwnedGroups(...) / api.listSharedGroups(...) System.out.println(result.getGroups()); } catch (ApiException e) { @@ -232,10 +233,11 @@ private static void listGroups(TileDBClient tileDBClient) private static void listArrays(TileDBClient tileDBClient) { String namespace = "unittest"; // String | namespace array is in (an organization name or user's username) + Boolean withMetadata = false; ArrayApi apiInstance = new ArrayApi(tileDBClient.getApiClient()); try { - List result = apiInstance.getArraysInNamespace(namespace); + List result = apiInstance.getArraysInNamespace(namespace, withMetadata); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ArrayApi#getArraysInNamespace"); From 07476b32d0d45c506d91c0eaa58d9e29735d5360 Mon Sep 17 00:00:00 2001 From: Nikos Papailiou Date: Thu, 6 Feb 2025 13:56:10 +0200 Subject: [PATCH 8/8] Fix FilterType enum --- .../cloud/rest_api/model/FilterType.java | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) 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 f9225fc..bcd5a2a 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 @@ -29,27 +29,27 @@ @JsonAdapter(FilterType.Adapter.class) public enum FilterType { - NONE("FILTER_NONE"), + NONE("NONE"), - GZIP("FILTER_GZIP"), + GZIP("GZIP"), - ZSTD("FILTER_ZSTD"), + ZSTD("ZSTD"), - LZ4("FILTER_LZ4"), + LZ4("LZ4"), - RLE("FILTER_RLE"), + RLE("RLE"), - BZIP2("FILTER_BZIP2"), + BZIP2("BZIP2"), - DOUBLE_DELTA("FILTER_DOUBLE_DELTA"), + DOUBLE_DELTA("DOUBLE_DELTA"), - BIT_WIDTH_REDUCTION("FILTER_BIT_WIDTH_REDUCTION"), + BIT_WIDTH_REDUCTION("BIT_WIDTH_REDUCTION"), - BITSHUFFLE("FILTER_BITSHUFFLE"), + BITSHUFFLE("BITSHUFFLE"), - BYTESHUFFLE("FILTER_BYTESHUFFLE"), + BYTESHUFFLE("BYTESHUFFLE"), - POSITIVE_DELTA("FILTER_POSITIVE_DELTA"); + POSITIVE_DELTA("POSITIVE_DELTA"); private String value;